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

Start/stop bots to optimise account balance use #154

Open
grumpydolphin opened this issue Oct 23, 2022 · 2 comments
Open

Start/stop bots to optimise account balance use #154

grumpydolphin opened this issue Oct 23, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@grumpydolphin
Copy link

It would be great for a script to monitor open trades and maximise the maximum active deals.

For example, you have 100 bots enabled and you only have enough funds to run 10. All the bots stay active until 10 deals are opened. at this point the script disables all the remaining bots. When deals are closed the script then enables more bots to pickup more deals.

This sort script could allow you to maximise deals with higher funding rather that spread the funds between more bots.

@grumpydolphin grumpydolphin added the enhancement New feature or request label Oct 23, 2022
@amargedon
Copy link
Collaborator

Hmm I understand the idea but what do you think about bots that open a deal at the same time? With 100 bots in this example, it could be two bots start a deal at the same time (or within the same interval for the script) causing actually too much funds being used (or, errors at 3C regarding insufficiënt funds).

And bots using more funds than available should already be disabled during the processing. It could be one bot uses 20% of the funds for one deal, so if only 18% is left that bot should be disabled already. Makes the script also more complicated.

Is this request based on how you work with the bots currently? How is that going given the situations described above?

@grumpydolphin
Copy link
Author

Yes that the problem, if deals start at the same time... or too close for the script to catch.

I used a script in the past that had a similar function. The previous script was designed to work with futures bots. The script monitored your margin level and stopped/started bots based upon your margin. It would have suffered from the same issue though in that multiple bots could start at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants