偏离正负3%是要怎么定义的?
大于是正的,小于是负的?
jj:sum(amount,todaybar)/sum(vol,todaybar)/MULTIPLIER;//日内均价
if c>jj*1.03 then buy(holding=0,100,market);//大于均价3%买入
if c<jj*0.97 then sell(holding>0,0,market);//小于均价3%卖出
jj:sum(amount,todaybar)/sum(vol,todaybar)/100;//日内均价
if c>jj*1.03 then buy(holding=0,100,market);//小于均价3%买入
if c<jj*0.97 then sell(holding>0,0,market);//大于均价3%卖出
显示的信号太多了,我想要的是符合条件同方向的就出现1个买入信号。
谢谢老师!!
这里holding=0已经限制了不会加仓,你后面信号多是因为平掉后又满足了你的条件
这个信号条件你要自己做分析