This is the first part of the “algorithmic cryptocurrencies trading” video series, where I take you through the implementation of a crypto trading bot in python.

    In this video we’re writing a python program that gets price data of coins, (something similar would work with stocks too), computes a technical indicator (moving average) and plots it.

    Besides, we’re developing a strategy that allows us to automatically buy the coin whenever the difference between the price and the moving average is more than 3%. This strategy is also back-tested, IE tested to see if it was profitable in the past.
    Using the Binance API we’ll download the price data. Using the pyti library we’ll calculate two moving averages for and using plotly we’ll display the data in a nice candlestick plot.
    At the end, we’ll test our program in a funky little demo.

    Timeline
    Intro 00:16
    What is a candlestick? 01:44
    What’s a moving average? 02:35
    What’s our trading strategy? 03:27
    Coding 04:27
    Ending 11:11

    Software Requirements
    I’m running this on an Ubuntu, but MacOS/Windows should work as well.
    Have python and pip installed. (works on both python 2 and 3)
    Install pyti: pip install pyti
    Install plotly: pip install plotly

    Documentation
    Binance API:
    Plotly:
    Pyti:

    Music (I own no copyright)
    Kalimba – Ninja we Ninja (intro/outro)
    Bob Marley – Sun is Shining
    Shlohmo – Ghosts, part 2

    Github link:
    Create a Binance account using my referral link:
    Part 2:

    Bless

    Comments are closed.

    Share via