ugurak / long-term-low-leverage

The best trading bot to lose money 💸

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TABLE OF CONTENTS

  1. LONG-TERM-LOW-LEVERAGE
  2. DISCLAIMER
  3. HOW-IT-WORKS
  4. HOW-TO-USE
    1. ENVIRONMENT SETUP
    2. PIP3 REQUIREMENTS
    3. CONFIGURATIONS
    4. RUN
  5. JOIN-MY-DISCORD

LONG-TERM-LOW-LEVERAGE

This is a trading bot for Binance USDT-M Futures.

Inspired by SHORT TERM STRATEGIES THAT WORK by Larry Connors. You can check the detailed explaination https://www.youtube.com/watch?v=_9Bmxylp63Y&list=WL&index=9

This bot is stable therefore no new changes is made until new bugs been spotted.
I use this bot personally and it works fine for me with stable profits.
Maybe you might like to checkout my other bots that uses leverage:

DISCLAIMER

I have no responsibility for any loss or hardship incurred directly or indirectly by using this code.

PLEASE MANAGE YOUR RISK LEVEL BEFORE USING MY SCRIPT.

USE IT AT YOUR OWN RISK!

HOW-IT-WORKS

  1. This strategy theory is "Buy Pullbacks, not breakouts!"

  2. This strategy check on the daily timeframe.

  3. The bot will initiate a buy position if the current daily close is lower than the previous 7 days low.

  4. A buy position also means placing a LONG order and closing the SHORT position together.

  5. The bot will initiate a sell position if the current daily close is higher than the previous 7 days high.

  6. A sell position also means placing a SHORT order and closing the LONG position, together.

  7. There will be a trailing stop with a call back rate of 5%, if you set use_trailing = True

  8. The backtest result is using OPEN of the candle instead of CLOSE, therefore the backtest result will be similar to real trades.

HOW-TO-USE

1. ENVIRONMENT SETUP

Setup your environment API key on the Terminal:

export BINANCE_KEY="your_binance_api_key"
export BINANCE_SECRET="your_binance_secret_key"

Or as an alternative, you can change line 6-9 in binance_futures_api.py to following:

api_key     = "your_binance_api_key"
api_secret  = "your_binance_secret_key"

Don't forget the " " symbol to make your API key into STRING type!

I WILL NO LONGER ANSWER QUESTION REGARDING TO THIS ERROR:

AttributeError: 'NoneType' object has no attribute 'encode'

QUICK GOOGLE SEARCH or FIX YOUR API KEY
DO NOT SPAM MY EMAIL AND DISTURB MY PEACEFUL LIFE LOL

2. PIP3 REQUIREMENTS

You need to have these libraries installed:

pip3 install ccxt
pip3 install pandas
pip3 install termcolor
pip3 install python-binance
pip3 install cryptography==3.4.6

3. CONFIGURATIONS

Before running, maybe you want to see how the output looks like.
The settings can be configured in config.py.

Variables Description
live_trade True to place actual order
False to see sample output
enable_scheduler True to run the script during UTC 00:00
False to run the script only once
follow_bitcoin True to follow Bitcoin Position
False to not follow Bitcoin
use_trailing True to set a Trailing Stop
False to not using Trailing Stop
callbackrate Check https://www.binance.com/en/support/faq/360042299292
coin You can put your coin list here
quantity Amount of the trade amount you want to trade
leverage The recommended leverage is all listed in the config.py.

4. RUN

Now if you are all ready, set live_trade = True and ...

Let's make the magic happens!

Command to on Binance

python3 trade_binance.py

Please email or create an issue if the invitation link does not work

About

The best trading bot to lose money 💸

License:Apache License 2.0


Languages

Language:Python 100.0%