does a plugin have to redo MarketData to refresh the data in the timer event?

Created at 21 Feb 2025, 18:27
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!
LB

lbellego

Joined 20.06.2024

does a plugin have to redo MarketData to refresh the data in the timer event?
21 Feb 2025, 18:27


for a plugin that reads multiple price data, with multiple timeframes, do I need to redo the MarketData command to refresh the data in the timer event?


@lbellego
Replies

Edward357Johnson
22 Feb 2025, 06:23

Hello!

Yes, for a plugin that reads multiple price data with multiple timeframes, you typically need to refresh the MarketData command in the timer event to ensure the data is up-to-date. This approach helps maintain accurate and current information for your analysis or trading strategies. 


@Edward357Johnson

amusleh
22 Feb 2025, 14:05

Hi,

No, you don't have to, the bars object you load via market data Get bars are auto updated and kept in sync.


@amusleh

amusleh
22 Feb 2025, 14:05

Hi,

No, you don't have to, the bars object you load via market data Get bars are auto updated and kept in sync.


@amusleh