对再次完善[给力ddx成交量]18:23终极修订的修订
预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预量,0,-1,-1),COLOR00C0C0;
实量:VOL,VOLSTICK,COLORLIGREEN;
VAR1:=IF(O!=C,VOL/((H-L)*2-ABS(C-O)),IF(C>REF(C,1), VOL/((H-REF(C,1))*2-ABS(C-REF(C,1))),VOL/((REF(C,1)-L)*2-ABS(C-REF(C,1)))));
主买:=IF(C>O,VAR1*(H-L),IF(C<O,VAR1*((H-O)+(C-L)),IF(C>REF(C,1),VAR1*(H-REF(C,1)),IF(C<REF(C,1),VAR1*((REF(C,1)-REF(C,1))+(C-L)),V*0.5)))),COLORRED,NODRAW;
主卖:=-IF(C>O,VAR1*((H-C)+(O-L)),IF(C<O,VAR1*(H-L),IF(C>REF(C,1),VAR1*((H-C)+(REF(C,1)-REF(C,1))),IF(C<REF(C,1),VAR1*(REF(C,1)-L),V*0.5)))),COLOR00FF00,NODRAW;
净量:(主买+主卖),NODRAW,COLOR0000FF;
K:=IF(净量>0,净量,-净量);
STICKLINE(净量>0,0,K,2.0,0),COLOR000088;
STICKLINE(净量>0,0,K,1.8,0),COLOR0000AA;
STICKLINE(净量>0,0,K,1.2,0),COLOR0000CC;
STICKLINE(净量>0,0,K,0.4,0),COLOR0000EE;
STICKLINE(净量<0,0,K,2.0,0),COLOR008800;
STICKLINE(净量<0,0,K,1.8,0),COLOR00AA00;
STICKLINE(净量<0,0,K,1.2,0),COLOR00CC00;
STICKLINE(净量<0,0,K,0.4,0),COLOR00EE00;
DDX:=主买+主卖;
DX:=MA(DDX,5)*5;
MA1:SMA(DX,3,1),COLORRED,LINETHICK1;
MA2:SMA(MA1,3,1),COLORYELLOW,LINETHICK1;
MA3:EMA(MA2,5),COLORF0F000,LINETHICK1;
- 上一篇公式:金多宝--超前速度(副图,有码,贴图)
- 下一篇公式:顶底主图(源码 副图 贴图)