Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: "Use Closed Candles" option when buying/selling with BBTA #93

Open
dric322 opened this issue Dec 9, 2020 · 0 comments

Comments

@dric322
Copy link

dric322 commented Dec 9, 2020

I had an idea for a new feature on the BBTA strategy, for buying and selling.

It could be called something like:
Use Closed Candles
(With on/off toggle).

At the moment, BBTA trades in real-time, in other words it will buy on an open candle if there's a price reversal.

When using BBTA, one thing I realised is, the price can drop under the low BB, then rise again during that same
open candle
, which triggers a buy - but then the price could drop again after you bought - which can lead
to ending up in a losing trade, maybe hitting your stop limit, or getting stuck with a bag - when you should be
trading! ;)

The "Use Closed Candles" BBTA feature would behave like this, the rules are logical and simple:

Buy cycle starts when:

  • A candle closes under Low BB. When the next candle opens, start the buy cycle. The bot would
    not buy here but just start the cycle and prepare for a price reversal above Low BB.

Buy actually happens when:

  • The price reverses and goes above Low BB. This could be on the current open candle, or any future candle.
    (usual BBTA behavior).

It would work the same way (in reverse) for selling, for example:

Sell cycle starts when:

  • A candle closes above High BB. When the next candle opens, start the sell cycle. The bot would
    not sell here but just start the cycle and prepare for a price drop under High BB.

Sell actually happens when:

  • The price drops and goes under High BB. This could be on the current open candle, or any future candle.
    (usual BBTA behavior).

After scrolling back through the BTC chart (15m period) I can see that using a feature like this when buying
would be useful, over and over again. It would add another layer of safety when buying. This feature can
certainly prevent getting stuck in bad trades.

Buying examples are shown in the image links below.
The last image shows how it would work for selling.

I have used 15m charts in all images below, but the principle works the same on all time frames.

The important thing about this feature would be that it ignores a price reversal on the current open candle.
This would stop a buy being triggered when the price might rise above Low BB, then drop below Low BB on
the same open candle - which is the standard way BBTA behaves when buying. If this feature was used for
selling, there's times when you'd make better gains.

Here's an image to explain how this "Use Closed Candles" feature would work, buying:
https://i.imgur.com/V33PlJn.png

Here's an example showing where BBTA bought before a price drop. This was a real buy using BBTA.
This buy would have been prevented if "Use Closed Candles" was in use:
https://i.imgur.com/xY0uU6Y.png

Another buying example:
https://i.imgur.com/lLepYXQ.png

In the image below, without using this feature, the long green candle could rise above HighBB, then drop below,
then rise above - and do that several times while that same 15m candle is open. Normally, the sale will happen if
the price drops under High BB on the open candle, but notice in the following image that the candle closed
above High BB and none of the following candles dropped below High BB
.

I hope this explains why a "Use Closed Candles" feature would sometimes get better gains when selling:
https://i.imgur.com/0bB7gOY.png

Here's another example where this feature would prevent selling too early:
https://i.imgur.com/hjuctZD.png

I could point out these examples... all day long. :P

Gunthy please add this feature for buying and selling.

If it's too complicated to implement a feature like this, then I can understand that it might not be possible
to add this feature - but indicators (and traders in general) work on using closed candles. I think this would
be an amazing feature to have in Gunbot.

This could just be a simple on/off switch, on the "BUY" tab and "SELL" tab of the BBTA strategy.

This closed candles feature is suited to BBTA, but maybe other strategies could benefit from it.

Cheers.

@dric322 dric322 changed the title Feature Request: "Use Closed Candles" option when buying with BBTA Feature Request: "Use Closed Candles" option when buying/selling with BBTA Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant