- Лайфстайл
- Недвижимость
- Здоровье
- Природа
- Дизайн
- Техника и оборудование
- Бизнес и предпринимательство
- Искусство
- Религия
- Строительство и ремонт
- Сад и огород
- Аудиокниги
- Кулинария
- Интервью
- Развлечения
- Лайфхаки
- Эзотерика
- Охота и рыбалка
- Наука
- Политика
- Психология
- Аудио
- Технологии и интернет
- Красота
- Телепередачи
- Детям
- Аниме
- Хобби
- Видеоигры
- Юмор
- Образование
- Спорт
- Разное
- Путешествия
- Животные
- Новости и СМИ
- Мультфильмы
- Музыка
- Сериалы
- Фильмы
- Авто-мото
Algorithmic Trading: The Basics (Part 1)
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: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md
Plotly: https://plot.ly/python/getting-started/
Pyti: https://github.com/kylejusticemagnuson/pyti
Music (I own no copyright)
Kalimba - Ninja we Ninja (intro/outro)
Bob Marley - Sun is Shining
Shlohmo - Ghosts, part 2
I do Live coding sessions Saturdays (and sometimes Wednesdays too) on Twitch: https://www.twitch.tv/tudorelu01
Github link: https://github.com/tudorelu/tudorials/tree/master/trading
Create a Binance account using my referral link: https://www.binance.com/?ref=10961872
Part 2: https://youtu.be/NTcZGzWBwAQ
Bless
Видео Algorithmic Trading: The Basics (Part 1) автора Первый умный
Видео Algorithmic Trading: The Basics (Part 1) автора Первый умный
Информация
3 декабря 2023 г. 21:03:28
00:12:41
Похожие видео










![011. Use the Firewall [RU]](http://pic.rutubelist.ru/video/2025-12-14/75/2f/752f22d80134040e36a6c4103635f602.jpg?size=s)









![030-2. Configuring DHCP [RU]](http://pic.rutubelist.ru/video/2025-12-14/28/2c/282c17f0dc29fbd5c941c2440b1764e9.jpg?size=s)
