NRTR_WATR indicator from Wiki
[LINK]http://www2.wealth-lab.com/WL5WIKI/NRTR_WATR.ashx
[/LINK]
I looked how this code works at IBM Daily.
Began to change parametres and on Lookback 75 and Multiple 5 I were surprised with occurrence of the periods (for example from 08/07/05 to 19/07/05 and similar on stories there are a lot) when NRTR_WATR line every day changes a trend direction. Looked on other stocks - the same result. Displayed for the help HPrice line and LPrice line (code below). It is visible that on the first bar after trend switching, they equal close instead of the maximum (highest) value for the period for Hprice and minimum (lowest) value for the period for LPrice. Attempted in “Calculate the NRTR_WATR Series” replace
LPrice[bar] = bars.Close[bar] on LPrice[bar] = LPrice[bar], and for HPrice - HPrice[bar] =HPrice[bar], but then the trend is not switched.
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
I looked how this code works at IBM Daily.
How did you manage to do that? I mean, without taking a trial of Wealth-Lab Developer 5? Someone from your IP
195.98.* took a trial as "
rfvz" last March but as you understand, it expired last year.
Size:
Color:
And?
This wrong code on your site, not mine.
Size:
Color:
A minor code error in NRTR_WATR has been worked out, Community.Indicators and Wiki already updated.
This wrong can be easily fixed as you see - unlike human nature!
Size:
Color: