In this recipe, you will perform backtesting on the EMA-Regular-Order strategy. You must have fetched this strategy from your account in the AlgoBulls platform in the preceding recipe. You will leverage the backtesting functionality facilitated by pyalgotrading for this recipe, which, in turn, submits a backtesting job on the AlgoBulls platform.
Once submitted, backtesting will be run by the AlgoBulls backtesting engine. You can query the status anytime to find the state of the backtesting job. The job goes through the following states, in the given order:
- STARTING (intermediate state)
- STARTED (stable state)
- STOPPING (intermediate state)
- STOPPED (stable state)
On submitting a job, it starts with an intermediate state, STARTING. In this state, the AlgoBulls backtesting engine fetches the strategy and get the execution environment ready, which may take a couple of minutes. Once done, the job moves to the STARTED state. Strategy...