T11:STKINDI(STKLABEL,'LAC.T1',0,1);
T33:STKINDI(STKLABEL,'LAC.T3',0,1);
T1:MA(C,30)>=MA(C,120);
买开:buy(T1 and T11 and holding=0,1,market);
T2:=MA(C,30)<=MA(C,120);
平多:sell(T2,holding,market);
T3:=MA(C,30)<=MA(C,120);
开空:buyshort(T3 and T33 and holding=0,1,market);
T4:=MA(C,30)>=MA(C,120);
平空:SELLSHORT(T4 ,holding,market);
这是我的公式,引用的LAC公式没有问题,请老师看下这个公式问题出在哪了,加载主图没有信号
引用部分的公式是什么?另外不建议向后引用,会产生未来造成信号闪烁
在图表上看各个项输出的值,进而判断具体哪一项造成成的,引号不足。另外,你要保证本地数据足够。
T11:STKINDI(STKLABEL,'LAC.T1',0,1);
T33:STKINDI(STKLABEL,'LAC.T3',0,1);
T4:MA(C,30)>=MA(C,120);
平空:SELLSHORT(T4 ,holding,market);
T1:MA(C,30)>=MA(C,120);
买开:buy(T1 and T11 and holding=0,1,market);
T2:MA(C,30)<=MA(C,120);
平多:sell(T2,holding,market);
T3:MA(C,30)<=MA(C,120);
开空:buyshort(T3 and T33 and holding=0,1,market);
aa:holding;