Supertema indicator

#1
Here you are the Supertema indicator converted from amibroker:

av:=Input("Enter the shorter TEMA periods: ",3,20,12);
n:=Input("Enter the longer TEMA periods: ",21,50,25);
av1:=Input("Enter the medium TEMA periods: ",15,50,16);
av2:=Input("Enter the number of signal line periods: ",2,50,2);
var1:=Tema(C,n);
var2:=Tema(var1,av);
Var3:=(var1-var2)+var1;
Var1:=Tema(var3,av1);
var4:=Mov((var1-var2)+var1,av2,E);
Var5:=(Var1-Var2)+Var1;
valpos:= Var5>Ref(var5,-1);
valneg:= Var5<Ref(var5,-1);
If(valpos,var5,0);
If(valneg,var5,0);

Hope it helps :)
 

Similar threads