The reason is the formula itself which is written in highly inefficent way. Pretty basic programming rules like not repeating the same calculation over and over again (moving invariants outside the loop) should be applied, see http://finance.groups.yahoo.com/group/amibroker/message/71147
Two characteristic examples: A. YHOO Dec31, the whole candle is on the right side of the best-fit parabolic. The signal is equivalent to Sell at next bar Open. B. ^N225 To my knowledge, the best-fit parabolic was the only indicator suggesting an exit before the Jan5 session.
Looks like a good code for profit booking. About the explorations bit confusing for me?What does it signify.(g is positive ) .How about an exploration to show that the candle has crossed the parabolic either ascending or descending. Thanks .
At the end of the code http://finance.groups.yahoo.com/gro...r/message/69570 add the Filter = IIf ( g , L > p , H < p ) ; AddColumn ( g , " g " , 1.0 ) ; and explore for the n=1 last quotations. The result will give the stocks with the entire last candle above [below] the descending [ascending] best-fit parabolic. g is equal to 1 for the descending parabolic and it is equal to 0 for the ascending one. [the method gave an exit signal on Jan4 for the Nikkei index and a buy signal on Jan26 for the ^NDX]
The best-fit parabolic codes are in AFL [Amibroker Formula Language] . The last available [standard] version is 4.60 from amibroker.com.
TSOKAKIS, I'm aware that this is AFL code. I think this indicator you created has alot of benefit. Unfortunately I'm a Tradestation user, so that's why I was wondering if anyone had made a code conversion to Tradestation for this indicator. If so, would they be willing to post it. Thanks...
Thanks .This really is a gem of a good trading code .With a few modifications on the perc values we also get long term support/resistance lines. Wow. I would say its a very good job.