Exit rule on Bollinger Bands not working correctly

Post Reply
TradingHeroes
Posts: 42
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 174 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 174 times
Seems like a bug.

Thanks!
Admin
Site Admin
Posts: 127
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: 42
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 14 times
BBand Exit Long.rul.zip
(3.65 KiB) Downloaded 18 times
TradingHeroes
Posts: 42
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: 42
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 13 times
Admin
Site Admin
Posts: 127
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: 42
Joined: Wed May 04, 2022 9:45 pm

Re: Exit rule on Bollinger Bands not working correctly

Post by TradingHeroes »

Great, thanks.
Post Reply