MarketSeries parameter type

Created at 04 Sep 2013, 17:22
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!
BP

bp2012

Joined 31.08.2013

MarketSeries parameter type
04 Sep 2013, 17:22


Hello,

With the recent multi timeframe functionality additions are there plans to support MarketSeries as a parameter type?

For example, in creating a custom stochastic indicator, I would need to pass in a DataSeries for Low, High, and Close. It would be cleaner to pass in a MarketSeries. 

 

Thanks!


@bp2012
Replies

cAlgo_Development
05 Sep 2013, 10:42

You can pass parameter of TimeFrame type to an indicator, and inside it request Marketseries for this timeframe (details are here /forum/whats-new/1463 ).


@cAlgo_Development

bp2012
05 Sep 2013, 16:19

Thanks for the response. After looking through my code it turns out that passing the TimeFrame is required to handle the indexing so I wouldn't save anything by passing in the marketseries.

Thanks!


@bp2012