long-term-low-leverage
long-term-low-leverage copied to clipboard
The best trading bot to lose money 💸
This project is deprecated.
This trading bot strategy works well during year 2021, however it is not longer suitable for 2022 market trend.
Hence, this project will no longer maintained and updated.
If you are interested in other trading bot, kindly visit Buy Low Sell High (Works well) and Binance Copycat (Work in Progress)
TABLE OF CONTENTS
- LONG-TERM-LOW-LEVERAGE
- DISCLAIMER
- HOW-IT-WORKS
-
HOW-TO-USE
- ENVIRONMENT SETUP
- PIP3 REQUIREMENTS
- CONFIGURATIONS
- RUN
-
JOIN-MY-DISCORD
- QUICK ACCESS TO THE DARK DIMENSION
- Please email or create an issue if the invitation link does not work
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:
- https://github.com/zyairelai/buy-low-sell-high/ (I am actively using this)
- https://github.com/zyairelai/futures-hero/ (I do not use this personally)
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
-
This strategy theory is "Buy Pullbacks, not breakouts!"
-
This strategy check on the daily timeframe.
-
The bot will initiate a buy position if the current daily close is lower than the previous 7 days low.
-
A buy position also means placing a LONG order and closing the SHORT position together.
-
The bot will initiate a sell position if the current daily close is higher than the previous 7 days high.
-
A sell position also means placing a SHORT order and closing the LONG position, together.
-
There will be a trailing stop with a call back rate of 5%, if you set
use_trailing = True
-
The backtest result is using
OPEN
of the candle instead ofCLOSE
, 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