Friday, June 11, 2010

Recent Highs & Lows

The attached indicators were created primarily to test the helper functions they use. I've been trying to understand and reimplement efficiently someone elses ADXVMA indicator. I noticed one thing it does is walk back n bars in a data series to get the high and the low for the period, and it does this on every bar.
The functions used here only have to walk previous bars when the extreme bar rolls off the back end.

MyLow.zip
MyHigh.zip

1 comment:

Trendseek said...

Hello Fluxsmith.
Thanks for your Blog-Postings!
I was verry impressed by your solution, using an extra Utility-Class within your Ninja-Code.

Thanks for all that helpfull suggestions.

Greatings from Germany
Torsten