Reference time-frame of attached chart

Created at 05 May 2015, 19:58
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!
deklin's avatar

deklin

Joined 31.12.2014

Reference time-frame of attached chart
05 May 2015, 19:58


When coding a cBot, how can I reference the time-frame of the chart that the cBot is attached to?  In the example below I would like to always select EURUSD regardless of what chart the bot is attached to however I would like the time-frame to be set to the one of the attached chart.        

MData = MarketData.GetSeries("EURUSD", TimeFrame.Hour);

 


@deklin
Replies

Spotware
18 Jun 2015, 12:53

Dear Trader

Please take a look at the following indicators: Multi-symbol robots and indicators & Multi-timeframe robots/indicators. We hope this helps you.


@Spotware