公式源码:
1、七色花开主图指标:
N:=6;
ABC1:=KDJ.J<100;
ABC2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
ABC4:=CAPITAL/1000000<50 ;
ABC3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
ABC5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
ABC6:=IF(C<O,REF(C<O,1),C>O);
ABC7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=ABC1 AND ABC2 AND ABC4 AND ABC3 AND ABC5 AND ABC7 AND ABC6;
T:=BARSLAST(XG);
止盈价:IF(T>0,REF(C,T)*1.1,DRAWNULL),COLORRED,DOTLINE;
止损价:IF(T>0,REF(C,T)*0.9,DRAWNULL),COLORCYAN,DOTLINE;
DRAWICON(T=0,L*0.94,25);
STICKLINE(XG,L,H,0,0),COLORFF00FF;
STICKLINE(XG,CLOSE,OPEN,3,0),COLOR990099;
STICKLINE(XG,CLOSE,OPEN,2.8,0),COLOR990088;
STICKLINE(XG,CLOSE,OPEN,2.5,0),COLOR990077;
STICKLINE(XG,CLOSE,OPEN,2.2,0),COLOR990066;
STICKLINE(XG,CLOSE,OPEN,1.7,0),COLOR990055;
STICKLINE(XG,CLOSE,OPEN,1.2,0),COLORBB00BB;
STICKLINE(XG,CLOSE,OPEN,0.7,0),COLORDD00DD;
STICKLINE(XG,CLOSE,OPEN,0.2,0),COLORFF00FF;
2、七色花开幅图指标:
N:=6;
ABC1:=KDJ.J<100;
ABC2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
ABC4:=CAPITAL/1000000<50;
ABC3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
ABC5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
ABC6:=IF(C<O,REF(C<O,1),C>O);
ABC7:=MTM.MTM+0.05>=MTM.MTMMA;
七色花开:=ABC1 AND ABC2 AND ABC4 AND ABC3 AND ABC5 AND ABC7 AND ABC6;
STICKLINE(七色花开,0,8,1.5,0),COLORMAGENTA;
3、七色花开选股指标:
N:=6;
ABC1:=KDJ.J<100;
ABC2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
ABC4:=CAPITAL/1000000<50;
ABC3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
ABC5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
ABC6:=IF(C<O,REF(C<O,1),C>O);
ABC7:=MTM.MTM+0.05>=MTM.MTMMA;
七色花开选股:ABC1 AND ABC2 AND ABC4 AND ABC3 AND ABC5 AND ABC7 AND ABC6;