副图公式 源码支持手机/电脑
GUP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买入量:=IF(CLOSE>OPEN,GUP1*(HIGH-LOW),IF(CLOSE<OPEN,GUP1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),NODRAW,COLORRED;
卖出量:=IF(CLOSE>OPEN,0-GUP1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUP1*(HIGH-LOW),0-VOL/2)),NODRAW,COLORGREEN;
量差:买入量+卖出量,COLORRED;
STICKLINE(量差>0,0,量差,8,0),COLORMAGENTA;
STICKLINE(量差<0,0,量差,8,1),COLORGRAY;
强弱线:0,COLORYELLOW;
DRAWICON(CROSS(量差,0),买入量,1);
DRAWICON(CROSS(0,量差),卖出量,2);
选股公式源码
{选股公式:红箭头图标}
GUP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买入量:=IF(CLOSE>OPEN,GUP1*(HIGH-LOW),IF(CLOSE<OPEN,GUP1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
卖出量:=IF(CLOSE>OPEN,0-GUP1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUP1*(HIGH-LOW),0-VOL/2)),COLORGREEN;
量差:=买入量+卖出量,COLORRED;
红箭头图标:CROSS(量差,0);
{卖出公式:绿箭头图标}
GUP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买入量:=IF(CLOSE>OPEN,GUP1*(HIGH-LOW),IF(CLOSE<OPEN,GUP1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
卖出量:=IF(CLOSE>OPEN,0-GUP1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-GUP1*(HIGH-LOW),0-VOL/2)),COLORGREEN;
量差:=买入量+卖出量,COLORRED;
绿箭头图标:CROSS(0,量差); |