Page 1 of 2

Exit rule on Bollinger Bands not working correctly

Posted: Tue Nov 29, 2022 5:31 am
by TradingHeroes
Hi,

I setup a couple of rules to exit when price closes outside the opposite BB. Sometimes it works, but sometimes it closes the trade on the other side of the MA. It happens both on the short and long sides.
Screen Shot 2022-11-28 at 10.26.31 PM.png
Screen Shot 2022-11-28 at 10.26.31 PM.png (167.84 KiB) Viewed 8576 times
Here's the rule...
Screen Shot 2022-11-28 at 10.31.08 PM.png
Screen Shot 2022-11-28 at 10.31.08 PM.png (108.58 KiB) Viewed 8576 times
Seems like a bug.

Thanks!

Re: Exit rule on Bollinger Bands not working correctly

Posted: Tue Nov 29, 2022 5:11 pm
by Admin
Hi,

Thanks for your report,
The exit rules you're using, they are included in an entry rule (which is maybe in a setup rule) or you're drag&dropping the exit rule on an opened order in the bottom tab ?

In the first case, could you test the same thing with only 1 attached Setup or Entry Rule (ie: only sell setup) ?
In the second case, does it occur with the same order type (ie : sell trade) ?
Otherwise, is it possible to give us your rule to investigate further ?
You can export them from the file menu under the Rule Manager,
Thanks !

Re: Exit rule on Bollinger Bands not working correctly

Posted: Tue Nov 29, 2022 10:41 pm
by TradingHeroes
Hi,

There are no setup rules, this is a standalone exit rule that I drag and drop. I enter the trade manually.

The rules are simply to close a long when price closes above the upper BB band or close a short when price closes below the lower BB.

The error seems to happen randomly with both buys and sells.

If you look at the chart I posted, the first trade on the left is a buy and that closed correctly.

Then the next trade is a sell and that didn't close below the lower BB.

Trades 3 and 4 are sells and close correctly.

The next 4 trades are buys and they close when price closes above the MA, not the upper BB band.

Attached is one of the rules, the other rule is just the opposite.

I'll do more testing, but it looks a little strange.

Thanks.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Tue Nov 29, 2022 11:52 pm
by TradingHeroes
I tested it again, and it seems to be working now. But I'll report if I see it again.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Wed Nov 30, 2022 2:39 am
by TradingHeroes
I created a new BB test with some different parameters and it's not working correctly. I was able to document the issue.

https://www.youtube.com/watch?v=cItdU9IQXB8

All rules are attached.

Thanks.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Mon Jan 30, 2023 9:47 am
by Admin
Thanks for reporting this bug.
It has been fixed in the latest version.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Tue Jan 31, 2023 7:30 pm
by TradingHeroes
Great, thanks.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Sun Dec 03, 2023 5:55 pm
by Sleepless
I've just purchased a license and followed TradingHeros' example using Bollinger Bands. I get the same errors as he describes, although it is claimed in the reply that the bug is now fixed. My version is 1.0.8735.17472.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Mon Dec 04, 2023 5:05 pm
by NakedMarkets
Hi,

Thanks for your report. Indeed, there was an issue with the Exit Rule, triggered during Setup Rules pause.
It has been fixed and will be available in a minor release, ASAP, likely this week.

Re: Exit rule on Bollinger Bands not working correctly

Posted: Wed Dec 06, 2023 4:37 pm
by NakedMarkets
Hi,
As expected, we released a new minor version fixing this bug.
You can update NM to benefit from it.