(2)L2当日.5日30日资金净流,同软件主力净买,5日净买数值一样.用在即时或K线副图上.5日30日是均值,软件5日净买是5日合计数.
N1(0,999,1,1);
P1(0,999,5,1);
P2(0,999,30,1); (放在小框里)
a:=(ORDERAMT(1,2)-ORDERAMT(2,2));
b:=SUM(a,N1)/100000000;
STICKLINE(b 0,0,b,6,0 ),COLOR0022FF;
STICKLINE(b 0,0,b,4,0 ),COLORBB22CC;
STICKLINE(b 0,0,b,6,0 ),COLORFFFF00;
STICKLINE(b 0,0,b,4,0 ),COLOR00FFFF;
当日:b,stick;
5日:MA(b,P1);
30日:MA(b,P2); (放在大框里)
(3)日资金净流10日内红几天.用于分类报价排序.
N1(0,999,1,1);
n2(1,100,10); (放在小框里)
a:=(ORDERAMT(1,2)-ORDERAMT(2,2));
b:SUM(a,N1)/100000000;
排序:count(b 0, n2); (放在大框里)
(4)日资金净流连红几天,比实际连红天数少1天.用于分类报价排序.
N1(0,999,1,1); (放在小框里)
a:=(ORDERAMT(1,2)-ORDERAMT(2,2));
b:SUM(a,N1)/100000000;
连红:if( b 0,BARSLAST(CROSS(b,0)),0 ); (放在大框里)
(5)日资金净流占全天交易金额比率,用于分类报价排序
N1(0,999,1,1); (放在小框里)
a1:=(ORDERAMT(1,2)-ORDERAMT(2,2))/ORDERAMT(1,0);
当日比率:SUM(a1,N1); (放在大框里)