投资者咨询:
[求助]编写修改... (文华财经wh9)来源:文华财经 日期:2018-7-6 23:38
老师好,这个是MQ 版的,止损平仓条件 // 反向突破止损出场
Else If(Low <= Support[1] - MinMove * PriceScale)
{
Sell(DefaultVol, Min(Open,Support[1] - MinMove * PriceScale));
KText(Low <Support[1] - MinMove * PriceScale,0,High,Green,"出");
}
增加一个开仓:
KText后,价格再次上穿
Support[1] + MinMove * PriceScale ,做多.
参考
If(Close>Support[1] + MinMove * PriceScale &&IsLastSell)
{
Buy(DefaultVol, Min(Open,Support[1] - MinMove * PriceScale));
}