Posted By: Zheka
Bug in minutesWithin()? - 01/18/18 15:03
As per manual,minutesWithin() is to return It works as it should except for the first bar on Sunday.
Weekend=1, first available M1 "tick" on Sun is 2116 UTC.
2900 minutes is exactly the time to the end of the previous bar on Friday, not to open at 2116 on Sun.
Quote:
Total number of minutes from start to end of the bar with the given offset
Weekend=1, first available M1 "tick" on Sun is 2116 UTC.
Quote:
[1866: Fri 16-05-13 20:46] (122.80) Skiping.. minWithin= 5.0, skipBars= -2
[1867: Fri 16-05-13 20:51] (122.80)time= 1651
[1868: Fri 16-05-13 20:56] (122.82)time= 1656
[1869: Fri 16-05-13 21:01] (122.99)time= 1701
[1870: Sun 16-05-15 21:21] (122.85) Skiping.. minWithin= 2900.0, skipBars= -1
[1871: Sun 16-05-15 21:26] (122.86) Skiping.. minWithin= 5.0, skipBars= -1
[1867: Fri 16-05-13 20:51] (122.80)time= 1651
[1868: Fri 16-05-13 20:56] (122.82)time= 1656
[1869: Fri 16-05-13 21:01] (122.99)time= 1701
[1870: Sun 16-05-15 21:21] (122.85) Skiping.. minWithin= 2900.0, skipBars= -1
[1871: Sun 16-05-15 21:26] (122.86) Skiping.. minWithin= 5.0, skipBars= -1
2900 minutes is exactly the time to the end of the previous bar on Friday, not to open at 2116 on Sun.