N:=25;
M2:=18;
M3:=17;
AVR01:EMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5);
avr02:-((3 * SMA((((-C - HHV(-HIGH,M2)) / (LLV(-LOW,M2) - HHV(-HIGH,M2))) * 100),5,1)) - (2 * SMA(SMA((((-C - HHV(-HIGH,M3)) / (LLV(-LOW,M3) - HHV(-HIGH,M3))) * 100),5,1),3,1)));