cTrader desktop does not calculate fractals correctly on Renko charts
cTrader desktop does not calculate fractals correctly on Renko charts
20 Mar 2023, 14:58
Hello @Spotware:
cTrader desktop (and mobile) do not calculate fractals correctly on Renko charts. See below example from GER40 Renko5:
Fractals are composed of five or more bars. The rules for identifying fractals are as follows:
- A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
- A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
"Two lower highs" or "two higher highs" does not mean equal, as shown in the screen capture from the GER40 Renko5 chart.
In the above screen capture, all the fractals pointed to with red arrows are invalid according to the definition.
The only valid fractals are at the candles:
* second 19:48 UTC + 8
* 20:09 UTC + 8
* 20:16 UTC + 8
* 20:31 UTC + 8
Even the fractal at 20:37 isn't valid because it does not have 2 lower highs on either side. The second bar's high after the fractal is "equal to", not "less than".
A developer needs to change the code to be "<" instead of "<="; similarly, ">" instead of ">=".
Thank you.
Spotware
21 Mar 2023, 12:32
Dear firemyst,
Thanks for pointing this out to us. We will investigate and fix if necessary.
Best regards,
cTrader Team
@Spotware