ddy
input:p1(60),p2(5),p3(10);
ddy:order(2)-order(1))/capital*100,colorstick,linethick2;
ddy1:ema(ddy,p1)*p1;
ddy2:ma(ddy1,p2);
ddy3:ma(ddy1,p3);
0.1,dotline,colorblue;
drawtextabs(0,0,’漲跌動因’);
ddx
input:p1(60),p2(5),p3(10);
refline:0;
ddx:bigorder(1)-bigorder(2)*vol/capital*100,colorstick,linethick2;
ddx1:ema(ddx,p1)*60.177;
ddx2:ma(ddx1,p2);
ddx3:ma(ddx1,p3);
drawtextabs(0,0,’大單動向’);
ddz
ddz:=(order(2)-order(1))/(order(2)+order(1))*200;
ddz1:=(order(2)-order(1))/(order(2)+order(1))*170;
fillrgn(ddz,ddz1,ddz>ddz1,rgb(255,0,0),ddz<ddz1,rgb(0,255,0));
drawtextabs(0,0,’大單分差’);