请教老师CLOSE为什么回溯一根图上没有信号?

简单的四周策略,改成收盘价模型,不回溯一根K的话是正常的,回溯一根K就没有信号,请问老师什么原因?

Param

Numeric length(5);

Vars

   Series<Numeric> upband;

   Series<Numeric> dnband;

   Series<Bool> bool_up;  

   Series<Bool> bool_dn;

   

Events

    OnInit()

{

Range[0:DataCount-1]

{

AddDataFlag(Enum_Data_RolloverBackWard()); //设置后复权

AddDataFlag(Enum_Data_RolloverRealPrice()); //设置映射真实价格

               AddDataFlag(Enum_Data_AutoSwapPosition()); //设置自动换仓

      AddDataFlag(Enum_Data_IgnoreSwapSignalCalc()); //设置忽略换仓信号计算

}

}

  OnBar(ArrayRef<Integer> indexs)

   {

    upband = Highest(high[1],length);

       dnband = Lowest(Low[1],length);    

PlotNumeric(\"upband\",upband);

PlotNumeric(\"dnband\",dnband);

   

bool_up = CrossOver(Close[1],upband) ;

bool_dn = CrossUnder(Close[1],dnband);

If(MarketPosition<>1 and bool_up )

       {

           Buy(1,O);

       }

If(MarketPosition<>-1 and bool_dn )

       {

           SellShort(1,O);

       }

   }


请教回溯问题
请教群中高手,到日线图上调用日线收盘价close[1],得到的总是15分钟图上的close[1],这是咋回事?
请教数据回溯问题
请问老师为什么用常量回溯还是会信号闪烁?
请教老师,用buy(0,close)下单,委托价的问题
请教跨周期数据回溯问题
请教老师,有没有反手下单的命令
回溯信号区别
请问老师收盘价回溯可以回溯多少根K?
为什么K线图出现信号,策略运行里没有信号,也不报警,日志也没有开仓信息。

你可以在图上自己找一找

你用的是上一根bar的收盘价要比当前bar的上轨要高

图上找得到这种案例吗?