了凡抄底通达信副图/选股 源码通用无未来函数
QST:=NOT(NAMELIKE('S') OR NAMELIKE('*S'));
QTP:=DYNAINFO(17)>0;
QKC:=IF(CODELIKE('68'),1,0)<1;
QXG:=BARSCOUNT(CLOSE)>120;
TSG:=IF(INBLOCK('退市整理股票'),0,1);
去ST:=QST AND QTP AND QKC AND QXG AND TSG>0;
A1:=REF(C,1);
A2:=((SMA((MAX((C-A1),0)),5,1))/(SMA(ABS((C-A1)),5,1)))*100;
A3:=SUM((MAX((MAX((H-L),ABS((H-A1)))),ABS((L-A1)))),13);
A4:=H-(REF(H,1));
A5:=(REF(L,1))-L;
A6:=SUM((IF(((A4>0) AND (A4>A5)),A4,0)),13);
A7:=SUM((IF(((A5>0) AND (A5>A4)),A5,0)),13);
A8:=(A6*100)/A3;
A9:=(A7*100)/A3;
A10:=MA(((ABS((A9-A8))/(A9+A8))*100),5);
A12:=(100*((HHV(H,10))-C))/((HHV(H,10))-(LLV(L,10)));
A13:=A2+A10-A12;
A14:=LLV(A13,1);
A15:=CROSS(A14,0);
DIFF:=(EMA(C,12)-EMA(C,26));
DEA:=EMA(DIFF,9);
MACDD:=2*(DIFF-DEA);
A16:=MACDD<0 AND MACDD>REF(MACDD,1);
A17:=LLV(L,13);
A18:=HHV(H,34);
A19:=EMA((C-A17)/(A18-A17)*100,4);
A20:=A19>REF(A19,1);
A21:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
A22:=CROSS(A21,10);
A23:=A2-LLV(A2,10);
A24:=(MA(A23,2)*3+A23*13)/15;
A25:=IF(A24>13,MA(A24,2),A24)/5;
A26:=CROSS(A25,1) AND (A25<5);
了凡抄底:A15 AND A20 AND A16 AND A22 AND A26 AND 去ST>0,COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
QST赋值:NOT(NAMELIKE('S') OR NAMELIKE('*S'))
QTP赋值:DYNAINFO(17)>0
QKC赋值:IF(CODELIKE('68'),1,0)<1
QXG赋值:收盘价的有效数据周期数>120
TSG赋值:IF(INBLOCK('退市整理股票'),0,1)
去ST赋值:QST AND QTP AND QKC AND QXG AND TSG>0
A1赋值:1日前的C
A2赋值:((SMA((MAX((C-A1),0)),5,1))/(SMA((C-A1的绝对值),5,1)))*100
A3赋值:SUM((MAX((MAX((H-L),(H-A1的绝对值))),ABS((L-A1)))),13)
A4赋值:H-(1日前的H)
A5赋值:(1日前的L)-L
A6赋值:SUM((IF(((A4>0) AND (A4>A5)),A4,0)),13)
A7赋值:SUM((IF(((A5>0) AND (A5>A4)),A5,0)),13)
A8赋值:(A6*100)/A3
A9赋值:(A7*100)/A3
A10:=MA((((A9-A8的绝对值)/(A9+A8))*100),5)
A12:=(100*((10日内H最高值)-C))/((10日内H最高值)-(10日内L最低值))
A13:=A2+A10-A12
A14:=1日内A13最低值
A15:=A14上穿0
DIFF赋值:(C的12日指数移动平均-C的26日指数移动平均)
DEA赋值:DIFF的9日指数移动平均
MACDD赋值:2*(DIFF-DEA)
A16:=MACDD<0 AND MACDD>1日前的MACDD
A17:=13日内L最低值
A18:=34日内H最高值
A19:=EMA((C-A17)/(A18-A17)*100,4)
A20:=A19>1日前的A19
A21:=100*(C-5日内L最低值)/(5日内C最高值-5日内L最低值)
A22:=A21上穿10
A23:=A2-10日内A2最低值
A24:=(A23的2日简单移动平均*3+A23*13)/15
A25:=IF(A24>13,A24的2日简单移动平均,A24)/5
A26:=A25上穿1 AND (A25<5)
输出了凡抄底:A15 AND A20 AND A16 AND A22 AND A26 AND 去ST>0,画黄色