ive got the following code im attempting to convert to ninjascript:
Value1 = 2 * WAverage(price, halvedLength);
Value2 = WAverage(price, length);
Value3 = WAverage((Value1 - Value2), sqrRootLength);
The variable price is a NumericSeries. Value1 and Value2 are double.
What i dont get is that you can do a WAverage from Value1-Value2? Im underthe impression that weighted averages take a defined period of a certain price type. Wha does taking a weighted average of Value1-Value2 mean?
Having problems understanding this, would appreciate any help
thanks
ian
Comment