Posted By: Zheka
BarOffset not respected in Trade mode - 06/08/20 21:03
Zorro versions 2.27xx ignore BarOffset when creating bars in Live.
This script:
results in :
regardless of the broker used.
This script:
Code
void run() { set(LOGFILE); BarZone = ET; BarOffset = 1; BarPeriod = 5; StartWeek = 71700; EndWeek = 51705; BarMode = BR_WEEKEND; }
Quote
[278: Mon 20-06-08 20:26] (108.41)
[279: Mon 20-06-08 20:31] (108.40)
[280: Mon 20-06-08 20:36] (108.40)
[281: Mon 20-06-08 20:41] (108.40)
End of lookback period
[282: Mon 20-06-08 20:45] (108.41)
[283: Mon 20-06-08 20:50] (108.40)
[284: Mon 20-06-08 20:55] (108.44)
[279: Mon 20-06-08 20:31] (108.40)
[280: Mon 20-06-08 20:36] (108.40)
[281: Mon 20-06-08 20:41] (108.40)
End of lookback period
[282: Mon 20-06-08 20:45] (108.41)
[283: Mon 20-06-08 20:50] (108.40)
[284: Mon 20-06-08 20:55] (108.44)
regardless of the broker used.