通达信建仓线副图指标公式源码

均价:=(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);
 MA90:=EMA(R*ZL,90)/EMA(ZL,90);
 FX:=EMA(MA90-EMA((MA(R*ZL,2)/MA(ZL,2)-MA90),1),2);
 A:(SFX-MA90)/MA90*100;
 B:EMA(A,5);
 F:EMA((FX-MA90)/MA90*100,5)/5;
 STICKLINE(A<0.5,0.5,-0.5,4,0),COLORRED;
 0;