M:=9;
N:=20;
P:=2;
LC:=REF(CLOSE,1);
DIF:=CLOSE-IF(CLOSE>LC,MIN(LOW,LC),MAX(HIGH,LC));
acD:SUM(IF(CLOSE=LC,0,DIF),0);
MAACD:eMA(ACD,M);
a: MAACD + P*STD(MAACD,N);
b:MAACD - P*STD(MAACD,N);
M:=9;
N:=20;
P:=2;
LC:=REF(CLOSE,1);
DIF:=CLOSE-IF(CLOSE>LC,MIN(LOW,LC),MAX(HIGH,LC));
acD:SUM(IF(CLOSE=LC,0,DIF),0);
MAACD:eMA(ACD,M);
a: MAACD + P*STD(MAACD,N);
b:MAACD - P*STD(MAACD,N);