internette dolaşırken 4 yıl önce yazılmış aşağıdaki formülasyonu buldum.
Hi MetaReader

Here's my non-PREV version of your formula. I've checked this formula with default settings on one chart (10 years of daily bars on DJIA) and the results appear to be identical. On some charts you might find that the new plot has more N/A results on the left side, caused by a normal trait of ValueWhen() that I've not made any effort to correct.

All PREVs have been removed by using the ValueWhen() function as a way of remembering previous values as set by specific events. Not all PREV-based formulas lend themselves to this conversion method, but a surprising number do.

Roy

Factor:=Input("Factor",1.00,10.00,3.00);
Pd:=Input("ATR Periods",1,100,10);
Up:=MP()+(Factor*ATR(Pd));
Dn:=MP()-(Factor*ATR(Pd));
Tn:= Cross(C,LLV(Up,13));
Tp:= Cross(HHV(Dn,13),C);
Td:=ValueWhen(1,Tp-Tn,Tn-Tp);
Dxx:=HighestSince(1,Cross(Td,0),Dn);
Dnx:=ValueWhen(1,Dn=Dxx,Dn);
Upp:=LowestSince(1,Cross(0,Td),Up);
Upx:=ValueWhen(1,Up=Upp,Up);
ST:=ValueWhen(1,Td,If(Td=1,Dnx,Upx));
ST;
bu kod, metastock forum da http://forum.metastock.com/posts/m18...-PREV-function başlığında yer almaktadır.
söz konusu formül sayesinde gann hilo indicatöründeki whipsaw sorunu giderilmiştir. linkteki formülü yazan arkadaşı tebrik ederim.