Zerodha is India’s number one broker in terms of active clients and also by trading volume. Zerodha offers many platforms to its clients to trade on. ‘Zerodha Pi’ is one of Zerodha’s most advanced platforms that allows you to backtest and create various Algo strategies.
Zerodha is India’s largest and most trusted stockbroker with over 6+ million clients. Zerodha offers many platforms for trading such as Zerodha web browser, Zerodha Kite, Zerodha Pi, etc.
All these platforms have unique features. The web browser of Zerodha offers all the features to consumers including access to the back office. At this place, you can get comprehensive reports of your trades and Profit and loss statements.
Kite by Zerodha is the best mobile application in the market as of now. It makes a great platform for traders who want to trade on the go. Similarly, the Pi is a more advanced and complex platform offered by Zerodha. Pi is not for beginners as it runs on a separate platform (NEST). Here you can implement ALGO trading, Backtest and Create strategies, and many more.
How to Backtest in Zerodha Pi?
The Pi is an advanced platform offered by Zerodha to all its clients. Pi has some distinctive features such as advanced charting, Algo trading, Strategies backtesting, etc. Let’s see how to backtest strategies on Pi:
Before backtesting in Pi, you will have to code the transcript on which the trade will take place. The entry and exit criteria have to be coded separately before you start the backtest.
-
Open your Pi terminal. Go to ‘Alerts’ and click on ‘backtesting.’ After you have clicked on ‘Back Test’, a new window will open.
-
In the next window, select the script under ‘Select Symbol’ (Stock/Index) on which you want to run your backtest. After that under ‘Periodicity’, enter the time frame on which you want to test this strategy on. For example min, hours, days, etc.
Then select the candle time frame under the ‘Bar Interval’.For example 1 min, 15 min, etc.
After this, add the total historic time frame on which you want to test your strategy under ‘Days’. Example- 5 days, 2 days. -
When you have successfully populated all the necessary criteria fields, you need to add the Code that you have made. Select the ‘Buy Script Tab’ and paste the code for the “Entry Strategy”. Paste the exit code in the ‘Exit Long Script tab’. Make sure that this is a long (Buying) strategy or else this would not work.
-
After this click on the ‘backtest’ button to begin the backtesting process. Once the system completes the backtesting process, the result of the same will be displayed on the right side of the same screen.
With this, you can backtest any of your strategies using Zerodha Pi. If you don’t know how to code, then there are many pre-existing templates that you can choose from. Click on this link to find out a range of strategies https://zerodha.com/expert-advisors/ . You can choose any one of these and implement it on your own backtesting strategy.