龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-24 15:03

大智慧仿天狼大单分时指标公式源码[大智慧公式]

[p=30, 2, left][b]大智慧仿天狼大单分时指标公式源码[/b][/p][p=30, 2, left][b]主力流向分时[/b][/p]
[p=30, 2, left][b][code]
variable:ddx=0;
a0:=(ordervol(1,2)-ordervol(2,2))+(ordervol(1,3)-ordervol(2,3));
a1:=(ordervol(1,2)-ordervol(2,2))/capital*100+(ordervol(1,3)-ordervol(2,3))/capital*100;
a2:SUM(a1,0),LINETHICK0;
a3:SUM(a0,0),LINETHICK0;
FILLRGN(0,a3,a3>0,RGB(255,0,0),a3<0,RGB(0,255,255));
[/code]
[/b][/p]
[p=30, 2, left][b]特大单流分时[/b][/p]
[p=30, 2, left][b][code]
variable:ddx=0;
a0:=(ordervol(1,3)-ordervol(2,3));
a1:=(ordervol(1,3)-ordervol(2,3))/capital*100;
a2:SUM(a1,0),LINETHICK0;
a3:SUM(a0,0),LINETHICK0;
FILLRGN(0,a3,a3>0,RGB(255,0,0),a3<0,RGB(0,255,255));
[/code]
[/b][/p]
[p=30, 2, left][b]大单流向分时[/b][/p]
[p=30, 2, left][b][code]
variable:ddx=0;
a0:=(ordervol(1,2)-ordervol(2,2));
a1:=(ordervol(1,2)-ordervol(2,2))/capital*100;
a2:SUM(a1,0),LINETHICK0;
a3:SUM(a0,0),LINETHICK0;
FILLRGN(0,a3,a3>0,RGB(255,0,0),a3<0,RGB(0,255,255));
[/code]
[/b][/p]
[p=30, 2, left][b]主力每分钟流向[/b][/p]
[p=30, 2, left][b][code]
variable:ddx=0;
a0:=(ordervol(1,2)-ordervol(2,2))+(ordervol(1,3)-ordervol(2,3));
a3:a0,LINETHICK0;
FILLRGN(0,a3,a3>0,RGB(255,0,0),a3<0,RGB(0,255,255));
[/code]
[/b][/p]

龙听 发表于 2018-12-24 15:03

源码解析:

输出主力流向分时VARIABLE:大单动向=0
A0赋值:(ORDERVOL(1,2)-ORDERVOL(2,2))+(ORDERVOL(1,3)-ORDERVOL(2,3))
A1赋值:(ORDERVOL(1,2)-ORDERVOL(2,2))/当前流通股本(手)*100+(ORDERVOL(1,3)-ORDERVOL(2,3))/当前流通股本(手)*100
输出A2:A1的历史累和,线宽为0
输出A3:A0的历史累和,线宽为0
CXH赋值:STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1))
输出WARNING('HTTP://WWW.CXH99.COM',CURRENTTIME>180000 AND (CXH=2 OR CXH=7))
DRAWTEXTREL(10 ,10 ,'指标公式')
FILLRGN(0,A3,A3>0,自定色,A3<0,自定色)
输出特大单流分时VARIABLE:大单动向=0
A0赋值:(ORDERVOL(1,3)-ORDERVOL(2,3))
A1赋值:(ORDERVOL(1,3)-ORDERVOL(2,3))/当前流通股本(手)*100
输出A2:A1的历史累和,线宽为0
输出A3:A0的历史累和,线宽为0
FILLRGN(0,A3,A3>0,自定色,A3<0,自定色)
输出大单流向分时VARIABLE:大单动向=0
A0赋值:(ORDERVOL(1,2)-ORDERVOL(2,2))
A1赋值:(ORDERVOL(1,2)-ORDERVOL(2,2))/当前流通股本(手)*100
输出A2:A1的历史累和,线宽为0
输出A3:A0的历史累和,线宽为0
FILLRGN(0,A3,A3>0,自定色,A3<0,自定色)
输出 主力每分钟流向VARIABLE:大单动向=0
A0赋值:(ORDERVOL(1,2)-ORDERVOL(2,2))+(ORDERVOL(1,3)-ORDERVOL(2,3))
输出A3:A0,线宽为0
FILLRGN(0,A3,A3>0,自定色,A3<0,自定色)

页: [1]