Alok Choudhary Profile picture
Aug 16, 2019 17 tweets 5 min read Read on X
How to build Algo Trading System - Roadmap

1) Installation of Spyder
2) Importing data from different data sources
3) Pandas
4) Matplotlib
5) Technical Analysis in python
6) Building trading models
7) Backtest, optimize & automate, performance
8) Options analysis and strategies
1) Installation of Spyder
drive.google.com/file/d/1XlOdgM…
2) Importing data from different data sources
We can download from NSE and read from local system
Can get data from NSE by nsetools library
Can be fetched through web services
Data vendors can be used to get the data
3) Pandas | Python Data Analysis Library
Pandas is an open source library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
It enables to carry out entire data analysis workflow in Python without using R.
Pandas and the DataFrame

DataFrame = pythonic analog of R's data frame

Manipulating pandas DataFrames
Exploratory data analysis
Data wrangling
Data preprocessing
Building models
Visualization

Importing using pandas
4) Matplotlib
Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+
5) TA in Python
Technical analysis packages are used for performing numerical and statistical operations, reading or downloading data, charting data and performing stock technical analysis operations.

Below python packages to use
• numpy
• pandas
• matplotlib
• ta
Technical Analysis
• Volume Indicators
• Volatility Indicators
• Trend Indicators
• Momentum Indicators
• Others Indicators

github.com/alokchoudhary0…
en.wikipedia.org/wiki/Technical…
Volatility Indicators
Bollinger Bands (BB) 30 day Facebook Python Code

github.com/alokchoudhary0…
Now make this plot more readable by shading the critical areas between the upper and lower bands. Matplotlib can handle plot shading as well. Let’s tweak our basic plot with the help of Matplotlib’s fill_between method.
6) Building Trading Algorithms with Python
Here comes lot of coding and debugging. Now will be.

•Implementing stock market analysis
•Designing a trading algorithm for selling and buying
•Structuring a trading bot
•Run trial trades
Implementing Stock Market Analysis in Python includes
• Financial analysis on stock market data
• Learning about returns and moving averages
• Coding the strategy
7) Design, Backtest, optimize & automate, performance

Preliminary Research:
• Develop a strategy that suits personal needs
• Example - risk profile, time commitment, trading capital
• Identify persistent marketing efficiency
Backtesting:
• Focus on validating the trading bot
• Check code
• Understand performance over different time frame and asset classes

Optimization:
• Maximize performance by minimizing the overfitting price
• Select good performance measures
• Avoid overfitting bias
Live Execution
• Select the appropriate broker
• Implement mechanism to manage market and operation risk
• Verify the bot's performance
• Continuous monitoring

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Alok Choudhary

Alok Choudhary Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(