Large Language Models (LLMs) come to Portfolio123.com
...very, very early stage, but the right way to go!
Large Language Models (LLMs) come to Portfolio123.com
Pretty exciting news:
Check out this on the user community of Portfolio123.com —>
https://community.portfolio123.com/t/llms-are-coming-to-p123/70545
The idea is basically, that P123 provides something like ChatGPT for you to design models (screens, portfolio strategies, ranking systems etc.).
Portfolio123 (P123) Language GPT
Here is the link:
https://chatgpt.com/g/g-67af36afe2908191a691412cdd3c3882-portfolio123-p123-language-gpt
This is all very, very early stage but I really like the direction!
It just built me the following ranking system (in the first one there was a mistake in the XML Structure, I copied an existing ranking system and told it to use it as an example. I had to correct it a couple of times more, but in the end, it worked well!).
Backtest on the SP500 Universe, cap weighted (no buy rules, only on rank sell rule Rank < 80).
I would say, o.k. for 20 min of work ;-)
Best Regards
Andreas
P.S. Here is the XML Format of the ranking system, you can copy it via the text editor of a ranking system.
<RankingSystem RankType="Higher">
<StockFormula Weight="4" RankType="Higher" Name="EPS Surprise" Description="" Scope="Universe">
<Formula>(EPSActual(0,QTR) / CurQEPSMean - 1)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Higher" Name="EPS Growth YoY" Description="" Scope="Sector">
<Formula>(EPSActual(0,QTR) / EPSActual(4,QTR) - 1)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Higher" Name="Analyst Revisions" Description="" Scope="Sector">
<Formula>(CurQEPSMean / CurQEPS4WkAgo - 1)</Formula>
</StockFormula>
<StockFormula Weight="4" RankType="Higher" Name="Industry Earnings Trend" Description="" Scope="Industry">
<Formula>(CurFYEPSMean / EPSActual(4,ANN) - 1)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Higher" Name="EPS Estimate Revision CY" Description="" Scope="Universe">
<Formula>(CurFYEPSMean - CurFYEPS4WkAgo) / Abs(CurFYEPS4WkAgo)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Higher" Name="EPS Estimate Revision CQ" Description="" Scope="Universe">
<Formula>(CurQEPSMean - CurQEPS4WkAgo) / Abs(CurQEPS4WkAgo)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Lower" Name="EPS Estimate Variability CQ" Description="" Scope="Universe">
<Formula>CurQEPSStdDev / Abs(CurQEPSMean)</Formula>
</StockFormula>
<StockFactor Weight="4" RankType="Higher" Name="Earnings Surprise Q1" Scope="Universe">
<Factor>Surprise%Q1</Factor>
</StockFactor>
<StockFactor Weight="3" RankType="Higher" Name="Earnings Surprise Q2" Scope="Universe">
<Factor>Surprise%Q2</Factor>
</StockFactor>
<StockFactor Weight="4" RankType="Higher" Name="Operating Income Growth YoY" Scope="Sector">
<Factor>OpIncGr%PYQ</Factor>
</StockFactor>
<StockFactor Weight="6" RankType="Higher" Name="Sales Growth YoY" Scope="Sector">
<Factor>SalesGr%PYQ</Factor>
</StockFactor>
<StockFormula Weight="4" RankType="Lower" Name="Share Turnover (1 Yr)" Description="" Scope="Universe">
<Formula>MedianVol(252) / SharesCur(126)</Formula>
</StockFormula>
<StockFormula Weight="7" RankType="Lower" Name="Share Turnover (3 Months)" Description="" Scope="Universe">
<Formula>MedianVol(65) / SharesCur(0)</Formula>
</StockFormula>
<StockFormula Weight="3" RankType="Higher" Name="Volume Increase" Description="" Scope="Universe">
<Formula>AvgVol(13) / AvgVol(13,30)</Formula>
</StockFormula>
</RankingSystem>