特大资金流向需要L2通达信指标 主图 和谐源码分享
超B:=L2_AMO(0,0)/10000;
大B:=L2_AMO(1,2)/10000;
中B:=L2_AMO(2,2)/10000;
小B:=L2_AMO(3,2)/10000;
超S:=L2_AMO(0,1)/10000;
大S:=L2_AMO(1,3)/10000;
中S:=L2_AMO(2,3)/10000;
小S:=L2_AMO(3,3)/10000;
TDZ:=SUM((L2_AMO(0,2)-L2_AMO(0,3))/10000,0);
TDM:=SUM((L2_AMO(0,0)-L2_AMO(0,1))/10000,0);
DDZ:=SUM((L2_AMO(1,2)-L2_AMO(1,3))/10000,0);
DDM:=SUM((L2_AMO(1,0)-L2_AMO(1,1))/10000,0);
ZDZ:=SUM((L2_AMO(2,2)-L2_AMO(2,3))/10000,0);
ZDM:=SUM((L2_AMO(2,0)-L2_AMO(2,1))/10000,0);
SDZ:=SUM((L2_AMO(3,2)-L2_AMO(3,3))/10000,0);
SDM:=SUM((L2_AMO(3,0)-L2_AMO(3,1))/10000,0);
资金流向:TDM,NODRAW;{}
NOTEXT1:TDM,COLORWHITE,LINETHICK2;
NOTEXT2:SMA(SMA(NOTEXT1,3,1),8,1),COLORLIMAGENTA,LINETHICK2;
NOTEXT3:MA(REF(HHV(NOTEXT1,34),1),2),COLORLIBLUE,LINETHICK2;
XGA:=COUNT(NOTEXT1<NOTEXT2,10)>=1 AND CROSS(NOTEXT1,NOTEXT2);
XGB:=COUNT(NOTEXT1>NOTEXT3,10)=1 AND NOTEXT1>NOTEXT3;
TDXSTEP362:DRAWICON(XGA,NOTEXT2,13);
TDXSTEP363:DRAWICON(XGB,NOTEXT3,11);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
超B赋值:L2_AMO(0,0)/10000
大B赋值:L2_AMO(1,2)/10000
中B赋值:L2_AMO(2,2)/10000
小B赋值:L2_AMO(3,2)/10000
超S赋值:L2_AMO(0,1)/10000
大S赋值:L2_AMO(1,3)/10000
中S赋值:L2_AMO(2,3)/10000
小S赋值:L2_AMO(3,3)/10000
TDZ赋值:SUM((L2_AMO(0,2)-L2_AMO(0,3))/10000,0)
TDM赋值:SUM((L2_AMO(0,0)-L2_AMO(0,1))/10000,0)
DDZ赋值:SUM((L2_AMO(1,2)-L2_AMO(1,3))/10000,0)
DDM赋值:SUM((L2_AMO(1,0)-L2_AMO(1,1))/10000,0)
ZDZ赋值:SUM((L2_AMO(2,2)-L2_AMO(2,3))/10000,0)
ZDM赋值:SUM((L2_AMO(2,0)-L2_AMO(2,1))/10000,0)
SDZ赋值:SUM((L2_AMO(3,2)-L2_AMO(3,3))/10000,0)
SDM赋值:SUM((L2_AMO(3,0)-L2_AMO(3,1))/10000,0)
输出资金流向:TDM,NODRAW
输出{}
NOTEXT1:TDM,画白色, 线宽为2
NOTEXT1的3日[1日权重]移动平均
输出NOTEXT3:MA(REF(34日内NOTEXT1最高值,1),2),COLORLIBLUE, 线宽为2
XGA赋值:统计10日满足NOTEXT1=1 AND NOTEXT1上穿NOTEXT2
XGB赋值:统计10日满足NOTEXT1>NOTEXT3的天数=1 AND NOTEXT1>NOTEXT3
当满足条件XGA时,在NOTEXT2和13之间画图标
当满足条件XGB时,在NOTEXT3和11之间画图标