Coder Social home page Coder Social logo

sydom's Introduction

SyDOM

Sophisticated Scalper Bot for BitMEX using orders imbalance analysis


The idea behind this script is to spot micro-extremes (to the upside or the downside) and anticipate the reversal. To achieve that, it uses a modelisation of the market behaviour for the last 3 days (autogenerated) and applies a RSI computation onto the delta between the buyers and the sellers for the last 14 periods (each modification of the orderbook is counted as 1 period). As another filter, we use regular Bollinger Bands applied on an 5-minutes timeframe to avoid being caught in a defavorable jump. It works at the tick level and is best suited for ranging-type price action. Additionally, we recently implemented a machine-learning module on top of all of this to detect the trend we are in...

Warning : The daily model generation can take up to 2 hours. You can speed up the process by activating the force_training setting manually. In this case, the script focuses only on building a model and stops when it's done.


Configuration

Just replace the key and secret fields with yours, adjust the number of contracts traded and the action thresholds (see below) in sydom.py

Run pip install -r requirements.txt


Execution

python sydom.py

During the first run, the script will automatically generate a model (if missing) based on the 3 previous days of price action. This model is retrained every day at 6:00 AM UTC. Basically, you don't have anything to do once the bot is launched...


This is what you get at the end of each model generation. It helps to check if the model_thr setting value is optimum. You have to look for a level where the spikes are about to reverse. Generally, 0.05 for ETHUSD is fine... This value is in ABSOLUTE terms !


SyDOM has a telegram community for discussions on using SyDOM Bot and automated trading on BitMex : https://t.me/sydombot


Donations to allow further developments

BTC: 3BMEXbS4Neu5KwsiATuZVowmwYD3UPMuxo


Disclaimer

The article and the relevant codes and content are purely informative and none of the information provided constitutes any recommendation regarding any security, transaction or investment strategy for any specific person. The implementation described in the article could be risky and the market condition could be volatile and differ from the period covered above. All trading strategies and tools are implemented at the users’ own risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.