以下是通达信庄平均线主图指标公式源码(无源码的请下载附件导入)
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
KX:=(R+R1)/2;
HL:=SQRT(R1-R)+(R1=R);
JFC:=IF(CAPITAL>0,HL,SQRT(KX));
SF:=JFC;ZL:=1/JFC;
SFX:EMA(R*SF,90)/EMA(SF,90),COLORFFC0FF;
MA5:MA(R*ZL,5)/MA(ZL,5);
MA10:EMA(R*ZL,10)/EMA(ZL,10),COLORWHITE,LINETHICK2;
MA25:EMA(R*ZL,25)/EMA(ZL,25),COLORYELLOW,LINETHICK2;
MA90:EMA(R*ZL,90)/EMA(ZL,90),COLORFFC0FF,LINETHICK2;
MA240:EMA(R*ZL,240)/EMA(ZL,240),COLORRED,LINETHICK2;
MA480:=EMA(R*ZL,480)/EMA(ZL,480),COLORAAAA00,LINETHICK2;
192244161.jpg
|