股票论坛

标题: 请根据选股源码增加个条件预警,谢谢老师!! [打印本页]

作者: 东南小聪明    时间: 2016-4-14 16:15
标题: 请根据选股源码增加个条件预警,谢谢老师!!
如图所示,当“跟庄买进”出现在30日均线上穿时预警。谢谢
源码:
MAA5:=MA(C,5);
MAA10:=MA(C,10);
MAA30:=MA(C,30);
KS:=IF(MAA10>MAA30,MAA10,MAA30);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
跟庄买进: LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
作者: 陪练专家    时间: 2016-4-14 16:15
MAA5:=MA(C,5);
MAA10:=MA(C,10);
MAA30:=MA(C,30);
KS:=IF(MAA10>MAA30,MAA10,MAA30);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
跟庄买进: LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))
and cross(c,ma(c,30))




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2