Based on ranking systems developed using Portfolio123, you can create advanced and powerful trading strategies in QuantShare. You can combine these fundamental ranking systems with technical indicators, put/call data, news data or market indicators.
Import Portfolio123 Ranking System Data
In QuantShare top menu, select "Divers" (used to be "Extern") then "Portfolio123".
In the P123 control, select "Settings" and enter your P123 login and password. Select "RS" tab then click on "Load" to import the complete list of ranking systems to your favorite trading software.
Select a ranking system then click on "Create item". Now, go to P123 tab, select the previously created item, select the start/end dates and click on "Start Download".
Let us say we have downloaded data for a ranking system whose name is "BJS Mo". The data will be stored in a custom database that have the same name (BJS Mo).
Create your Trading System
Open the Simulator Manager (Analysis -> Simulator) then create a new trading system by clicking on "New".
In the "Buy" panel, click on "add rule" and enter the following rule:
GetData("BJS Mo", "BJS Mo") > 99
Replace "BJS Mo" by the name of your ranking system. Use the CONTROL+SPACE shortcut after typing the first open parenthesis of the "GetData" function to display the list of custom databases.
In the above rule, we have instructed the trading software to enter a long position if the ranking system value of a stock is higher than 99.
Backtest your Strategy
Click on the "Create a trading system" button to save your strategy.
In the Simulator Manager, select your strategy then click on "Simulate / Backtest".
In this example, we wanted to show you how easy it is to create a strategy based on the "GetData" function and on a Portfolio123 ranking system.
You can experiment with this function by combining two or more ranking systems, adding or applying technical indicators to your ranking system time-series...