指标通过分析价格波动和成交量变化来识别大资金流向,并捕捉买入时机。策略是在大资金持续流入、成交量放大且短期资金指标上穿中期指标时发出买入信号,适合跟踪主力资金动向进行短线操作。
操作逻辑:根据当日价格相对位置计算多空力量,区分大单买卖量,形成资金净流入指标。当资金连续流入、成交量趋势向上且短期指标金叉时,标记为"大资金买点"。通过多层指标平滑处理,减少虚假信号,提高操作胜率。
{主图源码如下}
HG1:=EMA(CLOSE,12)-EMA(CLOSE,26);
HG2:=EMA(HG1,9);
HG3:=HG1>HG2;
HG4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
HG5:=SMA(HG4,3,1);
HG6:=SMA(HG5,3,1);
HG7:=HG5>HG6;
HG8:=REF(CLOSE,1);
HG9:=SMA(MAX(CLOSE-HG8,0),9,1)/SMA(ABS(CLOSE-HG8),9,1)*100;
HG10:=SMA(MAX(CLOSE-HG8,0),26,1)/SMA(ABS(CLOSE-HG8),26,1)*100;
HG11:=HG9>HG10;
HG12:=SMA(HG4,3,1);
HG13:=SMA(HG12,3,1);
HG14:=HG12>HG13;
HG15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
HG16:=CLOSE>HG15;
HG17:=CLOSE-REF(CLOSE,1);
HG18:=100*EMA(EMA(HG17,9),9)/EMA(EMA(ABS(HG17),9),3);
HG19:=100*EMA(EMA(HG17,26),12)/EMA(EMA(ABS(HG17),26),12);
HG20:=HG18>HG19;
HG21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
HG22:=REF(EMA(HG21,3),1);
HG23:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
HG24:=IF(CLOSE>OPEN,HG23*(HIGH-LOW),IF(CLOSE< OPEN,HG23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-HG23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-HG23*(HIGH-LOW),0-VOL/2) );
HG25:=HG24/20/1.15;
HG26:=HG25*0.55+REF(HG25,1)*0.33+REF(HG25,2)*0.22;
HG27:=EMA(HG26,8);
HG28:=EMA(HG26,3);
HG29:=HG28;
HG30:=VOL;
HG31:=MA(HG30,5);
HG32:=MA(HG30,10);
HG33:=HG31>=HG32;
HG34:=HG29>=0;
HG35:=HG34 AND HG33;
DRAWICON(HG35,L,1);
HG36:=MA(KDJ.K(9,3,3),5);
HG37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
HG38:=EMA(HG37,9/2);
HG39:=HG36>=REF(HG36,1) AND HG37>=HG38;
HG_51:=(HIGH+LOW+CLOSE*2)/4;
HG_52:=EMA(HG_51,17);
HG_53:=STD(HG_51,17);
HG_54:=((HG_51-HG_52)/HG_53*100+200)/4;
HG_55:=(EMA(HG_54,5)-25)*1.56;
HG_56:=EMA(HG_55,2)*1.22;
HG_57:=EMA(HG_56,2);
STICKLINE(HG_56-HG_57>0,O,C,3,1),COLORRED;
STICKLINE(HG_56-HG_57< 0,O,C,3,0),COLORGREEN;
STICKLINE(HG_56-HG_57>0 AND REF(HG_56-HG_57< 0,1),O,C,1,0),COLORYELLOW;
STICKLINE(HG_56-HG_57>0 AND HG_56-HG_57< REF(HG_56-HG_57,1) AND HG_57>110,O,C,3,0),COLORLIRED;
涨停启动:=IF((C-REF(C,1))*100/REF(C,1)>=9.80,1,0);
大资金买点:=EVERY(涨停启动,2);
DRAWTEXT(大资金买点,L*1.02,''),COLORYELLOW;
操作线:MA(CLOSE,5),COLORFFFFFF,LINETHICK1;
趋势线:MA(CLOSE,10),COLORRED,LINETHICK1;
DRAWBAND(操作线,RGB(255,50,50),趋势线,RGB(10,204,60));
AA:=C>MA(C,10);
MA5:=MA(C,5);
MA10:=MA(C,10);
多头排列:=MA5>MA10;
STICKLINE(HG35,O,C,2,0),COLORMAGENTA;
STICKLINE(大资金买点,OPEN,CLOSE,1,0),COLORYELLOW;
最佳启动点:=BARSLASTCOUNT(HG_56-HG_57>0 AND 多头排列 AND AA)=1;
DRAWTEXT(最佳启动点,L,'★大资金买点'),COLORYELLOW;
DRAWICON(最佳启动点,L,9);
{副图源码如下}
P1:=60;
P2:=5;
P3:=10;
REFLINE:0;
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
大资金买量:=SUM(DT,1);
大资金卖量:=SUM(KT,1);
DDX:EMA(大资金买量-大资金卖量,5)*VOL/CAPITAL*100,COLORSTICK,LINETHICK2;
STICKLINE(DDX>0,0,DDX,3,0),COLOR000088;
STICKLINE(DDX>0,0,DDX,2.5,0),COLOR0000AA;
STICKLINE(DDX>0,0,DDX,1.5,0),COLOR0000CC;
STICKLINE(DDX>0,0,DDX,1,0),COLOR0000EE;
STICKLINE(DDX< 0,0,DDX,3,0),COLOR008800;
STICKLINE(DDX< 0,0,DDX,2.5,0),COLOR00AA00;
STICKLINE(DDX< 0,0,DDX,1.5,0),COLOR00CC00;
STICKLINE(DDX< 0,0,DDX,1,0),COLOR00EE00;
DDX1:SMA(DDX,3,1),COLORFFFFFF;
DDX2:SMA(DDX1,3,1),COLOR00FFFF;
DDX3:EMA(DDX2,5),COLORFF00FF;
大资金预警:DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK;
最佳启动点:=COUNT(DDX>0,5),COLORRED;
DRAWTEXT(大资金预警,DDX*1.06,'大资金买点'),LINETHICK3,COLOR00FFFF;