Problems with KeepTrue for Divergence

The idea of the bot was to start the deal when the price crosses back over the KC channel border and 20 or fewer candles have passed after three simultaneous divergences are detected.

I set “divMinCount”: 3, and “keepConditionBars”: “20”

Backtests have shown that the deals started anywhere, but not when I was expecting. It looks like the KeepTrue value is applied not for the triple simultaneous divergence condition (as I expected), but to every divergence, and if three of them appear within the nearest 20 candles, the condition is met. But I am not sure.

Please, check it.

Hello! Thank you for reporting this issue.

We have received your bug report regarding the KeepTrue condition and its interaction with the divMinCount and keepConditionBars settings for your bot. We understand your backtests are not showing the expected behavior where deals should start when the price crosses the KC channel border after three simultaneous divergences within 20 candles.

We will investigate this promptly and update you shortly. Could you please confirm if the bot URL you provided in the report is correct: https://app.gainium.io/bot/backtests?a=2451&aid=share-backtest&backtestShare=6af0061a-4bd0-4959-b5a0-201e04a3d1aa?

Yes. it is correct

Problem with divergence itself. We are working to fix the issue

1 Like

Thank you! We are waiting a good news from you.

1 Like