Getting current time frame of the robot

Created at 05 Jun 2014, 23: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!
FU

Futuresmo

Joined 13.09.2013

Getting current time frame of the robot
05 Jun 2014, 23:22


Hi

Is there any property like TimeFrame.Current that will return string or any other object describing timeframe the robot is running under? I need to do calculations based on the current timeframe of the robot.

 

Thanks


@Futuresmo
Replies

Futuresmo
05 Jun 2014, 23:37

The timeframe info is contained in MarketSeries.TimeFrame property.


@Futuresmo

Spotware
06 Jun 2014, 09:09

You can use the TimeFrame property of cBot

Print(TimeFrame);

 


@Spotware