I am trying to figure out why a Linear Regression of the Closes[0] , in this example 10min bar closes , and a custom Data-series which holds Closes of 10min bars apart from index 0 which holds the current 1 tick close, Closes[1][0], gives me a different result even when both data Series are the same ?
So for example this is the output that shows the output using a print statement. You can see that both Data Sets Close and fast Close are identical but the Linear Regression results, Average and FAverage, are different
anyone know why this would be ?
22/02/2016 11:00:00 10min Close= 165.14 165.17 165.2 165.22 165.22 165.25 165.24 165.25 165.22 165.13 165.02 164.95 165.08 165.08 165.1 165.09 165.01 164.92 165.04 165.05 22/02/2016 11:00:00 fast Close = 165.14 165.17 165.2 165.22 165.22 165.25 165.24 165.25 165.22 165.13 165.02 164.95 165.08 165.08 165.1 165.09 165.01 164.92 165.04 165.05 Average = 165.237 FAverage = 165.192428571428
Comment