Quote:Hello. But how people currently get profit with gekko without proper execution (stop-loss + take-profit) and money-management (% of deposit per order) politics? They are scripting it themselves?
I might have not worded this properly. What I mean:
Most exchanges don't let you actually create orders (submit them into the orderbook) unless you have funds for all of them. So imagine you have some USD and trade on USD/BTC. As soon as you see an entry you:
1. Buy BTC with all your USD.
2. Set a stoploss to sell all your BTC under the price.
3. Set a take profit to sell are your BTC above the price.
Most exchanges won't let you do 2 and 3 at the same time, since you only have enough BTC to do one of these (that's what I meant previously). When you are working Gekko you can:
- Trigger a buy signal to do step 1.
- Add a stoploss to that trigger so Gekko will automatically do step 2 -> Note that it doesn't actually submit any order at this time, but instead Gekko will watch the price contentiously (faster than it will pump candles into your strategy, it's actually watching the orderbook in a live trader - not just historical trade flow).
- In your strategy you can set up a watcher to do the take profit (step 3): you simply register your TP when you trigger a BUY, and after that you check every time if the price hits your TP.
As you can see it is very much possible to do entry + SL + TP. But TP requires you to do it manually for now (5 lines of code you need to add to your strategy). I will add this to Gekko as well at some point, but since TA is so heavy on trends and momentum that I rarely see people wanting to do a TP, instead they want to ride the trend while watching for a potential reversal. If you buy and schedule a stoploss you can at any point manually sell again and Gekko will delete the stop loss.