通达信量能力道(短、中、长)副图指标公式源码

通达信量能力道短副图指标公式源码

VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10;
买卖力道:=SMA(VAR2,5,1),COLORGREEN;
VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));
VAR5:=AMOUNT/(100*VOL);
VAR6:=MA(VAR5,40);
VAR7:=100*(CLOSE-VAR6)/VAR6;
VAR8:=EMA(买卖力道,5);
MACD1:=(买卖力道-VAR8)*1000,COLORSTICK;
柱线1:=MACD1,COLORRED;
MACD2:=MA(V-VAR8,1),COLORSTICK;
柱线2:=MACD2,COLOR99EEEE;
VAR9:=MA(柱线2,20)COLORFFCC00;
中线:0.00,COLORBLUE;
小柱:(柱线2-VAR9),COLORSTICK;
小柱线1:小柱,COLORWHITE;
STICKLINE(小柱线1>中线,中线,小柱线1,0,1),COLORFF00FF;
STICKLINE(小柱线1<中线,中线,小柱线1,0,1),COLORBLUE;
小柱线:小柱,COLORWHITE;

通达信量能力道中副图指标公式源码

VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10;
买卖力道:=SMA(VAR2,5,1),COLORGREEN;
VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));
VAR5:=AMOUNT/(100*VOL);
VAR6:=MA(VAR5,40);
VAR7:=100*(CLOSE-VAR6)/VAR6;
VAR8:=EMA(买卖力道,5);
MACD1:=(买卖力道-VAR8)*1000,COLORSTICK;
柱线1:=MACD1,COLORRED;
MACD2:=MA(V-VAR8,1),COLORSTICK;
柱线2:=MACD2,COLOR99EEEE;
VAR9:=MA(柱线2,20)COLORFFCC00;
中线:0.00,COLORBLUE;
MACD3:=MA(V-VAR8,1),COLORSTICK;
MACD5:=MA(MACD3,5),COLORSTICK;
MACD4:=MA(柱线2,60);
大柱:(MACD5-MACD4),COLORSTICK;
大柱线:大柱,COLOR66EEEE;
小柱:(柱线2-VAR9),COLORSTICK;
小柱线1:小柱,COLORWHITE;
STICKLINE(小柱线1>中线,中线,小柱线1,0,1),COLORFF00FF;
STICKLINE(小柱线1<中线,中线,小柱线1,0,1),COLORBLUE;
小柱线:小柱,COLORWHITE;

通达信量能力道长副图指标公式源码

VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10;
买卖力道:=SMA(VAR2,5,1),COLORGREEN;
VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));
VAR5:=AMOUNT/(100*VOL);
VAR6:=MA(VAR5,40);
VAR7:=100*(CLOSE-VAR6)/VAR6;
VAR8:=EMA(买卖力道,5);
MACD1:=(买卖力道-VAR8)*1000,COLORSTICK;
柱线1:=MACD1,COLORRED;
MACD2:=MA(V-VAR8,1),COLORSTICK;
柱线2:=MACD2,COLOR99EEEE;
VAR9:=MA(柱线2,20)COLORFFCC00;
中线:0.00,COLORBLUE;
MACD3:=MA(V-VAR8,1),COLORSTICK;
MACD5:=MA(MACD3,5),COLORSTICK;
MACD4:=MA(柱线2,60);
大柱:(MACD5-MACD4),COLORSTICK;
大柱线:大柱,COLOR66EEEE;