In this recipe, you will fetch the StrategyMACDBracketOrder strategy class from your account on the AlgoBulls platform, which you must have uploaded while going through the last recipe in Chapter 8, Algorithmic Trading Strategies – Coding Step by Step. This recipe starts with setting up a connection to the AlgoBulls platform, querying all available strategies in your account, and fetching details about the required strategy class; that is, StrategyMACDBracketOrder.
Make sure you have gone through the last six recipes of Chapter 8, Algorithmic Trading Strategies – Coding Step by Step, to get a complete picture of the strategy class we will be using; that is, StrategyMACDBracketOrder.
How to do it…
Execute the following steps to complete this recipe:
- Import the necessary modules:
>>> from pyalgotrading.algobulls import AlgoBullsConnection
- Create a new AlgoBulls connection object:
...