这样为何不能限制减仓次数?
老师,我这样写代码为何不能限制减仓次数为1次?实际会不停的平仓,Bool SendOrderThisBar(False); 不起作用。Bool SendOrderThisBar(False); // 当前Bar有过交易 If(MarketPosition == 1 And Close[2] < TK11 And high >= TK11 And EntryPrice < TK11 And BarsSinceEntry >= 2 &&SendOrderThisBar==False ) { Sell(Lot3, TK11 ); SendOrderThisBar = True; }