信号闪烁
Global Numeric high_profit(1800); Global Numeric close_position(0); Global Numeric short_build(0); Global Numeric long_build(0);If(MarketPosition == -1 && (short_build - Close[1])*lots >= high_profit) { high_profit = (short_build - Close[1])*lots; close_position = high_profit * 0.5; } Else If(MarketPosition == 1 && (Close[1] - long_build)*lots >= high_profit) { high_profit = (Close[1] - long_build)*lots; close_position = high_profit * 0.5; }If(MarketPosition == -1) { If((short_build - Close[1])*lots < close_position && close_position > 0 && (short_build - Close[1]) > 0 ) { If((short_build - Close[1])*lots <1800) { BuyToCover(shortposition , Close); shortposition = 0; close_position = 0; high_profit = profit; If(sign_ni == 1) { need_plus = 1; } Else If(Open_bar > 6000 && sign_ni == 0) { sign_ni = 1; } } Else If((short_build - Close[1])*lots >= 1800) { close_position = high_profit * 0.3; } } } Else If(MarketPosition == 1) { If((Close[1] - long_build)*lots < close_position && close_position > 0 && (Close[1] - long_build) > 0) { If((Close[1] - long_build)*lots < 1800) { Sell(longposition , Close); longposition = 0; close_position = 0; high_profit = profit; If(sign_ni == 1) { need_plus = 1; } } Else If((Close[1] - long_build)*lots >= 1800) { close_position = high_profit * 0.3; } } }请问该段代码为什么会出现信号闪烁,我看了避免信号闪烁的视频,把可能会出现信号闪烁的问题给规避掉了,但还是出现了信号闪烁的问题。