N:=5;
Var1:=REF(CLOSE,1);
Var2:=SUM(vol,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
Var3:=(CLOSE-Var1)*Var2;
Var4:=SUM(Var3,0);
Var5:=SMA(Var4,10,1);
Var6:=SMA(Var4,20,1);
LON: Var5-Var6;
LONMA: MA(LON,N);
N:=5;
Var1:=REF(CLOSE,1);
Var2:=SUM(vol,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
Var3:=(CLOSE-Var1)*Var2;
Var4:=SUM(Var3,0);
Var5:=SMA(Var4,10,1);
Var6:=SMA(Var4,20,1);
LON: Var5-Var6;
LONMA: MA(LON,N);