Right now!
You have turned the light! In colB i've written: (i use the 42 span and 22 half span)
Ref(BarsSince( FmlVar("Hurst Indicator","LASTPEAKLOW") ),-22)+22 ;
so i have the days from today and last peak low.
Now i modify the DPO() with this:
SPAN:=Input("SPAN",1,70,42);
CLOSE-Ref( Mov(CLOSE, SPAN, SIMPLE),(SPAN/2+1));
and then i must transform this code in percet from point so i can explorer evey stock.
THIS IS THE CODE:
SPAN:=Input("SPAN",1,70,42);
(CLOSE-Ref( Mov(CLOSE, SPAN, SIMPLE),(SPAN/2+1)))*100/CLOSE
THX
gigi