NRTR_WATR indicator from Wiki
Author: dima-ag
Creation Date: 2/6/2010 11:38 AM
profile picture

dima-ag

#1
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.
profile picture

Eugene

#2
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.
profile picture

dima-ag

#3
And?
This wrong code on your site, not mine.
profile picture

Eugene

#4
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!