Posted By: JamesHH
Behaviour of user-defined bars - 02/08/20 07:29
I am testing a strategy based on Renko bars, by setting where Renko1 is from SpecialBars.c. First I ran it with and and everything went as expected. For example, in the log I have:
and I can see in ZHistoryEditor that at the end of bar 2, the close price dips below 18500 for the first time at 00:33.
Then I wanted daily granularity rather than 1-min. The manual says BarPeriod only affects the start time and the number of allocated bars, but I tried anyhow. The results made no sense to me. From the log:
However, at 17-12-20 02:45 the price is nowhere near 18000 (same for all of the entries). Is this some bug, or else why is the log showing these close times for the Renko bars?
Code
bar = Renko1
Code
BarPeriod = 1
Code
BarRange = 500.0
Code
[1: Sun 17-12-17 23:02] (19000.00) [2: Mon 17-12-18 00:33] (18500.00) [3: Mon 17-12-18 01:00] (18000.00) ...
and I can see in ZHistoryEditor that at the end of bar 2, the close price dips below 18500 for the first time at 00:33.
Then I wanted daily granularity rather than 1-min. The manual says BarPeriod only affects the start time and the number of allocated bars, but I tried
Code
BarPeriod = 1440
Code
[1: Tue 17-12-19 09:00] (18500.00) [2: Wed 17-12-20 02:45] (18000.00) [3: Wed 17-12-20 18:26] (17500.00) [4: Thu 17-12-21 10:06] (17000.00)
However, at 17-12-20 02:45 the price is nowhere near 18000 (same for all of the entries). Is this some bug, or else why is the log showing these close times for the Renko bars?