Exit rule on Bollinger Bands not working correctly

TradingHeroes
Posts: 77
Joined: Wed May 04, 2022 9:45 pm

Exit rule on Bollinger Bands not working correctly

Post 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 8430 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 8430 times
Seems like a bug.

Thanks!
Admin
Site Admin
Posts: 194
Joined: Mon Feb 21, 2022 3:03 pm

Re: Exit rule on Bollinger Bands not working correctly

Post 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 !
TradingHeroes
Posts: 77
Joined: Wed May 04, 2022 9:45 pm

Re: Exit rule on Bollinger Bands not working correctly

Post 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.
Attachments
BBand Exit Short.rul.zip
(3.66 KiB) Downloaded 242 times
BBand Exit Long.rul.zip
(3.65 KiB) Downloaded 267 times
TradingHeroes
Posts: 77
Joined: Wed May 04, 2022 9:45 pm

Re: Exit rule on Bollinger Bands not working correctly

Post by TradingHeroes »

I tested it again, and it seems to be working now. But I'll report if I see it again.
TradingHeroes
Posts: 77
Joined: Wed May 04, 2022 9:45 pm

Re: Exit rule on Bollinger Bands not working correctly

Post 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.
Attachments
Archive.zip
(21.81 KiB) Downloaded 275 times
Admin
Site Admin
Posts: 194
Joined: Mon Feb 21, 2022 3:03 pm

Re: Exit rule on Bollinger Bands not working correctly

Post by Admin »

Thanks for reporting this bug.
It has been fixed in the latest version.
TradingHeroes
Posts: 77
Joined: Wed May 04, 2022 9:45 pm

Re: Exit rule on Bollinger Bands not working correctly

Post by TradingHeroes »

Great, thanks.
Sleepless
Posts: 1
Joined: Sun Dec 03, 2023 5:47 pm

Re: Exit rule on Bollinger Bands not working correctly

Post 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.
NakedMarkets
Posts: 248
Joined: Tue Feb 22, 2022 11:06 am

Re: Exit rule on Bollinger Bands not working correctly

Post 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.
NakedMarkets
Posts: 248
Joined: Tue Feb 22, 2022 11:06 am

Re: Exit rule on Bollinger Bands not working correctly

Post by NakedMarkets »

Hi,
As expected, we released a new minor version fixing this bug.
You can update NM to benefit from it.
Post Reply