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

Buy with even lower price #229

Open
avibrazil opened this issue Jun 22, 2022 · 5 comments
Open

Buy with even lower price #229

avibrazil opened this issue Jun 22, 2022 · 5 comments

Comments

@avibrazil
Copy link
Contributor

avibrazil commented Jun 22, 2022

I noticed that after a buy signal, prices almost always drop quite a few more percent points.

So my question is if there is a way to make the buy signal wait a few more price percent point drops to only then actually buy the asset.

@iterativv
Copy link
Owner

Some times do, some times not. The thing is that we can't predict the future. The algorithm calculated that there is potential for the specific pair.

if we wait, we will miss many trades.

@iterativv
Copy link
Owner

Plus, after a buy, you have to consider -0.5% -1% drop right away, because the fees (both ways), spread and probably slippage.

@avibrazil
Copy link
Contributor Author

avibrazil commented Jul 18, 2022

I understand what your are saying and it makes sense.

But let me insist a bit, because I keep seeing the large amount of trades to drop a lot after buying.

I was thinking to play with unfilledtimeout.entry (increasing it) and with entry_pricing.order_book_top. Something like this in config.json:

"unfilledtimeout": {
        "entry": 25      // freqtrade default is 15 min
},

"entry_pricing": {
        "price_side": "bid",       // default is other
        "use_order_book": true,    // default is false
        "order_book_top": 5        // default is 1
}

This way it will buy with a lower price (5 positions down the order book) and will wait a little longer to fulfill. Even if it loses some opportunities, maybe the profit increase of the optimized trades will pay off.

I guess this is something that can't be simulated because there is no order book data during simulations. But, I'd like to ask you, if you can, in your simulations, to count how many trades (percentage) have a price drop after entry, and the speed of the price drop. This kind of conclusions can optimize these 2 numbers that I came with random values (25 minutes and 4th in order book).

It all depends on what the moving averages are telling you. Even without having the ability to predict the future.

Thank you very much for such an effective strategy.

@myNextCoder
Copy link

Hello avibrazil, I thank you for this idea. I currently have a test-bot with NFIX and your above configuration. The bot is not yet able to enter, it cancels all orders. Have you got better results?

@avibrazil
Copy link
Contributor Author

I tried this config with a real Huobi bot.
But this exchange has a freqtrade bug that killed the bot when orders were canceled, so I went back to regular operation. They fixed the Huobi-related bot but I didn't upgrade to newer freqtrade.

I didn't test it enough.

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

3 participants