How to get the time value of a bar during back testing
How to get the time value of a bar during back testing
08 May 2023, 14:59
I am back testing a strategy in cAlgo. How do I get the time value of the current tick/bar that is in the past.
I am using Server.Time.ToLocalTime(); this is not working always . Something there is a 1 hour difference because of the timezone difference.
Replies
prasanthtp
11 May 2023, 01:16
Thanks. How do I get the time value of the current bar from this list.
Bars.OpenTimes is a list of datetime values . Is it Bars.OoenTimes[0]?
PanagiotisChar said:
Hi there,
You can use Bars.OpenTimes for this.
Need help? Join us on Telegram
Need premium support? Trade with us
@prasanthtp
PanagiotisChar
09 May 2023, 08:35
Hi there,
You can use Bars.OpenTimes for this.
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar