ugurak / futures-hero

❗ HIGH RISK ❗ Scalping on Binance Futures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Update:

I am currently not able to give this project enough time to fix the current issues or add new features.
I am busy with some other projects. But I do plan to fix all the issues and add some new features.
So the maintenance is temporarily on hold and this project is not dead.

TABLE OF CONTENTS

  1. FUTURES-HERO
  2. DISCLAIMER
  3. HOW-IT-WORKS
  4. HOW-TO-USE
    1. ENVIRONMENT SETUP
    2. PIP3 REQUIREMENTS
    3. CONFIGURATIONS
    4. RUN
  5. SCREENSHOTS
  6. JOIN-MY-DISCORD

FUTURES-HERO

Leverage Trading Automation on Binance Futures.
This is a Set and Forget script, means you need to keep it running 24/7 and forget about it.
The bot is stable in current version therefore no new changes until new bugs been spotted.
I do not use this bot personally, however, I do use the other 2 bots:

DISCLAIMER

This automation software is implemented base on my PERSONAL MANUAL TRADING STRATEGY.
However not all my manual trading strategies are completely transformed into code.
For example, common sense, 6th sense, knowing when to stop trading are NOT the part I could do in this code.

LEVERAGE TRADING IS A HIGH RISK GAME.
PLEASE MANAGE YOUR RISK LEVEL BEFORE USING MY SCRIPT.

HOW-IT-WORKS

In short, this code takes these few conditions into considerations:
4-hour timeframe, 1-hour timeframe and 1-minute timeframe

  1. It checks the overall main direction, 4-hour.
    Let's say the newest current 4-hour candle is GREEN.

  2. Then it checks the 1-hour candle for confirmation.
    Let's say the newest current 1-hour candle is matched with 4-hour candle GREEN.

  3. Since both main direction and confirmation are GREEN, now it will find an entry
    (The part which I am not able to implement into code).

  4. The entry will be on the 1-minute chart.
    In the case above, it will look for a LONG position entry.

HOW-TO-USE

1. ENVIRONMENT SETUP

Paste the following into your Default Shell

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

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

api_key     = "your_binance_api_key"
api_secret  = "your_binance_secret_key"
client      = Client(api_key, api_secret)

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

To install all the dependencies requirements in one line:

pip3 install -r requirements.txt

Or if you prefer to install these libraries one by one:

pip3 install ccxt
pip3 install numpy
pip3 install pandas
pip3 install requests
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
coin You can put your coin list here, to add more it will be ["BTC", "ETH"]
quantity Trade amount. You can run util_cal_tradeAmt.py to check the trade amount

The following code illustrate how you add more pairs to trade with:

coin = ["BTC", "ETH"]
quantity = [0.001, 0.01]

IMPORTANT NOTE:

4. RUN

You can select your strategy in the strategies folder.

Just replace the strategy.py file with any strategy in that folder and you are good to go.

The default strategy is strategy_hybrid.py.

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

Let's make the magic happens!

python3 run.py

Make sure you are having Python 3.8 as default python, else you might need to specify your path with python3.8

SCREENSHOTS

SAMPLE OUTPUT

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

About

❗ HIGH RISK ❗ Scalping on Binance Futures


Languages

Language:Python 100.0%