1、底背离:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);XG1:=MACDMQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZREF(MACD,1);双底背离:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);Q
2、ZQ:=BARSLAST(REF(MACD,1)0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQDZ:=IF(QFQZQ,REF(DIFF,QF),0);XG1:=MACDMQDZ AND DIFFDQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ0 AND DQDZREF(MACD,1);顶背、底背:SHORT:=12; LONG:=26; M:=9; N:=55; DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LO
3、NG); DEA:EMA(DIFF,M); MACD:2*(DIFF-DEA), COLORSTICK; 底背离:LLV(L,N)=L AND NOT(LLV(MACD,N)=MACD),COLORFF00FF,LINETHICK0; DRAWTEXT(底背离,MACD,底背离),COLOR00FFFF;顶背离:HHV(H,N)=H AND NOT(HHV(MACD,N)=MACD),COLORFFFFFF,LINETHICK0; DRAWTEXT(顶背离,MACD,顶背离),COLOR00FF00; 均线三线粘合:AA:=MA(C,5);BB:=MA(C,55);DD:=MA(C,233);
4、A1:=ABS(AA-C)/C);A2:=ABS(BB-C)/C);A3:=ABS(DD-C)/C);B:=A10.02 AND A20.02 AND A30.02;FILTER(B,10)=1 ;多均线粘合:a5:=MA(C,5);a13:=MA(C,13);a55:=MA(C,55);a233:=MA(C,233);MAX(MAX(a5,a13),MAX(a55,a233)/MIN(MIN(a5,a13),MIN(a55,a233)REF(a5,1)AND a55REF(a55,1);地量:M1:=5;M2:=10;M3:=20;M4:=60;VL:VOL,VOLSTICK;VL5:=MA
5、(VOL,M1);VL10:=MA(VOL,M2);VL20:=MA(VOL,M3);VL60:MA(VOL,M4);V1:=MIN(REF(VOL,1),REF(VOL,2);V2:=MIN(REF(VOL,3),REF(VOL,4);V3:=MIN(REF(VOL,5),REF(VOL,6);V4:=MIN(REF(VOL,7),REF(VOL,8);V5:=MIN(REF(VOL,9),REF(VOL,10);V6:=MIN(REF(VOL,11),REF(VOL,12);V7:=MIN(REF(VOL,13),REF(VOL,14);V8:=MIN(REF(VOL,15),REF(VO
6、L,16);W1:=MIN(MIN(V1,V2),MIN(V3,V4);W2:=MIN(MIN(V5,V6),MIN(V7,V8);ZM1:=MIN(W1,W2);芝麻量:ZM1,colorgreen,LINETHICK1;股市神童的量比选股公式:REF(VOL,4)/REF(VOL,5)2均量线粘合:M1:=5;M2:=13;M3:=55;M4:=233;VL:VOL,VOLSTICK;VL5:=MA(VOL,M1);VL13:=MA(VOL,M2);VL55:=MA(VOL,M3);VL233:MA(VOL,M4);MAX(MAX(vl5,vl13),MAX(vl55,vl233)/MIN(MIN(vl5,vl13),MIN(vl55,vl233)REF(vl5,1)AND vl55REF(vl55,1);均量线交叉:VOLUME:=VOL; MAVOL1:=MA(VOLUME,5); MAVOL2:=MA(VOLUME,55); MAVOL3:=MA(VOLUME,13); 选股:CROSS(MAVOL1,MAVOL2,MAVOL3); 成交量触5日线:M1:=MA(V,5); M2:V M1; 成交量小于233线:M1:=MA(V,233); M5:V 3 AND 涨幅0 AND 涨幅0.7 AND (MIN(O,C)-L)/(H-L)0.7;