{七色花开均线源码如下}
M1:=5;
M2:=10;
M3:=20;
M4:=30;
{主图}
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50 ;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
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;
{七色花开主图图源码如下}
{主图}
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50 ;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
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;
{七色花开副图源码如下}
{幅图}
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
STICKLINE(XG,0,8,1.5,0),COLORMAGENTA;