Please tell if I'm drunk!
More confused:
PERIOD_D1 = 16408 !!!!!
Was there any problems to give it a correct value as it was in MQL4 - 86400.
There is no warning in Help file or anything. Each developer needs to learn it in hard way by spending lot of time debugging and wondering why it's not working.
And of course - Period() returns some bullshit value too.
So, everyone, be aware - ALWAYS USE PeriodSeconds() !
(Build 306)
Output:
2010.08.16 20:07:36 K_sStatisticsOfBars (EURUSD,M30) min = 2008 dt.min = 0 dt.hour = 0
But if I do like this:
Then output is:
2010.08.16 20:12:29 K_sStatisticsOfBars (EURUSD,M30) min = 0 dt.min = 0 dt.hour = 0
(Build 306)
Output:
2010.08.16 20:07:36 K_sStatisticsOfBars (EURUSD,M30) min = 2008 dt.min = 0 dt.hour = 0
But if I do like this:
Then output is:
2010.08.16 20:12:29 K_sStatisticsOfBars (EURUSD,M30) min = 0 dt.min = 0 dt.hour = 0