Strategies are implemented in Bot_Class as functions in Make_decision()
Trade_Direction, stop_loss_val, take_profit_valfor the strategy to work properly
Run strategies at your own risk I am not responsible for your trading decisions, futures are risky and proper risk management should be adhered to at all times, always have a stoploss
Number_Of_Trades = 1, to trade multiple coins just increment this value.
Intervalyou want to trade and the
bufferof candlesticks your strategy will need this will be dependent on indicators you need to ensure you have a sufficient buffer, or you will get errors.
order_Sizeshould be changed according to your preference
symbolis a list of the symbols you wish to trade, If you wish to trade all symbols set
Trade_All_Coins = True.
use_trailing_stop = 1and change
trailing_stop_percentto suit your strategy to use the trailing stop (Min val .001 i.e .1%, Max 5 i.e. 5%). The trailing stop will be placed when the take profit value margin of increase/decrease is reached from your strategy.
strategyis the name of the strategy you want to use, see below for adding your own custom strategies.
TP_SL_choicecorrespond to the type of SL/TP seen in the dropdowns in the GUI see below for adding custom ones.
TP_multcorrespond to the numbers preceding the TP and SL choice dropdowns.
Docker container creation (Recommended for anyone having issues running the bot):
Sample docker commands that I use, note yours may be different (
sudo may not be needed for you, I am on Linux):
sudo docker build --tag live_bot . sudo docker run -it live_bot
app.py to get the GUI