Select your Strategy¶
Previously...¶
You have uploaded or saved a strategy by:
- Your strategy is already uploaded on the AlgoBulls account and you want to search or select it
OR
- You have saved the strategy from the AlgoBulls Website
Now...¶
You are now ready to select or import your strategy from your AlgoBulls account for Backtesting, Paper Trading and/or Real Trading.
Before you start...¶
- Make sure you have an active working AlgoBulls account ready to go!
- Open a Jupyter Notebook.
- If you have coded the strategy yourself and not used a ready strategy from the pyalgostrategypool package, then make sure your strategy file (.py) and the Jupyter Notebook are in the same folder.
Let's Start...¶
Run the following code snippets into the Jupyter Notebook one by one (or all together).
Import statements¶
Import the strategy class¶
Perform the below step either to import a ready strategy OR to import your own created strategy.
-
Import a ready strategy
-
Import your own strategy
Establish a connection to the AlgoBulls Platform¶
The output of the above step is:Please login to this URL with your AlgoBulls credentials and get your developer access token: https://app.algobulls.com/user/login
Get Developer Key
You will need to log in to your AlgoBulls account and fetch the access token from: (See How)
Settings -> General -> Developer Options
Once you have the access token, set it in the code as shown here:
Replace the token you have copied with the token in the code above.View all the strategies in your AlgoBulls Account¶
You can view all the strategy saved on your AlgoBulls account.
Search your Strategy¶
- Search your strategy using
strategy name
. Make sure you have the strategy with given name in your AlgoBulls Account. - Search your strategy using
strategy code
. Make sure you have the strategy with given code in your AlgoBulls Account.
What's Next...¶
You are now ready to test your uploaded strategy and perform Backtesting, Paper Trading and/or Real Trading with it.