Access to the Date and Hours of backtest

Created at 30 Nov 2017, 23:36
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!
MT

mto1995

Joined 19.10.2017

Access to the Date and Hours of backtest
30 Nov 2017, 23:36


i use an algorith, who use the economics data and i need to access on time of backtesting data because when i check the date, it's the date time of now

thks,


@mto1995
Replies

ap11
01 Dec 2017, 17:29

mto1995 said:

i use an algorith, who use the economics data and i need to access on time of backtesting data because when i check the date, it's the date time of now

thks,

 

Hi mto1995,
You can use

var barIndex = MarketSeries.OpenTime.GetIndexByTime(...)

 

Best Regards,
Andrey


@ap11