daisy613 / LHPControl

19 stars 3 forks source link

Future Update - Settings profiles #9

Open shadowerwtas opened 3 years ago

shadowerwtas commented 3 years ago

Make the bot change the settings on the fly (for example stop itself, call another settings file and re run again) based on specific conditions like:

1) Time based profiles - Let's say I create 2 settings files, 1 for the day while I am awake and monitoring the bot with a bit more aggressive configs and 1 for the night with safer settings The swap between the profiles will be triggered by predetermined time that the user will set on LHPC. So if I enable this feature when I woke up everyday at 8:00 the bot will automatically load the daily settings, etc.

2) Conditional based profiles - If I run the daily profile explained above and my isolationOrder=10 kicks in, do nothing. But if my balance keeps falling further and goes below i.e. 30% (value set by user), swap to a safer profile settings file (with lower leverage and/or pb, etc) until the bot closes the dangerous positions and returns to normal trading, then swap back to it's aggressive profile automatically or have an option to disable swapping back (in case the market stays volatile whole day for example).

3) Manual swapping - A new Profiles tab next to Activity one, where you can list all your profiles and few buttons like Create, Clone, Edit, Delete profile, and of course the manual swap button to a profile selected by the user at that moment, i.e. from a dropdown menu.

Before the LHPC I used to edit the settings file, according to my preference of the market at moment, on the fly and just save it with a simple Ctrl+S (no need to stop and restart the bot). Since the release of LHPC, I have to stop the bot -> change the settings I want (pb and lev most of the time) -> save settings -> Start the bot. Few extra steps than before, so I thought we might as well make that process a bit simpler and why not provide an export profile feature too (were all personal details, like keys will be deleted from the settings file) then those profile files get into a zip file for example so we can send that profile file to another user to instantly load it and run it on his own bot.

Why not on top of that in the future make a Leaderboard where users can vote among other users profiles so the top 3 can be picked and packed by default to new bot installations. So a new user can start from somewhere since lots of them don't want to mess with settings and just want a stable bot running.

daisy613 commented 3 years ago

Those are wonderful ideas, Shadowerwtas! I will add them to the future enhancements pile.