股票软件通达信精品指标公式-庄攻击量度源码通达信公式

2017-11-02    来源:原创    编辑:翔博软件
公式源码: N:=1; AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),COLORRED; 主动卖盘:


公式源码:

N:=1;

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+

(CLOSE-LOW)),VOL/2)),COLORRED;

主动卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,

0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN;

盘差:=主动买盘+主动卖盘;

MJ:=盘差/V;

G:IF(MJ>0 AND MJ<0.2,ROUND(MJ/(N/5))*(N/5),

IF(MJ>0.2 AND MJ<0.25,ROUND(MJ/(N/4))*(N/4),

IF(MJ>=0.25 AND MJ<0.5,ROUND(MJ/(N/2))*(N/2),

IF(MJ>=0.6 AND MJ<0.8,ROUND(MJ/(N))*(N),

IF(MJ>=0.8 AND MJ<1,ROUND(MJ/(N*2))*(N*2),

ROUND(MJ/(N*20))*(N*20)))))),COLORGREEN;

 

ALIGNRIGHT(IF(G=0.2,G,DRAWNULL)),COLORWHITE;

ALIGNRIGHT(IF(G=0.25,G,DRAWNULL)),COLORWHITE;

ALIGNRIGHT(IF(G=0.5,G,DRAWNULL)),COLORWHITE;

ALIGNRIGHT(IF(G=0.8,G,DRAWNULL)),COLORWHITE;

ALIGNRIGHT(IF(G=1,G,DRAWNULL)),COLORWHITE;

 

特别提示:

选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280

 
1
3
点击进入翔博软件旗下官方微店--指标超市