为啥我设置的最高点最低点开仓还是会闪烁啊不理解

为啥我写的代码突破就多跌破就空这么简单的代码还是会闪烁啊???有大佬帮忙看下吗?最高点最低点不是固定的吗不会闪烁吗Params Numeric LookLength(20); Numeric Lots(1); Vars Numeric MinPoint; Series<Numeric> HighLine; Series<Numeric> LowLine; Bool BarHasOrder(False); Events OnBar(ArrayRef<Integer> indexs) { If(BarStatus == 0) { BarHasOrder = False; } MinPoint = MinMove * PriceScale; HighLine = HighestFC(High[1], LookLength); LowLine = LowestFC(Low[1], LookLength); If(MarketPosition == 0 && BarHasOrder == False) { If(Low < LowLine) { Numeric EntryPrice = Max(Low, LowLine - MinPoint); EntryPrice = IIF(EntryPrice > Open, Open, EntryPrice); SellShort(Lots, EntryPrice); BarHasOrder = True; } Else If(High > HighLine) { Numeric EntryPrice = Min(High, HighLine + MinPoint); EntryPrice = IIF(EntryPrice < Open, Open, EntryPrice); Buy(Lots, EntryPrice); BarHasOrder = True; } } If(MarketPosition == 1 && BarHasOrder == False) { If(Low < LowLine) { Numeric ExitPrice = Max(Low, LowLine - MinPoint); ExitPrice = IIF(ExitPrice > Open, Open, ExitPrice); Sell(0, ExitPrice); BarHasOrder = True; } } If(MarketPosition == -1 && BarHasOrder == False) { If(High > HighLine) { Numeric ExitPrice = Min(High, HighLine + MinPoint); ExitPrice = IIF(ExitPrice < Open, Open, ExitPrice); BuyToCover(0, ExitPrice); BarHasOrder = True; } } }

另一个帖子回过你了应该

回复:没有啊