通达信自用成交量副图公式

[复制链接]
查看40 | 回复0 | 2022-7-24 08:09:25 | 显示全部楼层 |阅读模式

通达信自用成交量副图公式

今: VOL/10000,COLORRED;昨:REF(今,1),NODRAW,COLORYELLOW;
{量天:BARSLASTCOUNT(V>MA(V,45)),COLORRED;}
获利:WINNER(C)*100,COLORWHITE;
{七日:LWINNER(7,CLOSE)*100,COLORMAGENTA;}
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))/10000;
卖:=-1*(IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2))/-10000);
主买:(买),COLORRED;
主卖:(卖),COLORGREEN;
净:买+卖,POINTDOT,COLORYELLOW;
进出:=买+卖;
五日:SUM(进出,5),LINETHICK1,COLORGREEN;
乖离率:(C-MA(C,5))/MA(C,5)*100,COLORWHITE ;
换手:VOL/CAPITAL*100,COLORYELLOW;
{十:SUM(换手,10);}
均价:AMOUNT/100/VOL;
流通: CAPITAL/1000000,NODRAW;
市盈:DYNAINFO(39),COLORMAGENTA;
VAR1:=HIGH-LOW;
VAR2:=ABS(OPEN-CLOSE);
VAR3:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);
VAR4:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;
VAR5:=VAR2/VAR1*VOL;
VAR6:=VAR3/VAR1*VOL;
VAR7:=VAR4/VAR1*VOL;
VAR8:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100))));
多头成交口: STICKLINE(CLOSE>MA(H,20),0,VOL,2.5,1),COLORRED;
空头成交口: STICKLINE(CLOSE<MA(L,20),0,VOL,2.5,1),COLORGREEN;
没有趋势口: STICKLINE(CLOSE<MA(H,20) AND CLOSE>MA(L,20),0,VOL,2.5,1),COLORBLUE;
向上攻击量: STICKLINE(VAR5>=VAR6 AND VAR5>=VAR7 AND CLOSE>OPEN,0,VAR5,2.0,0),COLORRED;
向下攻击量: STICKLINE(VAR5>=VAR6 AND VAR5>=VAR7 AND CLOSE<OPEN,0,VAR5,2.0,0),COLORGREEN;
上探量: STICKLINE(VAR6>VAR5 AND VAR6>VAR7,0,VAR6,2.0,0),COLORMAGENTA;
下探量: STICKLINE(VAR7>VAR5 AND VAR7>VAR6,0,VAR7,2.0,0),COLORCYAN;
相对地量: STICKLINE(VAR8>2 AND VOL<MA(VOL,20)/2,0,VOL,2.0,0),COLORWHITE;
量:=IF(C>200,VOL/1000000,VOL/1),LINETHICK0,COLOREEEEFF;
怪异:C=C AND 换手>=25,COLORFF6600;
STICKLINE(C=C AND 换手>=25,0,VAR5,2.0,0),COLORFF6600;
巨量:C=C AND 换手>=15 AND 换手<25,COLORFF0000;
STICKLINE(C=C AND 换手>=15 AND 换手<25,0,VAR5,2.0,0 ),COLORFF0000;
MA5:MA(VOL,5),COLORCYAN,LINETHICK2;
MA35:MA(VOL,35),COLORYELLOW,LINETHICK2;
MA135:MA(VOL,135),COLORBLUE,LINETHICK2;
逢高出货: DRAWTEXT(VAR6>VAR5 AND VAR6>VAR7 AND CLOSE>MA(CLOSE,5)
AND CLOSE>MA(CLOSE,34) AND HIGH>MA(CLOSE,55) AND VOL>MA5
AND VAR6>MA(VOL,5),VOL,'注意'),COLORGREEN;
 

840133719.jpg

840133719.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则