通达信真实资金副图指标 红色为主力资金 用法详解 手机和电脑版通用 源码
VAR5:=L2_AMO(0,0)/10000.0,NODRAW;
VAR6:=L2_AMO(0,1)/10000.0,NODRAW;
VAR7:=L2_AMO(1,0)/10000.0,NODRAW;
VAR8:=L2_AMO(1,1)/10000.0,NODRAW;
VAR9:=L2_AMO(2,0)/10000.0,NODRAW;
VAR10:=L2_AMO(2,1)/10000.0,NODRAW;
VAR11:=L2_AMO(3,0)/10000.0,NODRAW;
VAR12:=L2_AMO(3,1)/10000.0,NODRAW;
VAR13:=VAR5-VAR6;
VAR14:=VAR7-VAR8;
VAR15:=VAR9-VAR10;
VAR16:=VAR11-VAR12;
VAR17:=L2_AMO(1,0)/10000.0,NODRAW;
VAR18:=L2_AMO(1,1)/10000.0,NODRAW;
VAR25:=VAR17-VAR18;
VAR29:=FINANCE(7)*C/100000000;
VAR30:=AMO/10000;
VAR31:=CODELIKE('688');
VAR32:=(CODELIKE('30') AND DATE>=1200824);
VAR33:=VAR31 OR VAR32;
VAR34:=IF(CODELIKE('60') OR CODELIKE('30') OR CODELIKE('00'),1,0) AND NOT(VAR33);
VAR35:=((VAR34 AND C/REF(C,1)>=1.096) OR (VAR33 AND C/REF(C,1)>=1.196) AND H=C) OR (BARSCOUNT(C)=0 AND C/O>=1.4 AND C=H);
VAR36:=VAR35 AND H=L;
VAR37:=(VAR35 AND NOT(H=L) AND ((VAR34 AND O/REF(C,1)>=1.096) OR (VAR33 AND O/REF(C,1)>=1.196)));
VAR38:=(VAR34 AND H/REF(CLOSE,1)>=1.096) OR (VAR33 AND H/REF(CLOSE,1)>=1.196) AND NOT(VAR35);
VAR39:=((VAR34 AND C/REF(C,1)<=0.904) OR (VAR33 AND C/REF(C,1)<=0.804) AND C=L);
VAR40:=VAR39 AND H=L;
VAR41:=VAR39 AND NOT(H=L) AND ((VAR34 AND O/REF(C,1)<=0.904) OR (VAR33 AND O/REF(C,1)<=0.804));
VAR42:=((VAR34 AND L/REF(CLOSE,1)<=0.904) OR (VAR33 AND L/REF(CLOSE,1)<=0.804)) AND NOT(VAR39);
VAR43:=VAR35 OR VAR38 OR VAR39 OR VAR42;
VAR44:=VAR39 OR VAR42;
VAR45:=IF(ABS(VAR13)<=VAR30,VAR13,IF(VAR13<0,-VAR30,VAR30));
VAR46:=IF(ABS(VAR25)<=VAR30,VAR25,IF(VAR25<0,-VAR30,VAR30));
VAR47:=ABS(VAR46)<VAR30*0.1;
VAR48:=ABS(VAR45)<VAR30*0.1;
VAR49:=ABS(1*VAR45-VAR46)<=VAR30;
VAR50:=IF(NOT(VAR47),VAR30-MAX(VAR45,-VAR46),IF(VAR48,0,VAR30-MAX(VAR45,-VAR46)));
VAR51:=IF(NOT(VAR47),-VAR30-MIN(VAR45,VAR46),IF(VAR48,0,-VAR30-MIN(VAR45,VAR46)));
VAR52:=IF(VAR36,VAR50,IF(VAR40,VAR51,VAR45));
主力流入:IF(VAR49,VAR45,VAR52),NODRAW,COLORRED;
VAR53:=IF(VAR44,-VAR30-主力流入,VAR30-主力流入);
主力封板:IF(NOT(VAR43),0,IF(VAR49,VAR45-VAR46,VAR53)),NODRAW,COLOR0F5CFF;
主力总买:IF(VAR43,主力流入+主力封板,主力流入),NODRAW,COLORFF42A0;
市值比%:主力总买/10000/VAR29*100,NODRAW,COLORFF42A0;
VAR54:=IF(NOT(REF(H,1)=REF(L,1)),MIN(V/LLV(V,10),1.5),1);
VAR55:=(VAR14*0.2+VAR16*1.75+VAR15*0.75)/1.5*VAR54;
VAR56:=ABS(VAR55)>VAR30;
散户资金:IF(NOT(VAR56),VAR55,IF(VAR55>=0,VAR30,-VAR30)),NODRAW,COLOR008000;
STICKLINE(C>0,0,散户资金,3.2,0),COLOR00FF00;
STICKLINE(C>0,0,主力流入,3.2,0),COLOR0000FF;
STICKLINE(VAR43,主力流入,主力总买,1.3,0),COLOR5EB0E8;
VAR57:=CONST(HHV(MAX(主力总买,散户资金),250));
DRAWNUMBER(市值比%>=0.66,主力总买+VAR57*0.15,INTPART(主力总买)),COLORFF00FF;
DRAWNUMBER(市值比%>=0.66,-VAR57*0.25,ROUND2(市值比%,2)),COLORFF00FF;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR5赋值:L2_AMO(0,0)/10000.0,NODRAW
VAR6赋值:L2_AMO(0,1)/10000.0,NODRAW
VAR7赋值:L2_AMO(1,0)/10000.0,NODRAW
VAR8赋值:L2_AMO(1,1)/10000.0,NODRAW
VAR9赋值:L2_AMO(2,0)/10000.0,NODRAW
VAR10赋值:L2_AMO(2,1)/10000.0,NODRAW
VAR11赋值:L2_AMO(3,0)/10000.0,NODRAW
VAR12赋值:L2_AMO(3,1)/10000.0,NODRAW
VAR13赋值:VAR5-VAR6
VAR14赋值:VAR7-VAR8
VAR15赋值:VAR9-VAR10
VAR16赋值:VAR11-VAR12
VAR17赋值:L2_AMO(1,0)/10000.0,NODRAW
VAR18赋值:L2_AMO(1,1)/10000.0,NODRAW
VAR25赋值:VAR17-VAR18
VAR29赋值:FINANCE(7)*C/100000000
VAR30赋值:AMO/10000
VAR31赋值:CODELIKE('688')
VAR32赋值:(CODELIKE('30') AND DATE>=1200824)
VAR33赋值:VAR31 OR VAR32
VAR34赋值:IF(CODELIKE('60') OR CODELIKE('30') OR CODELIKE('00'),1,0) AND NOT(VAR33)
VAR35赋值:((VAR34 AND C/1日前的C>=1.096) OR (VAR33 AND C/1日前的C>=1.196) AND H=C) OR (C的有效数据周期数=0 AND C/O>=1.4 AND C=H)
VAR36赋值:VAR35 AND H=L
VAR37赋值:(VAR35 AND NOT(H=L) AND ((VAR34 AND O/1日前的C>=1.096) OR (VAR33 AND O/1日前的C>=1.196)))
VAR38赋值:(VAR34 AND H/1日前的收盘价>=1.096) OR (VAR33 AND H/1日前的收盘价>=1.196) AND NOT(VAR35)
VAR39赋值:((VAR34 AND C/1日前的C<=0.904) OR (VAR33 AND C/1日前的C<=0.804) AND C=L)
VAR40赋值:VAR39 AND H=L
VAR41赋值:VAR39 AND NOT(H=L) AND ((VAR34 AND O/1日前的C<=0.904) OR (VAR33 AND O/1日前的C<=0.804))
VAR42赋值:((VAR34 AND L/1日前的收盘价<=0.904) OR (VAR33 AND L/1日前的收盘价<=0.804)) AND NOT(VAR39)
VAR43赋值:VAR35 OR VAR38 OR VAR39 OR VAR42
VAR44赋值:VAR39 OR VAR42
VAR45赋值:IF(VAR13的绝对值<=VAR30,VAR13,IF(VAR13<0,-VAR30,VAR30))
VAR46赋值:IF(VAR25的绝对值<=VAR30,VAR25,IF(VAR25<0,-VAR30,VAR30))
VAR47赋值:VAR46的绝对值
VAR48赋值:VAR45的绝对值
VAR49赋值:1*VAR45-VAR46的绝对值<=VAR30
VAR50:=IF(NOT(VAR47),VAR30-VAR45和-VAR46较大值,IF(VAR48,0,VAR30-VAR45和-VAR46较大值))
VAR51:=IF(NOT(VAR47),-VAR30-VAR45和VAR46的较小值,IF(VAR48,0,-VAR30-VAR45和VAR46的较小值))
VAR52:=IF(VAR36,VAR50,IF(VAR40,VAR51,VAR45))
如果VAR49返回VAR45否则返回VAR52
如果VAR44返回-VAR30-主力流入否则返回VAR30-主力流入
输出主力封板:IF(NOT(VAR43),0,IF(VAR49,VAR45-VAR46,VAR53)),NODRAW,COLOR0F5CFF
如果VAR43返回主力流入+主力封板否则返回主力流入
输出市值比%:主力总买/10000/VAR29*100,NODRAW,COLORFF42A0
VAR54:=IF(NOT(1日前的H=1日前的L),MIN(V/10日内V最低值,1.5),1)
VAR55:=(VAR14*0.2+VAR16*1.75+VAR15*0.75)/1.5*VAR54
VAR56:=VAR55的绝对值>VAR30
输出散户资金:IF(NOT(VAR56),VAR55,IF(VAR55>=0,VAR30,-VAR30)),NODRAW,COLOR008000
当满足条件C>0时,在0和散户资金之间画柱状线
当满足条件C>0时,在0和主力流入之间画柱状线
当满足条件VAR43时,在主力流入和主力总买之间画柱状线
VAR57:=CONST(250日内主力总买和散户资金较大值最高值)
DRAWNUMBER(市值比%>=0.66,主力总买+VAR57*0.15,INTPART(主力总买)),COLORFF00FF
DRAWNUMBER(市值比%>=0.66,-VAR57*0.25,ROUND2(市值比%,2)),COLORFF00FF