- BUY-LOW-SELL-HIGH
- DISCLAIMER
- HOW-IT-WORKS
- HOW-TO-USE
- SCREENSHOTS
- JOIN-MY-DISCORD
- QUICK ACCESS TO THE DARK DIMENSION
- Please email or create an issue if the invitation link does not work
This is a trading bot that trades on Binance SPOT WALLET
A Trading Bot that perfectly illustrate the art of "buy low, sell high" strategy.
Inspired by THE 3 % SIGNAL STRATEGY
It is always a good idea if you know HOW THIS STRATEGY WORKS before you use this script.
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/long-term-low-leverage (I am actively using this)
- https://github.com/zyairelai/futures-hero/ (I do not use this personally)
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!
NOTE For example, for BTCUSDT, BTC is the base asset, USDT is the quote asset.
-
This script is a very simple implementation of "buy low, sell high" strategy.
-
Assuming you want to hold 500 USDT worth of BTC.
-
Make sure you have more than 500 USDT in your
SPOT WALLET
, ideally at least 20-30% more than the amount you want to hold. -
When you run the script, the program will purchase BTC using 500 USDT from your
SPOT WALLET
. -
If you use the default scheduler in the script, the script will execute every
00:00
,06:00
,12:00
and18:00
. -
For every 6 hours, if your BTC amount, the $500 is increased more than the
margin_percentage
, which by default is 4%, it will trigger a sell order. -
The sell amount will be the amount on top of the value 500. Which will bring your BTC balance back to 500 USDT. (Sell the profit into the pump)
-
Vice versa, if your BTC amount, the $500 is decresed more than the
margin_percentage
, which by default is 4%, it will trigger a buy order. -
The buy amount will be the amount to top up your BTC balance back to 500 USDT. (Buy the dip with proper wallet management)
-
Always make sure you have enough ammo quote asset to allow this script to buy low and sell high at its full potential.
-
My recommendation for the
base : quote
ratio is80 : 20
, 80% for your overall base assets, 20% is the ammo quote asset.
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 9-11
in run.py
to following:
api_key = "your_binance_api_key"
api_secret = "your_binance_secret_key"
client = Client(api_key, api_secret)
You need to have these libraries installed:
pip3 install apscheduler==3.6.3
pip3 install cryptography==3.2
pip3 install python-binance==0.7.5
pip3 install termcolor==1.1.0
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 code at every 00:00 , 06:00 , 12:00 , 18:00 False to run the code only once |
base |
You can put your coin list here |
core |
Amount of the quote asset you want to maintain |
quote |
Optimal is USDT |
margin_percentage |
The percentage that will trigger buy or sell. Optimal is 4 , minimum should not be lower than 3.5 |
The following code means the program will help you to maintain:
- 500 USDT worth of BTC
- 300 USDT worth of ETH
base = ["BTC", "ETH"]
core = [500, 300]
quote = ["USDT]
IMPORTANT NOTE:
- The minimum core amount for quote USDT is 300 USDT
- Make sure you have enough USDT in your
SPOT WALLET
to unleash this program at its full potential
If you want to time this script by your own, set enable_scheduler = False
then you can make your own scheduler
Else, you can set enable_scheduler = True
and the script will loop the program for you every 6 hours.
Now if you are all ready, set live_trade = True
and ...
Let's make the magic happens!
python3 run.py
Here is my ROI with this strategy