Learn how to code your own algorithmic trading strategy from scratch using two strategy coding examples involving Regular and Bracket orders respectively.
- EMA-Regular-Order Strategy: Coding the
__init__
,initialize
,name
andversions_supported
methods - EMA-Regular-Order Strategy: Coding the
strategy_select_instruments_for_entry
method - EMA-Regular-Order Strategy: Coding the
strategy_enter_position
method - EMA-Regular-Order Strategy: Coding the
strategy_select_instruments_for_exit
method - EMA-Regular-Order Strategy: Coding the
strategy_exit_position
method - EMA-Regular-Order Strategy: Uploading the strategy on AlgoBulls Trading Platform
- MACD-Bracket-Order Strategy: Coding the
__init__
,initialize
,name
andversions_supported
method - MACD-Bracket-Order Strategy: Coding the
strategy_select_instruments_for_entry
method - MACD-Bracket-Order Strategy: Coding the
strategy_enter_position
method - MACD-Bracket-Order Strategy: Coding the
strategy_select_instruments_for_exit
method - MACD-Bracket-Order Strategy: Coding the
strategy_exit_position
method - MACD-Bracket-Order Strategy: Uploading the strategy on AlgoBulls Trading Platform
[Click here to VIEW Chapter 8 Jupyter Notebook on nbviewer]
- Python 3.7+
- Additional Python Packages required for this chapter can be installed as follows -
$ source <virtualenv> # optional, if you use a virtualenv
$ cd <path-to-this-folder>
$ pip install -r requirements.txt