通达信莺歌蝶舞副图指标 源码 贴图
VAR1:=IF(C>REF(C,1),V,-V);
VAR2:=SUM(IF(C=REF(C,1),0,VAR1),0);
VAR3:=(EMA(C,9)-EMA((REF(C,1)+O)/2,9));
VAR4:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
VAR5:=REF(CLOSE,1);{公式网WWW.GPXIAZAI.COM}
VAR6:=SMA(MAX(C-VAR5,0),6,1)/SMA(ABS(C-VAR5),6,1)*100;
VAR7:=EMA(V,18)-EMA(V,36);
VAR8:=EMA(C,18)-EMA(C,36);
VAR9:=VAR7>REF(VAR7,1) AND VAR8<REF(VAR8,1);
VAR10:=STRCAT(HYBLOCK,' ');
VAR11:=STRCAT(VAR10,FGBLOCK);
VAR12:=STRCAT(VAR11,DYBLOCK);
VAR13:=STRCAT(VAR12,' ');
VAR18:=REF(VAR9,2)=1 AND REF(VAR9,1)=1 AND VAR9;
VAR19:=REF(VAR9,3)=1 AND REF(VAR9,2)=1 AND REF(VAR9,1)=1 AND VAR9;
DRAWTEXT_FIX(ISLASTBAR,0.06,0,0,STRCAT(VAR13,GNBLOCK)),COLORCYAN;
0,DOTLINE,LINETHICK1;
AV:VAR3*EMA(VAR2,18)/100,COLORSTICK,LINETHICK1;
AM9:EMA(AV,9),COLORYELLOW,LINETHICK1;
AM18:EMA(AV,18),COLORMAGENTA,LINETHICK1;
AM36:EMA(AV,36),COLORGREEN,LINETHICK1;
DRAWICON(CROSS(82,VAR4),AV,14);
DRAWTEXT(CROSS(84,VAR6),AV,'逃顶'),COLORYELLOW;
DRAWICON(VAR18 AND VAR19,0,30);
|