以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]没有信号  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=157884)

--  作者:OLIVERLAC
--  发布时间:2017/9/13 22:09:53
--  [求助]没有信号
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公式没有问题,请老师看下这个公式问题出在哪了,加载主图没有信号

--  作者:wenarm
--  发布时间:2017/9/14 4:46:00
--  
引用部分的公式是什么?另外不建议向后引用,会产生未来造成信号闪烁
在图表上看各个项输出的值,进而判断具体哪一项造成成的,引号不足。另外,你要保证本地数据足够。
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;