Quote:So, there is no way not to entry in each trade with the whole deposit?
There is no way to not do this with Gekko. Because all Gekko's profit calculations and graphical interfaces are designed around the concept of roundtrips, which is buying (with full balance) and later (hopefully when the price is higher) selling again - either via a signal from your strategy or a trigger like a trailingStop.
If you want more control and trade into and out of a position in steps like for example:
- current position neutral (0)
-> buy 100
-> buy 100
-> sell 150
- current position LONG (50)
You'll need to invent a few concepts so that everyone understands what is happening along the way, concepts such as PnL, uPnL, etc. (margin traders and derivative trades are familiar with these concepts, but most spot traders are not). Forgetting about the code this would be a very different type of bot. I recommend watching this video that explains what kind of trading Gekko is designed for: https://youtu.be/PKIxZ-Qaphk
---
If you want to develop such a different bot you can definitely use a lot of modules from the Gekko project. For example you can use order execution engine called Gekko Broker: https://gekko.wizb.it/docs/gekko-broker/...ction.html You can also use things like the candle aggregator, backtesting engine, strategy runner (though you'll need to come up with a new interface for all the extra stuff you want).