How do I get the Chart TimeFrame??

Created at 18 Nov 2012, 07:30
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!
lec0456's avatar

lec0456

Joined 14.11.2012

How do I get the Chart TimeFrame??
18 Nov 2012, 07:30


How do I get the Chart TimeFrame??


@lec0456
Replies

admin
19 Nov 2012, 12:09

We will add the ability to access the timeframe from the cAlgo API soon.

For the time being you might be able to use a workaround method. Please see this sample code: /forum/calgo-reference-samples/163

 


@admin

lec0456
20 Nov 2012, 08:48

RE:
admin said:

We will add the ability to access the timeframe from the cAlgo API soon.

For the time being you might be able to use a workaround method. Please see this sample code: /forum/calgo-reference-samples/163

 


One problem, if you start the robot on saturday or more important on sunday, it gives an error "index was out of range". 

@lec0456