INPUT: P1(60,0,100),P2(5,0,100),P3(10,0,100);
REFLINE:0;
DRAWTEXTABS(0,0,'大单动向');
VAR0:=MIN(COUNT(ORDER(2),0),P1);
DDX:(BIGORDER(1) - BIGORDER(2)) * VOL/CAPITAL * 100,linethick0;
真实DDX:(BIGORDER(1) - BIGORDER(2)) ,linethick0;
换手率:vol/capital*100,linethick0;
真实换手:vol/(capital*100 * ((100-PFFIN(4252,0))/100))*10000,linethick0;
换手风险:(真实换手-ema(真实换手,60))/ema(真实换手,60),coloryellow;
STICKLINE(ddx>=0,0,ddx,8,1),colorred;
STICKLINE(ddx<0,ddx,0,8,1),colorgreen;
STICKLINE(真实ddx>=0,0,真实ddx,8,0),colorMagenta;
STICKLINE(真实ddx<0,真实ddx,0,8,0),color00A13A;
1,DOTLINE,colorred;
用法:红色虚线视为警戒线,DDX为空心且突破警戒线需警惕,换手风险突破警戒线需警惕(当日换手在10%以上有效)。
一般认为实体的DDX比较靠谱。