{追买主图叠加}
M5:MA(CLOSE,5)COLORWHITE;
M10:MA(CLOSE,10)COLORYELLOW;
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2 0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4 =0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA REF(DEA,1)) 4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC REF(ZLC,1),LOW-0.3,'★果断买入'),COLORYELLOW;
{追买副图}
M5:=MA(CLOSE,5)COLORWHITE;
M10:=MA(CLOSE,10)COLORYELLOW;
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2 0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4 =0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:=DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA REF(DEA,1)) 4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC REF(ZLC,1),LOW-0.3,'★果断买入'),COLORYELLOW;
STICKLINE(XG,0,19,1.5,0),COLORRED;
{追买选股}
A1:=C-REF(C,1);
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
AA:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2 0,2) AND CROSS(A2,MA(A2,2));
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
VAR4:=2*(VAR2-VAR3)*5.5;
ZLC:=IF(VAR4 =0,VAR4,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
DRAWTEXT(FILTER(AA=1,5) AND BARSLASTCOUNT(DEA REF(DEA,1)) 4 AND
CROSS(A2,MA(A2,2)) AND AA AND ZLC REF(ZLC,1),LOW-0.3,'★果断买入');