Using the function for WilliamsR always produces a significantly different result than displayed on the chart. For example, using AUDUSD from the forex.com feed, the last bar of last week (25/09/2009 17:00 EST) the chart value is -60.00
but the function returns -.36.73.
The code is:
double a = WilliamsR(this.Input, 21)[0];
double b = WilliamsR(21)[1];
Print(string.Format("{0}:Current: {1}, Previous: {2}", Time[0], a, b));
Thanks

Comment