对资金流出情况和流进来的情况做了个量柱,标上了数值,多出来的金額在上方为红色,少了的金額是在下方为绿色 VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,colorred,NODRAW;
流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,colorwhite,NODRAW;
额亿:流入亿+流出亿,COLORFFFF00,NODRAW;
流入比例:流入亿/ABS(总亿),COLORFFFF00,NODRAW;
流出比例:ABS(流出亿)/总亿,COLORFFFF00,NODRAW;
{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}
YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;
分界:0;
DRAWNUMBER(总亿>0,额亿+0.1,(CEIL(额亿*100))/100)
AND STICKLINE(流出亿<0,额亿,0,4,10,0), colorred;
STICKLINE(额亿<0,额亿,0,4,10,0), colorgreen;
DRAWNUMBER(总亿<0,额亿+0.1,(CEIL(额亿*100))/100)
|
