Limiting the loading of Ticks to speed up an indicator
Created at 13 Apr 2024, 11:21
SH
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.
PanagiotisCharalampous
14 Apr 2024, 08:20
Hi there,
No there isn't
Best regards,
Panagiotis
@PanagiotisCharalampous