指标逻辑:均线上下k线变色,支撑画线,买、逃顶、减仓等文字提示。信号简单明了,适合大部分投资者。适用文华财经软件电脑端
M1:=30;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,LOW,’﹉’),COLOR208FFF,LINETHICK3;
DRAWTEXT(SEL,HIGH,’﹉’),COLORGREEN,LINETHICK3;
N1:=10;
A:=C-REF(C,1);
A1:=EMA(A,N1);
A2:=EMA(ABS(A),N1);
A3:=EMA(A1,N1)/EMA(A2,N1)*100;
短期趋势线:=A3,COLORGREEN;
A4:=MA(A3,2);
短期买:=LLV(A3,2)=LLV(A3,7) AND COUNT(A3<0,2) AND CROSS(A3,A4);
DRAWTEXT(FILTER(短期买=1,5) ,L,’↖买’),COLORRED;
DRAWTEXT(FILTER(A3<REF(A3,1) AND REF(A3,1)>80 AND HHV(A3,2)=HHV(A3,10),5),H,’逃顶’),FONTSIZE20,COLORRED;
DRAWTEXT(FILTER(A3<REF(A3,1) AND REF(A3,1)<80 AND 50<REF(A3,1) AND HHV(A3,2)=HHV(A3,10),5),H,’逃顶’),FONTSIZE20,COLORBLUE;
EMA13:=EMA(C,20);
EMA34:=EMA(C,60);
EMA55:=EMA(C,80);
YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;
YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YZ:=YZ1 AND YZ2 AND Y>10;
DRAWTEXT(YZ,HIGH+0.2,’减仓’),COLORLIGHTGREEN;
BIAS1 := (CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2 := (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BIAS3 : =(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GR1:=BARSLAST(BETWEEN(BIAS2,0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
DIFF : =EMA(CLOSE,12) – EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
GR3:=COUNT(BIAS2>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:=MACD<REF(MACD,1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND GR7,H+0.13,’保利’),COLORLIGHTGREEN;
A11:=EMA(C,14);
A1X:=(A11-REF(A11,1))/REF(A11,1)*100,NODRAW;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),NULL),COLORBLUE,LINETHICK5;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),NULL),COLORBLACK,LINETHICK5;
MA10:MA(C,10);
DRAWCOLORKLINE(C>MA10,COLORRED,0);
DRAWCOLORKLINE(C<MA10,COLORGREEN,0);