N:=5;M:=3;
VAR1:=DYNAINFO(17)*REF(MA(vol,5),1);
VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
AA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
J:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;
G:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
CH:=J+G,COLORSTICK;
J1:MA(J,10),COLORYELLOW;
J2:MA(J1,10),COLORMAGENTA;
J3:MA(J1,10),COLORGREEN;
G1:MA(G,10),COLORYELLOW;
G2:MA(G1,10),COLORMAGENTA;
G3:MA(G1,10),COLORGREEN;
DL:=MA(CH,M),COLORRED;
DLL:MA(DL,N),COLORYELLOW;
DDLL:MA(DLL,20),COLORMAGENTA;
零轴:0;
STICKLINE(DL>0,0,DL,2,0),COLORRED;
STICKLINE(DL<0,0,DL,2,0),COLORGREEN;