I´m trying to fix an issue in the Strategy Analizer, cause when an optimization for a normal 24 hours Forex session is required ( For intraday purpose ) you'll get results that include trades out of that daily range. So, since I´m not a programmer, I was reading and I found something helpful, the "Bars.Session.GetNextBeginEnd". I discovered that I can know in that datetime format, which are my sessionBegin and my sessionEnd, but now I want to know:
How can I call the Datetime of the current Bar (in the same format used for sessionEnd ) in order to compare if it continues to be within the same range?
I was playing with Bars.GetDayBar(0).Time but it doesn't work
Thanks
Comment