全面分析主图公式
MA5:MA(C,5),colorblue;
MA10:MA(C,10),colormagenta;
MA20:MA(C,20),colorred;
MA60:MA(C,60),colorgreen;
MA120:MA(C,120),coloryellow;
XL1:=((LLV(LOW,3)=LLV(LOW,60)) AND ((CLOSE/REF(CLOSE,1))>=1.04));
DRAWTEXT(FILTER(((XL1>0) AND LOW),5),L*0.975,'洼底'),colorliblue;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA1:=EMA(DIFF1,9);
A1:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF1>REF(DIFF1,A1+1) AND CROSS(DIFF1,DEA1);
DRAWTEXT(底背离,L*0.99,'底背离'),colormagenta;
A2:=BARSLAST(REF(CROSS(DEA1,DIFF1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF1,A2+1)>DIFF1 AND CROSS(DEA1,DIFF1);
DRAWTEXT(顶背离,H*1.01,'顶背离'),,coloryellow;
MACD:=2*(DIFF1-DEA1);
多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));
DRAWICON(多转空,H*1.01,8);
DRAWICON(空转多,L*0.99,7);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
BBUY:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
BBSY:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
BBBUY:=FILTER(BBUY=1,5);//www.88gs.com
DRAWTEXT(FILTER(BBSY=1,1),HIGH*1.015,'亢');
FFQ2:=(CLOSE-LLV(LOW, 20))/(HHV(HIGH, 20)-LLV(LOW, 20))*100;
FFQ3:=SMA(FFQ2,9,1);
FFQ4:=SMA(FFQ3,3,1);
FFAAB:=3*FFQ3-2*FFQ4;
FFQ81:=BARSLAST(LLV(LOW,50)=LOW);
FFQ8:=BARSLAST(HHV(HIGH,FFQ81)=HIGH);
FFQ10:=(CLOSE-REF(OPEN,FFQ8))/REF(OPEN,FFQ8)*100;
FFA1:=EMA(FFQ3,3);
FFA2:=EMA(FFA1,3);
FFA3:=EMA(FFA2,3);
FFA4:=EMA(FFA3,3);
FFA:=EMA(FFA4,3);
FFQTTMM:=CROSS(FFA1,FFAAB) AND REF(FFAAB,1)>80;
DRAWTEXT(FFQTTMM,HIGH*1.016,'悔'),colorgreen;
GLL5:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)<=-0.10;
DRAWTEXT(GLL5,LOW*0.98,'0510'),colorblue;
GLL10:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)<=-0.15;
DRAWTEXT(GLL10,LOW*0.97,'1015'),colormagenta;
GLL20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)<=-0.20;
DRAWTEXT(GLL20,LOW*0.96,'2020'),colorred;
GLLZ5:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)>=0.10;
DRAWTEXT(GLLZ5,HIGH*1.02,'0510'),colorblue;
GLLZ10:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)>=0.15;
DRAWTEXT(GLLZ10,HIGH*1.03,'1015'),colormagenta;
GLLZ20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)>=0.20;
DRAWTEXT(GLLZ20,HIGH*1.04,'2020'),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.90,0,'①长平短升,黄金交叉,价突破②长升短平,回测不破,价突破③长升短跌,小跌破,价突破');
DRAWTEXT_FIX(ISLASTBAR,0.37,0.95,0,'①长平短跌,死亡交叉,价跌破②长跌短平,弹不过,价跌破③长跌短升,小突破,价跌破');