Bars.Count() always returns 201.

Created at 03 Mar 2023, 17:03
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
YS

ys2310

Joined 03.12.2021

Bars.Count() always returns 201.
03 Mar 2023, 17:03


At backtesting, Print("Bars.Count=",Bars.Count); always returns size of 200.

I tried 

Bars.LoadMoreHistory();

Still it prints size of 200.

How can I deal with Bars of longer size?


@ys2310
Replies

firemyst
09 Mar 2023, 07:54

Maybe show more of your code so we can see how you're implementing it and what you're setting "Bars" to?

 

For example, you don't say if you're using Chart.Bars.Count or Algo.Bars.Count, which is probably why you're getting the same count -- using the incorrect one in context.


@firemyst