通达信系统指标公式 下载本文

MASS 梅斯线

MASS:SUM(MA(HIGH-LOW,N1)/MA(MA(HIGH-LOW,N1),N1),N2); MAMASS:MA(MASS,M);

PSY 心理线

PSY:COUNT(CLOSE>REF(CLOSE,1),N)/N*100; PSYMA:MA(PSY,M);

VR 成交量变异率

TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N); TL:=SUM(IF(CLOSE

WAD 威廉多空力度线

MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);

MIDB:=IF(CLOSEREF(CLOSE,1),MIDA,MIDB),0); MAWAD:MA(WAD,M);

15

PCNT 幅度比

PCNT:(CLOSE-REF(CLOSE,1))/CLOSE*100; MAPCNT:EXPMEMA(PCNT,M);

CYR 市场强弱

DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N); CYR:(DIVE/REF(DIVE,1)-1)*100; MACYR:MA(CYR,M);

NVI 负成交量(加密)

PVI 正成交量(加密)

第五节 成交量型

AMO 成交金额

AMO:AMOUNT,VOLSTICK; MAAMO1:MA(AMO,M1); MAAMO2:MA(AMO,M2); MAAMO3:MA(AMO,M3);

16

OBV 累积能量线

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:MA(OBV,M);

VOL 成交量

VOLUME:VOL,VOLSTICK; MAVOL1:MA(VOLUME,M1); MAVOL2:MA(VOLUME,M2);

VOL-TDX 成交量(盘中虚拟)

TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));

MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME<0.5,TOTAL,MTIME); VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;

STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; MAVOL1:MA(VOLUME,M1); MAVOL2:MA(VOLUME,M2);

CCL 持仓量(适用于期货)

持仓量:VOLINSTK; MACCL:MA(持仓量,M);

17

SHORTVOL 抛空量(适用于港股)

抛空量:HKSHORTVOL,VOLSTICK; MACCL:MA(抛空量,M);

VRSI 相对强弱量

LC:=REF(VOL,1);

RSI1:SMA(MAX(VOL-LC,0),N1,1)/SMA(ABS(VOL-LC),N1,1)*100; RSI2:SMA(MAX(VOL-LC,0),N2,1)/SMA(ABS(VOL-LC),N2,1)*100; RSI3:SMA(MAX(VOL-LC,0),N3,1)/SMA(ABS(VOL-LC),N3,1)*100;

HSL 换手线

HSL:100*VOL/(FINANCE(7)/100); MAHSL:MA(HSL,N);

HSCOL 换手柱

HSCOL:100*VOL/(FINANCE(7)/100),VOLSTICK; MAHSL:MA(HSCOL,N);

18