Limiting the loading of Ticks to speed up an indicator

Created at 13 Apr 2024, 11:21
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!
SH

Shares4UsDevelopment

Joined 14.10.2018

Limiting the loading of Ticks to speed up an indicator
13 Apr 2024, 11:21


Is there a way to limit the loaded ticks to lets say 1000?
Now when i use  MarketData.GetTicks() it loads millions of ticks and it takes so long that the indicater reloads because of non-responsiveness.,

So an overload of the MarketData.GetTicks() would be MarketData.GetTicks(int MaxTicks) and/or MarketData.GetTicks(DateTime StartDate)

Or is there an other way to overcome this problem other than asynchronously loading the ticks.
that does not work because a bot using the indicator expects the indicator result data to be there and valid when an indicator is loaded but then it is still loading.
 


@Shares4UsDevelopment
Replies

PanagiotisCharalampous
14 Apr 2024, 08:20

Hi there,

No there isn't

Best regards,

Panagiotis


@PanagiotisCharalampous