MarketSurge EPS Line [tradeviZion]MarketSurge EPS Line
EPS trend line overlay for TradingView charts, inspired by the IBD MarketSurge (formerly MarketSmith) EPS line style.
Comparison: Left side shows IBD MarketSurge EPS line as reference. Right side shows this TradingView script producing similar output with interactive tooltips. The left side image is for reference only to demonstrate similarity - it is not part of the TradingView script.
Features:
Displays EPS trend line on price charts
Uses 4-quarter earnings moving average
Shows earnings momentum over time
Works with actual, estimated, or standardized earnings data
Customizable line color and width
Interactive tooltips with detailed earnings information
Custom symbol analysis support
How to Use:
Add script to chart
EPS line appears automatically
Adjust color and width in settings if needed
Hover over line for earnings details
Settings Explained:
Display Settings:
Show EPS Line: Toggle to show or hide the EPS trend line
EPS Line Color: Choose the color for the EPS trend line and labels
EPS Line Width: Adjust the thickness of the EPS trend line (1-5 pixels)
Symbol Settings:
By default, the indicator analyzes the EPS data for the symbol currently displayed on your chart. The Custom Symbol feature allows you to:
Analyze EPS data for a different symbol without changing your chart
Compare earnings trends of related stocks or competitors
View EPS data for one symbol while analyzing price action of another
To use Custom Symbol:
Enable "Use Custom Symbol" checkbox
Click on "Custom Symbol" field to open TradingView's symbol picker
Search and select the symbol you want to analyze
The indicator will fetch and display EPS data for the selected symbol
Note: The chart will still show price action for your current symbol, but the EPS line will reflect the custom symbol's earnings data.
Data Settings:
EPS Field: Choose which earnings data source to use:
Actual Earnings: Reported earnings from company financial statements (default). Use this to analyze historical performance based on what companies actually reported.
Estimated Earnings: Analyst consensus forecasts for future quarters. Use this to see what analysts expect and compare expectations with actual results.
Standardized Earnings: Earnings adjusted for comparability across companies. Use this when comparing multiple stocks as it normalizes accounting differences.
Display Scale:
For the indicator to display correctly on the existing chart, it uses its own axis (right scale) by default. However, you can change this, but the view will not look the same. The right scale is recommended for optimal visibility as it allows the EPS line to be clearly visible alongside price action without compression.
Example: EPS line on separate right scale (recommended) - hover over labels to view detailed earnings tooltips
Example: EPS line pinned to Scale A (not recommended - appears as straight line due to small EPS range compared to price)
Example: EPS line displayed in separate pane below price chart
Methodology Credits:
This indicator implements the EPS line visualization methodology developed by Investor's Business Daily (IBD) for their MarketSurge platform (formerly known as MarketSmith). The EPS line concept helps visualize earnings momentum alongside price action, providing a fundamental overlay for technical analysis.
Technical Details:
Designed for daily, weekly, and monthly timeframes
Minimum 4 quarters of earnings data required
Uses TradingView's built-in earnings data
Automatically handles missing or invalid data
This indicator helps you visualize earnings trends alongside price action, providing a fundamental overlay for your technical analysis.
Fundementalanalysis
Relative Volume Index [PhenLabs]Relative Volume Index (RVI)
Version: PineScript™ v6
Description
The Relative Volume Index (RVI) is a sophisticated volume analysis indicator that compares real-time trading volume against historical averages for specific time periods. By analyzing volume patterns and statistical deviations, it helps traders identify unusual market activity and potential trading opportunities. The indicator uses dynamic color visualization and statistical overlays to provide clear, actionable volume analysis.
Components
• Volume Comparison: Real-time volume relative to historical averages
• Statistical Bands: Upper and lower deviation bands showing volume volatility
• Moving Average Line: Smoothed trend of relative volume
• Color Gradient Display: Visual representation of volume strength
• Statistics Dashboard: Real-time metrics and calculations
Usage Guidelines
Volume Strength Analysis:
• Values > 1.0 indicate above-average volume
• Values < 1.0 indicate below-average volume
• Watch for readings above the threshold (default 6.5x) for exceptional volume
Trading Signals:
• Strong volume confirms price moves
• Divergences between price and volume suggest potential reversals
• Use extreme readings as potential reversal signals
Optimal Settings:
• Start with default 15-bar lookback for general analysis
• Adjust threshold (6.5x) based on market volatility
• Use with multiple timeframes for confirmation
Best Practices:
• Combine with price action and other indicators
• Monitor deviation bands for volatility expansion
• Use the statistics panel for precise readings
• Pay attention to color gradients for quick assessment
Limitations
• Requires quality volume data for accurate calculations
• May produce false signals during pre/post market hours
• Historical comparisons may be skewed during unusual market conditions
• Best suited for liquid markets with consistent volume patterns
Note: For optimal results, use in conjunction with price action analysis and other technical indicators. The indicator performs best during regular market hours on liquid instruments.
Financial Ratios Fundamental StrategyWhat are financial ratios?
Financial ratios are basic calculations using quantitative data from a company’s financial statements. They are used to get insights and important information on the company’s performance, profitability, and financial health.
Common financial ratios come from a company’s balance sheet, income statement, and cash flow statement.
Businesses use financial ratios to determine liquidity, debt concentration, growth, profitability, and market value.
The common financial ratios every business should track are
1) liquidity ratios
2) leverage ratios
3)efficiency ratio
4) profitability ratios
5) market value ratios.
Initially I had a big list of 20 different ratios for testing, but in the end I decided to stick for the strategy with these ones :
Current ratio: Current Assets / Current Liabilities
The current ratio measures how a business’s current assets, such as cash, cash equivalents, accounts receivable, and inventories, are used to settle current liabilities such as accounts payable.
Interest coverage ratio: EBIT / Interest expenses
Companies generally pay interest on corporate debt. The interest coverage ratio shows if a company’s revenue after operating expenses can cover interest liabilities.
Payables turnover ratio: Cost of Goods sold (or net credit purchases) / Average Accounts Payable
The payables turnover ratio calculates how quickly a business pays its suppliers and creditors.
Gross margin: Gross profit / Net sales
The gross margin ratio measures how much profit a business makes after the cost of goods and services compared to net sales.
With this data, I have created the long and long exit strategy:
For long, if any of the 4 listed ratios,such as current ratio or interest coverage ratio or payable turn ratio or gross margin ratio is ascending after a quarter, its a potential long entry.
For example in january the gross margin ratio is at 10% and in april is at 15%, this is an increase from a quarter to another, so it will get a long entry trigger.
The same could happen if any of the 4 listed ratios follow the ascending condition since they are all treated equally as important
For exit, if any of the 4 listed ratios are descending after a quarter, such as current ratio or interest coverage ratio or payable turn ratio or gross margin ratio is descending after a quarter, its a potential long exit.
For example in april we entered a long trade, and in july data from gross margin comes as 12% .
In this case it fell down from 15% to 12%, triggering an exit for our trade.
However there is a special case with this strategy, in order to make it more re active and make use of the compound effect:
So lets say on july 1 when the data came in, the gross margin data came descending (indicating an exit for the long trade), however at the same the interest coverage ratio came as positive, or any of the other 3 left ratios left . In that case the next day after the trade closed, it will enter a new long position and wait again until a new quarter data for the financial is being published.
Regarding the guidelines of tradingview, they recommend to have more than 100 trades.
With this type of strategy, using Daily timeframe and data from financials coming each quarter(4 times a year), we only have the financial data available since 2016, so that makes 28 quarters of data, making a maximum potential of 28 trades.
This can however be "bypassed" to check the integrity of the strategy and its edge, by taking for example multiple stocks and test them in a row, for example, appl, msft, goog, brk and so on, and you can see the correlation between them all.
At the same time I have to say that this strategy is more as an educational one since it miss a risk management and other additional filters to make it more adapted for real live trading, and instead serves as a guiding tool for those that want to make use of fundamentals in their trades
If you have any questions, please let me know !


