 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
DEBUGFILE('D:\TEST.TXT','当前条件1为%.2f',stkindi('','C.cond11',0,5,0));
DEBUGFILE('D:\TEST.TXT','当前条件2为%.2f',stkindi('','C.cond22',0,2,0));
DEBUGFILE('D:\TEST.TXT','当前条件3为%.2f',stkindi('','C.cond22',0,5,0));
if stkindi('','C.cond11',0,5,0) and close>ma(close,20) then buy(holding=0,1,marketr);
if stkindi('','C.cond22',0,2,0) and close<ma(close,20) then sell(1,0,marketr);
if stkindi('','C.cond22',0,5,0) and close<ma(close,20) then buyshort(holding=0,1,marketr);
if stkindi('','C.cond11',0,2,0) and close>ma(close,20) then sellshort(1,0,marketr);
类似这样去进行输出条件从而进行分析,特别如果有跨周期引用这种信号就是不固定的,当时的情况和你盘后去看是不一样的 |
|