{指标介绍:
1、红柱表示资金正向流入--买/持;
2、绿柱表示资金正向流出--卖出;
3、黄柱表示资金流入减少--减仓;
4、第一次零轴上方资金流入显示“笑脸”信号;
5、第一次零轴下方资金流出显示“哭脸”信号;
6、重点关注零轴上方红柱+紫色线共振段信号。}
亿:AMOUNT/100000000,COLORFF00FF,NODRAW;
资金:=AMOUNT/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,资金*(HIGH-LOW),IF(CLOSE< OPEN,资金*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-资金*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-资金*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
额亿:流入亿+流出亿,COLORFFFF00,NODRAW;
决策:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;
分界:0;
主力:=(CLOSE*2+HIGH+LOW+O)/4;
散户:=EMA(主力,11)-EMA(主力,22);
量比:=EMA(散户,5);
轴:0;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,4,0)COLOR0D0C6A;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,3,0)COLOR0D06AA;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,1.5,0)COLOR2108C1;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,0.5,0)COLOR9F5DFF;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,4,0)COLOR22736F;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,3,0)COLOR22AAD5;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,1.5,0)COLOR10C7BF;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,0.5,0)COLOR80FFFF;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,4,0)COLOR1B7411;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,3,0)COLOR17A715;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,1.5,0)COLOR08D306;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,0.5,0)COLOR40FF00;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,4,0)COLOR080E71;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,3,0)COLOR0B0E8C;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,1.52,0)COLOR0905B0;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,0.5,0)COLOR0204F2;
量:(-2)*(散户-量比)*5,COLOR00FF00,LINETHICK3;
量1:2*(散户-量比)*5,COLORMAGENTA,LINETHICK3;
DRAWTEXT(crOSS(0,决策),0,'卖');
DRAWICON(CROSS(决策,0),0,5);
DRAWICON(CROSS(0,决策),0,6);
DRAWTEXT(CROSS(决策,0),0,'买');