通达信量价,macd,rsi同主图指标
量价,macd,rsi同主图
AQ:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
长期线:=AQ+100;
短期线:=B+100;
中期线:=D+100;
见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));
顶区:=(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
AND 短期线<中期线 AND 短期线<长期线+4,COLORRED;
STICKLINE( 顶区,L*0.9,H*1.02,0,0-1),COLORGREEN;
底区:IF((长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),H*1.02,DRAWNULL) ,CROSSDOT,LINETHICK5,COLORWHITE;
DRAWTEXT(C>O && MA(C,5)<MA(C,10) && REF(C<O,1) && REF(C<O,2)&&REF(C<O,3)&&(REF(C,1)<REF(C,4)*0.88 OR REF(C,1)<REF(O,4)*0.88),H*1.02,'阴'),COLORWHITE;
DRAWTEXT(C>REF(L,1) AND COUNT(C<O,5)>=3 &&(REF(C,1)<REF(C,4)*0.88 OR REF(C,1)<REF(O,4)*0.88),H*1.02,'阴'),COLORWHITE;
低叉:IF((长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线
AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),H*1.02,DRAWNULL),CROSSDOT,LINETHICK5,COLORLIRED;
DIFZ:=EMA(C,12)-EMA(C,26);
DEAZ:=EMA(DIFZ,9);
MACDZ:=2*(DIFZ-DEAZ);
零轴:=DYNAINFO(3)*1.25,COLORFFFFFF;
STICKLINE(MACDZ>0,MACDZ*2+零轴,零轴,0,0),COLORYELLOW;
STICKLINE(MACDZ>0 AND MACDZ>REF(MACDZ,1),MACDZ*2+零轴,零轴,0,0),COLOR0000FF;
STICKLINE(MACDZ<0,MACDZ*2+零轴,零轴,0,0),COLOR00D900;
STICKLINE(MACDZ<0 AND MACDZ>REF(MACDZ,1),MACDZ*2+零轴,零轴,0,0),COLORC080FF;
ZDIF:(DIFZ*2+零轴),COLORRED;
(DEAZ*2+零轴),COLORFFFFFF;
IF(DIFZ<=REF(DIFZ,1),DIFZ*2+零轴,DRAWNULL),COLORFFF000;
HH0:=CONST(HHV(H,120))*1;
LL0:=CONST(LLV(L,120))*1;
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.2),COLORRED;
LL1:=LL0;HLMAX:=MAX(HH1,LL1);
HLMIN:=MIN(HH1,LL1);
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=(HLMAX-HLMIN);
HLMN3:=HHV(V,250)/2;
HLMN4:=HHV(V,250);
VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;
STICKLINE(C>O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,1),COLORRED;
STICKLINE(C<=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORCYAN;
{(MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;
(MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;}
I:=REF(CLOSE,1);
RC:=SMA(MAX(CLOSE-I,0),6,1)/SMA(ABS(CLOSE-I),6,1)*100;
RZ:(RC)*HLMN2/100+HLMN1,COLORFFFFFF;
R20:=HLMN1+HLMN2*0.002*100,DOTLINE,COLORLIMAGENTA;
标:=HLMN1+HLMN2*0.005*100;
RSI1:=SMA(MAX(CLOSE-I,0),6,1)/SMA(ABS(CLOSE-I),6,1)*100;
STICKLINE(FILTER(REF(RSI1,1)<20 AND RSI1>REF(RSI1,1),5),RZ,标,1,0),COLORMAGENTA;
STICKLINE((REF(RSI1,1)<20 AND RSI1>REF(RSI1,1) AND COUNT(RSI1<20,10)>=4),RZ,标,1,0),COLORLIMAGENTA;
超卖:IF(RZ<R20,标*0.98,R20),COLORGREEN;
STICKLINE(RZ>标,标,RZ,0,1),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C,0.12,0.72,0,'RSI等于'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND C,0.2,0.72,0,RSI);