通達信壓力支撐線指标原碼(主圖疊加)
VAR1:=MA(CLOSE,30);
海底: VAR1-2*STD(CLOSE,60),COLORCYAN,LINETHICK2;
水平面: MA(CLOSE,60),POINTDOT;
天際: VAR1+2*STD(CLOSE,60),;
FLY1: MA(CLOSE,5),;
FLY2: MA(CLOSE,10),;
VAR2:=CROSS(MA(CLOSE,5),MA(CLOSE,30));
DRAWICON(VAR2,LOW-LOW*0.01,1);
DRAWTEXT(VAR2 AND CLOSE>MA(CLOSE,250),LOW-LOW*0.02,'←少量買 '),COLORYELLOW;
DRAWTEXT(VAR2 AND CLOSE>=MA(CLOSE,60) AND CLOSE<=MA(CLOSE,250),LOW-LOW*0.02,'←半倉買'),COLORYELLOW;
DRAWTEXT(VAR2 AND CLOSE
賣線:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
DRAWTEXT(BU,LOW*0.98,'B'),,,COLORRED;
DRAWTEXT(SEL,HIGH*1.02,'S'),,,COLORGREEN;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
波峰:IF(T1>=1,A,DRAWNULL),COLOR00FF20;
波峰射線:IF(T1<1,A,DRAWNULL),POINTDOT,COLOR00FF20;
波谷:IF(T2>=1,B,DRAWNULL),COLORFF00FF;
波谷射線:IF(T2<1,B,DRAWNULL),POINTDOT,COLORFF00FF;
YY:=(H+L+C)/3;DRAWKLINE(YY,YY,YY,YY+0.00006),COLORGREEN;
有話要說...