通达信多年自用主图指标
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
N:=8;
M:=REF(CLOSE,1);
A:=SMA(MAX(CLOSE-M,0),N,1)/SMA(ABS(CLOSE-M),N,1)*100,COLORYELLOW,LINETHICK1;
B0:=A=DRAWLINE(A =HHV(A,N),A,A =LLV(A,N),1,A),COLOR00FF00;
B1:=A=DRAWLINE(A =HHV(A,N),A,A =LLV(A,N),A,1),COLOR00FF00;
B2:= A REF(A,1);
B3:=A REF(1,A);
C1:=DRAWICON(B1 AND B2,A,9);
C2:=DRAWICON(B0 AND B3,A,15);
DRAWICON(FILTER(C1 0,1),L*0.97,9);
DRAWICON(FILTER(C2 0,1),H*1.02,15);