以下是通达信的应用指标公式源码和截图
通达信量比的应用指标公式源码:
N:=3;
M:=5;
柱:SUM(IF(C REF(C,1),VOL,IF(C REF(C,1),-VOL,0)),0)/SHGZG,COLORSTICK;
短:EMA(柱,1),colorred;
中:EMA(EMA(EMA(EMA(柱,1),2),1),2),colorgreen;
长:EMA(EMA(EMA(柱,3),6),9),colorcyan;
UPT3:=TROUGHBARS(3,N,M) REF(TROUGHBARS(3,N,M),1);
UPT2:=TROUGHBARS(2,N,M) REF(TROUGHBARS(2,N,M),1);
UPT1:=TROUGHBARS(1,N,M) REF(TROUGHBARS(1,N,M),1);
DNP3:=PEAKBARS(3,N,M) REF(PEAKBARS(3,N,M),1);
DNP2:=PEAKBARS(2,N,M) REF(PEAKBARS(2,N,M),1);
DNP1:=PEAKBARS(1,N,M) REF(PEAKBARS(1,N,M),1);
DRAWTEXT(UPT3ORUPT2ORUPT1,短,'B'),colorgreen;
DRAWTEXT(DNP3ORDNP2ORDNP1,短,'S'),colorred;
DLB:=SUM(V,9)/REF(SUM(V,81),1);
LB:DLB*100,COLORCYAN,LINETHICK;
stICKLINE(LB 3ANDLB 6,0,LB,8,1),COLORCYAN;
STICKLINE(LB 3,0,LB,3,0),COLORAAAA00;
STICKLINE(LB 9,9,LB,3,0),COLORBROWN;
STICKLINE(LB 18,18,LB,3,0),COLOR6600FF;
HLB:=Ema(HHV(LB,18),18);
MLB:MA(LB,18),COLORWHITE;
LLB:EMA(LLV(LB,18),18),COLORGREEN;
ZLB:=EMA((MLB+(HLB-LLB)*0.618),54),COLORMAGENTA;
BLLB:=ZLB+STD((MLB+(HLB-LLB)*0.618),54),COLORGREEN;
拉升:LB BLLB,LINETHICK,COLOR00CCCC;
STICKLINE(LB BLLB,BLLB,LB,3,0),COLOR00CCCC;
DLX:DMA(((HHV(LB,72)+LLV(LB,18))/2+(MA(LB,72)+MLB)/2)/2,DLB),COLORMAGENTA;
:LB 3,LINETHICK,COLORYELLOW;
STICKLINE(LB 3,0,LB,8,0),COLORYELLOW;
通达信量比的应用指标公式截图