以下是通达信精准买卖附图指标源码(无源码的请下载附件导入)
VAR0:=SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)),3,1);
VAR1:=SMA(VAR0,3,1)*100;
趋势线:VAR1;
VAR1,COLORYELLOW,POINTDOT,LINETHICK3;
VAR2:=MA(VAR1,7);
下线:VAR2-3, COLORF00FF0;
上线:VAR2+3, COLORF00FF0;
强弱线:IF((CROSS(VAR1,VAR2) AND VAR1<25),VAR2,50),LINETHICK2, COLOR00FF00;
STICKLINE(VAR2>REF(VAR2, 1), VAR2, VAR2, 8, 1),LINETHICK2, COLORRED;
STICKLINE(VAR2<REF(VAR2, 1), VAR2, VAR2, 8, 1),LINETHICK2, COLOR00FF00;
STICKLINE(VAR2=REF(VAR2, 1), VAR2, VAR2, 8, 1),LINETHICK3, COLORF0F000;
69422653.jpg
|