Load Past Data

Created at 22 May 2020, 15:45
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!
EY

eynt

Joined 08.05.2020

Load Past Data
22 May 2020, 15:45


When a chart i loaded it is loaded with a curtain amount of bars and if I want to see more data from the past i need to scroll left.

If I want to see something in the far past it means I need to scroll many times which is a lot of effort especially when all the indicators are reloaded on each scroll which makes everything slower.

Is there a way to predefined the amount of data I want to load on the first time in order to prevent all of that?

 

Thanks


@eynt
Replies

PanagiotisCharalampous
25 May 2020, 08:32

Hi Yuval,

You can use LoadMoreHistory() to load more bars.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

eynt
25 May 2020, 12:45

RE:

Thank you.

 

When I call LoadMoreHistory it causes my indicator to reload itself and therefor call the LoadMoreHistory which again reloads then indicator which again calls LoadMoreHistory etc.

How can I stop this loop?


@eynt

PanagiotisCharalampous
25 May 2020, 12:54

Hi Yuval,

You can consider some kind of a condition that will break the loop, like the number of bars.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous