A Technical Analysis Bot that trades leveraged USDT futures markets on Binance.
Join My public Discord Server & Follow The Twitter
Set up windows to sync time once a day if you don't do this binance will eventually reject orders with a timestamp error.
Strategies are implemented in TradingStrats.py as functions and then referenced in Bot_Class.Bot.make_decision()
Make_decision()
must return Trade_Direction, stop_loss_val, take_profit_val
for the strategy to work properlyRun 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
python3 live_trading.py
max_number_of_positions = 1
, to trade multiple coins just increment this value.leverage
and order_size
should be changed according to your preferencesymbols_to_trade[]
is a list of the symbols you wish to trade, If you wish to trade all symbols set trade_all_symbols = True
.use_trailing_stop = True
and change trailing_stop_callback
to 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.trading_strategy
is the name of the strategy you want to use, see below for adding your own custom strategies.StochRSIMACD, tripleEMAStochasticRSIATR, tripleEMA, breakout, stochBB, goldenCross, candle_wick, fibMACD, EMA_cross, heikin_ashi_ema2 & heikin_ashi_ema
USDT, %, x (ATR), x (Swing High/Low) level 1, x (Swing High/Low) level 2, x (Swing High/Low) level 3, x (Swing Close) level 1, x (Swing Close) level 2, x (Swing Close) level 3
SL_mult
and TP_mult
are multipliers for the TP_SL_choice
interval
you want to trade, valid intervals are: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d
.Quantopian Lectures | Silicon Trader | Trade Pro | Strategy Testing | Trading Journal | The Moving Average