N:=21;
M:=21;
VPT:SUM(vol/EMA(VOL,N)*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),0);
MAVPT:EMA(VPT,M);
DRAWTEXT(crOSS(VPT,MAVPT),VPT+0.03,"X"),colorred;
DRAWTEXT(CROSS(MAVPT,VPT),MAVPT-0.03,"X"),coloryellow;
N:=21;
M:=21;
VPT:SUM(vol/EMA(VOL,N)*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),0);
MAVPT:EMA(VPT,M);
DRAWTEXT(crOSS(VPT,MAVPT),VPT+0.03,"X"),colorred;
DRAWTEXT(CROSS(MAVPT,VPT),MAVPT-0.03,"X"),coloryellow;