[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] simplest way to detect a reversal of direction in an indicator



PureBytes Links

Trading Reference Links

thanks, but I avoid all the peak/trough functions, since they use Zig, which
looks into the future. better put, the value for today may change later,
depending on data after today. not legit for actual trading use, I think.

dave


> Dave
> Have you tried using the Peak and Trough functions, they look for
> a percent
> change in the opposite direction
>
> Cheers,
> Graham
>
> what's the simplest way to detect a change of direction in some
> indicator by
> more than a certain amount? it's easy to see on a chart, you just look for
> peaks, and find the places where the indicator has moved the
> required amount
> from there.
>
> I have a working version that requires crossing an absolute level first,
> before the change in direction will be honored. that's doable because you
> can use HighestSince(AbsoluteLevelCrossed), but I can't see how to build a
> similar thing without that absolute level crossover. what you
> really mean is
> HighestSince(CrossoverInTheOppositeDirection), but that makes the
> level your
> looking for dependant on the crossovers that came before it.
>
> you could step through the indicator array one bar at a time to
> do this, but
> it seems like there's got to be a better way.
>
> any ideas? is my question clear?
>
> thanks,
>
> Dave Merrill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/