MarketSeries is obsolete: Use Bars instead

Created at 09 Mar 2020, 16:00
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!
BE

BenjaminR

Joined 12.06.2019

MarketSeries is obsolete: Use Bars instead
09 Mar 2020, 16:00


I would like to use Indicators with different  Symbol/TimeFrame as  the chart given.

With the old API it was:    MS  = MarketData.GetSeries(Symbol.Name, TimeFrame);

How can I use Bars instead of MarketData and , MarketSeries.

Thanks

Beri

 


@BenjaminR
Replies

PanagiotisCharalampous
09 Mar 2020, 16:21

Hi BenjaminR, 

See below

MarketData.GetBars(AnotherTimeFrame, Symbol.Name);

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous