OPEN-SOURCE SCRIPT
Net Profit Margin %

📌 Net Profit Margin % Indicator — Short Explanation
This indicator calculates and displays a company’s Net Profit Margin (NPM) using its financial statements.
What it does:
Pulls Net Income and Total Revenue from the company’s quarterly (FQ) or yearly (FY) financials.
Calculates:
Net Profit Margin = (Net Income / Revenue) × 100
Plots the NPM% as a line chart.
Background turns green when margin is positive and red when negative.
Shows the latest NPM value in a small info table on the chart.
Purpose:
Helps you quickly see whether a company is profitable and how its profit margin is trending over time.
This indicator calculates and displays a company’s Net Profit Margin (NPM) using its financial statements.
What it does:
Pulls Net Income and Total Revenue from the company’s quarterly (FQ) or yearly (FY) financials.
Calculates:
Net Profit Margin = (Net Income / Revenue) × 100
Plots the NPM% as a line chart.
Background turns green when margin is positive and red when negative.
Shows the latest NPM value in a small info table on the chart.
Purpose:
Helps you quickly see whether a company is profitable and how its profit margin is trending over time.
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.