Index parameter passed in ascending order?

Created at 20 Jan 2022, 15:54
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!
sirinath's avatar

sirinath

Joined 25.11.2021

Index parameter passed in ascending order?
20 Jan 2022, 15:54


Hello,

Is the order of index parameter always passed in ascending order? (0, 1, 2 ... n)

Are there cases where calculate might not be called with the index parameter in order?

Suminda


@sirinath
Replies

amusleh
21 Jan 2022, 09:28

Hi,

The indicator calculate method is always called in order, whenever you attach an indicator or reload it by loading more historical data or changing its parameters the indicator calculate method is called sequentially by order for all available historical bars on your chart.


@amusleh