bot to automatically close all open positions
I need a very simple BOT that closes all open positions when their gain (or loss) is = "x" (eur, usd, .....)
On this BOT I will have to enter only one value, for example "+50".
When the sum of all open trades is "50" (eur, usd, ....), the BOT will have to close all open trades.
If instead I write "-50", the BOT will close all open positions when their sum is "-50" (eur, usd, ....).