When I back test my strategy and obtain prints of indicator values, the values don't always align with values obtained from previous back tests. It does align for the primary series (renko bars with the smallest number of ticks), but in many instances for the second and/or third series (renko bars with more ticks), the indicator values are different. For example, the same trade in a second back test that occurs at the exact time, on the exact same current bar for the primary series, and with all the same indicator values on the primary series, will reflect different indicator values for one or more of the other higher series. When I review these discrepancies on the chart for the higher series, sometimes the data on the chart is consistent with the prints, and other times it is not. I can not figure out why this is occurring or how to fix it. After reading help guides I thought it may have to do with the higher series data needing to be synced, but the trades in the strategy are all supposed to occur OnBarUpdate. I understand renko bars aren't great for backtesting, but thought this had more to do with understanding fill prices rather than causing any discrepancies with indicator values.
Here is a sample of actual prints for the same trade but for two separate back tests. Per the data, the second series indicator values have changed, but the first and third series are exactly the same:
CurrentBar | Time | Close | Series1 Values | Series2 Values | Series3 Values | |||||||||||||
46296 | Entry | 5/3/2023 12:03:25 PM | 1760.6 | 0.164609 | 0.046032 | 0.047407 | 0.028891 | -0.3786 | -0.49493 | -0.62231 | -0.62651 | -0.00754 | -0.01003 | -0.00249 | -0.0238 | |||
46296 | Entry | 5/3/2023 12:03:25 PM | 1760.6 | 0.164609 | 0.046032 | 0.047407 | 0.028891 | -0.37374 | -0.44668 | -0.57237 | -0.56882 | -0.00754 | -0.01003 | -0.00249 | -0.0238 |
Any help understanding why the values might be changing and how to fix this would be appreciated.
Comment