通达信【资金流】副图指标 有资金流入才有行情 源码附图
【资金流】指标简介:
无需L2的资金流指标,有资金流入才有行情,做到看资金买股票。
1、红色表示资金流入;
2、绿色表示为资金流出信号;
3、“钱袋子“表示资金第一次流入信号;
4、“笑脸”信号表示资金第一次且在上涨趋势中出现。
5、指标无未来函数,以下举例:
M6:=10;
M8:=20;
N6:=20;
ABC1:=(1+M6/100)*MA(CLOSE,N6),COLORYELLOW;
ABC2:=(1-M8/100)*MA(CLOSE,N6),COLORBLUE;
ABC3:=(ABC1+ABC2)/2,COLORWHITE DOTLINE;
ABC4:=8*(ABC1+ABC2)/14,COLORRED;
ABC5:=6*(ABC1+ABC2)/14,COLORGREEN;
好股网:=1200823;
涨停:=IF(DATE< 好股网,ZTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;
跌停:=IF(DATE< 好股网,DTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;
M涨停:=IF(DATE< 好股网,C*IF(CODELIKE('688'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(IF(CODELIKE('688') OR CODELIKE('300'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)))),NODRAW,COLORLIMAGENTA;
M跌停:=IF(DATE< 好股网,C*IF(CODELIKE('688'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(IF(CODELIKE('688') OR CODELIKE('300'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)))),NODRAW,COLORFFFF00;
ACC:=C>=涨停 AND PERIOD=5 AND H=C;
ACC1:=H>=涨停 AND PERIOD=5 AND H>C;
ACB:=C<=跌停 AND PERIOD=5 AND L=C;
ACB1:=L<=跌停 AND PERIOD=5 AND L< C;
TJ:=V=HHV(V,100);
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:=MACD>0;
K1:=SUMBARS(TJ,1);
涨停先锋:=C>ABC4 AND REF(C,1)< ABC4 AND (C-REF(C,1))/REF(C,1)>0.09;
STICKLINE(涨停先锋,0,1,2,0),COLORMAGENTA;
DRAWTEXT(涨停先锋,0.8,' ★涨停先锋'),COLORRED;
DRAWICON(涨停先锋,1,9);