通达信【资金监测】副图指标 短线资金、中线资金、长线资金 源码
”资金监测“指标主要分为短线资金、中线资金、长线资金;绿柱消失买入、红柱消失卖出。
1、红色柱子表示”短线资金“;
2、黄色柱子表示”中线资金“;
3、紫色柱子表示”长线资金“;
4、当短线资金+中线资金同时出现,产生共振时,出”笑脸“信号;
5、当短、中、长线资金同时出现,产生共振时,出”钱袋子“信号;
ABC1:=(CLOSE*2+HIGH+LOW)/4;
ABC2:=EMA(ABC1,13)-EMA(ABC1,34);
ABC3:=EMA(ABC2,5);
ABC4:=(-2)*(ABC2-ABC3)*3.8;
ABC5:=2*(ABC2-ABC3)*3.8;
STICKLINE(ABC5>0,ABC5,8,1.0,0),COLORRED;
STICKLINE(ABC5< 0,ABC5,8,1.0,0),COLORGREEN;
ABC6:=CLOSE-MA(CLOSE,12.5);
STICKLINE(ABC6>0,ABC5,5,2.8,0),COLORYELLOW;
STICKLINE(ABC6< 0,ABC5,5,2.8,0),COLORGREEN;
ABC7:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ABC8:=EMA(ABC7,9);
ABC9:=2*(ABC7-ABC8);
STICKLINE(ABC7< 0,ABC5,4,1,0),COLORGREEN;
STICKLINE(ABC7>=0,ABC5,4,1,0),COLORMAGENTA;
ACB1:=(CLOSE*2+HIGH+LOW)/4;
ACB2:=EMA(ACB1,13)-EMA(ACB1,34);
ACB3:=EMA(ACB2,5);
ACB4:=(-2)*(ACB2-ACB3)*3.8;
ACB5:=2*(ACB2-ACB3)*3.8;
短:=ACB5>0;
ACB11:=CLOSE-MA(CLOSE,12.5);
中:=ACB1>0;
ACB21:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ACB22:=EMA(ACB21,9);
ACB23:=2*(ACB21-ACB22);
长:=ACB21>=0;
共振3:=短 AND 中 AND 长;
共振2:=短 AND 中 ;
DRAWICON(CROSS(共振2,0.6),7.5,5);
DRAWICON(CROSS(共振3,0.6),6.6,9);
DRAWTEXT(CROSS(共振3,0.6),6.8,' ★共振'),COLORWHITE;