通达信【资金起涨】主副套装指标 源码附图
1、将成交量与流通股本添加其中,当主力资金占据多头“优势”时,出“钱袋子”起涨信号,此时可重点关注;
2、当主图信号为红色K线时,对应的副图为红色柱子;
3、当主图信号为蓝色K线时,对应的副图为蓝色柱子;
4、必须是多头趋势下,生命线上出“钱袋子”起涨信号;
5、指标含有流通股本未来数,不影响使用,以下举例:
{资金起涨主图源码如下}
工作线:MA(CLOSE,8),COLORYELLOW,LINETHICK2;
生命线:MA(CLOSE,30),COLORMAGENTA;
趋势线:MA(CLOSE,60),DOTLINE,COLORBLUE;
ABC1:=STRCAT(HYBLOCK,2);
ABC2:=STRCAT(ABC1,DYBLOCK);
ABC3:=STRCAT(ABC2,2);
ABC4:=VOL/CAPITAL*100>5;
ABC5:=EMA(CLOSE,12)-EMA(CLOSE,26);
ABC6:=EMA(ABC5,9);
ABC7:=(ABC5-ABC6)*2;
ABC8:=CLOSE>OPEN AND ABC7< 0 AND ABC7>REF(ABC7,1) AND REF(ABC7,1)< REF(ABC7,2) AND REF(ABC7,2)< REF(ABC7,3) AND REF(ABC7,3)< REF(ABC7,4) AND REF(ABC7,4)< REF(ABC7,5);
ABC9:=REF(ABC7,1)< 0 AND REF(ABC7,2)< 0 AND REF(ABC7,3)< 0 AND REF(ABC7,4)< 0 AND REF(ABC7,5)< 0 AND ABC4;
ABC10:=CLOSE/REF(CLOSE,1);
ABC11:=REF(ABC10< 1.01,1) AND ABC10< 1.03 AND ABC5< 0;
ABC12:=ABC8 AND ABC9 AND ABC11;
ABC13:=C>MA(C,30);
主力做多:=SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
主力做空:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
多头:=MACD>0;
起涨:=CROSS(主力做空,主力做多)AND 多头 AND ABC13;
DRAWTEXT(起涨,L*0.98,' ★起涨'),COLORYELLOW;
DRAWICON(起涨,L,9);
STICKLINE(起涨,OPEN,CLOSE,1,0),COLORMAGENTA;
{资金起涨主图源码如下}
主力做多:=SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
主力做空:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
VOLUME:=VOL,VOLSTICK;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
ABC13:=C>MA(C,30);
多头:=MACD>0;
起涨:CROSS(主力做空,主力做多) AND 多头 AND ABC13 VOLSTICK;
DRAWICON(起涨,1,9);