主买率(通达信公式 源码 贴图)

 2022-11-19 13:38:49    通达信指标网  

N:=76;
总量预测:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,总量预测,0,-1,-1),COLOR00C0C0;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))STICK,LINETHICK2;
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))STICK,LINETHICK2;
VOLUME:=VOL,VOLSTICK;
STICKLINE(CLOSE>=OPEN,0,VOL*1,3,0),COLOR000099;
STICKLINE(CLOSE>=OPEN,0,VOL*1,2,0),COLOR0000CC;
STICKLINE(CLOSE>=OPEN,0,VOL*1,1.3,0),COLOR0000FF;
STICKLINE(CLOSE>=OPEN,0,VOL*1,0.2,0),COLORCC66FF;
STICKLINE(CLOSE<=OPEN,0,VOL*1,3,0),COLORFF6600;
STICKLINE(CLOSE<=OPEN,0,VOL*1,2,0),COLORFF9900;
STICKLINE(CLOSE<=OPEN,0,VOL*1,1.3,0),COLORFFCC00;
STICKLINE(CLOSE<=OPEN,0,VOL*1,0.2,0),COLORCYAN;
主卖率:=主动卖盘/VOL*100,COLORGREEN;
换手率:=VOL/CAPITAL*100,COLORYELLOW;
STICKLINE(换手率>14,0,主动买盘, 1,0) ,COLORGREEN;
主买率:主动买盘/VOL*100,COLORRED;
AAA:=STICKLINE(主买率>=80 AND 主买率>80,0, 主动买盘,1.3,0),COLORYELLOW;
MA1:MA(VOL,5),COLORGREEN,LINETHICK1;
MA2:MA(VOL,10),COLORWHITE,LINETHICK1;

VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*20;

DRAWICON(动力线<=38 AND 主买率>=N AND VOL<MA1 AND MA1>=REF(MA1,1),VOL*0.38,9);


  •  标签:  

原文链接:https://www.tdxzb.com/?id=789

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服