Hi, first timer here so please excuse if it's a silly question. I have an ea that requires a set number of bars in a chart. I have set the max bars in chart to 60 and the max bars in history to 60 but more bars appear at the next shift so I end up with more than 60 bars on the chart despite setting a maximum of 60. This idea works well initially but as more bars are added to the chart the ea becomes less reliable.
As an explanation the ea becomes less reliable as more bars are added as the indicator that the ea runs off has a different time scaling, it uses a lookback period that spreads across what ever chart it runs off. The solution I had was to run the same number of bars in the chart as the lookback period on the ea but I am having the above issues with that.
Is there a minimum amount of bars you can have in a chart or is there some kind of tolerance or formula to it that I can account for?
To add comments, please log in or register