OPEN-SOURCE SCRIPT
Aktualisiert Code 33 - 3 qts of acceleration (YoY) for EPS, Sales, & Margins

Mark Minervini's Code 33 screen, from his "Trade Like a Stock Market Wizard" book, helped him look for potentially powerful growth stocks that have 3 straight quarters of EPS (diluted) + Sales + NPMs growth on a YoY basis. I figured I create and share it as a script because as far as I know, TradingView lacks the ability to screen for fundamental acceleration, which here would be defined as consecutive quarterly growth on a YoY comparison basis (comparing Q1 of 2025 to Q1 of 2024; not comparing Q1 of 2025 to Q4 of 2024).
Acceleration is a trademark for techno-fundamentalists such as Minervini, O'Neil, Weinstein, and the list goes on. Now, you will not only be able to see this on your charts, but you can also use this on the Pine Beta Screener to filter for stocks that meet one or more of the criteria. Just set the filter condition to equal "1".
*A quick note on the code: TradingView doesn't have a native 'Net Profit Margin' identifier that isolates strict Fiscal Quarter (FQ) data without smoothing it into a Trailing Twelve Months (TTM) format. Because true YoY acceleration requires raw quarterly comparisons, I coded the script to manually calculate the exact quarterly margin by dividing FQ Net Income by FQ Total Revenue. This ensures the YoY acceleration signal is 100% accurate to the specific quarter.
I am not a coder by any means but I always wanted to have this available to me so after playing around with Gemini's pro LM, you should be able to see and screen stocks like this going forward. Maybe in the future, I will edit it for aesthetic purposes or add more to allow for even more detailed screening especially for CANSLIM investors like myself. I also made it open-source as well so if you prefer different metrics, it should not be too difficult to take this script into a LM of your choice and make it your own.
Happy trading.
ASX 
Acceleration is a trademark for techno-fundamentalists such as Minervini, O'Neil, Weinstein, and the list goes on. Now, you will not only be able to see this on your charts, but you can also use this on the Pine Beta Screener to filter for stocks that meet one or more of the criteria. Just set the filter condition to equal "1".
*A quick note on the code: TradingView doesn't have a native 'Net Profit Margin' identifier that isolates strict Fiscal Quarter (FQ) data without smoothing it into a Trailing Twelve Months (TTM) format. Because true YoY acceleration requires raw quarterly comparisons, I coded the script to manually calculate the exact quarterly margin by dividing FQ Net Income by FQ Total Revenue. This ensures the YoY acceleration signal is 100% accurate to the specific quarter.
I am not a coder by any means but I always wanted to have this available to me so after playing around with Gemini's pro LM, you should be able to see and screen stocks like this going forward. Maybe in the future, I will edit it for aesthetic purposes or add more to allow for even more detailed screening especially for CANSLIM investors like myself. I also made it open-source as well so if you prefer different metrics, it should not be too difficult to take this script into a LM of your choice and make it your own.
Happy trading.
Versionshinweise
*Updated so it pulls net profit margin directly from TradingView's Net Profitability Ratio Data instead of calculating manually.Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.