EZ_Algo Copyright label
This script overlays a fully adjustable watermark on your chart, featuring:
A bold Main Title (e.g., your brand or name) and Subtitle (e.g., a tagline or ID).
Optional extras like a copyright notice, logo symbol, warning message, and chart info (symbol, timeframe, timestamp, or close price).
A subtle repeating overlay pattern to deter theft.
Flexible positioning, sizing, and color options to match your vib
e
It’s built for traders who want to protect their charts and make them stand out, all in a few clicks.
How to Use It
Add to Chart: Click "Add to Chart" and watch the default watermark appear (e.g., "EZ ALGO" at the top).
Customize It:
Main Title: Set your brand (e.g., "EZ ALGO") under "Main Title". Tweak color, size, and alignment.
Subtitle: Add a tagline (e.g., "Algo Trading") and trader ID (e.g., "@EZ_Algo
") with matching style options.
Text Opacity: Adjust "Text Opacity" in "Appearance" to control title and subtitle transparency (0 = solid, 100 = invisible).
Chart Info: Toggle "Show Chart Info" to display symbol and timestamp, or add "Show Close Price" for extra data.
Extras: Enable "Show Copyright" for a © notice, "Show Logo" for a symbol (e.g., ★), or "Show Warning" to shout "DO NOT COPY".
Overlay Pattern: Turn on "Show Overlay Pattern" to repeat a phrase (e.g., "EZ Algo") across the chart.
Positioning: Pick vertical/horizontal spots (top, middle, bottom; left, center, right) or try "Randomize Main Position" for a surprise placement.
Appearance: Set a "Background Color" and "Background Opacity" for the watermark’s backdrop.
Cell Size: Adjust "Cell Width (%)" and "Cell Height (%)" to resize the watermark (0 = auto-fit).
Apply & Share: Hit "OK" to save settings, then screenshot or share your branded chart with confidence!
Tips
Use a semi-transparent background (e.g., 50 opacity) to keep the chart readable.
Experiment with "Randomize Main Position" for a dynamic look.
Pair a bold logo with a faint overlay pattern for max branding power.
Credits
Inspired by @KristaKT
thanks for the great ideas!
Enjoy marking your charts with flair and protection! Questions? Drop a comment below.
التحليل الأساسي
XAUUSD Correlation IndicatorXAUUSD Correlation Indicator
Questo indicatore per TradingView calcola e visualizza la correlazione tra il prezzo di XAUUSD (oro) e una serie di altri asset finanziari, tra cui valute (EURUSD, AUDUSD, NZDUSD, GBPUSD), metalli preziosi (platino, argento), indici azionari (SPX500, DJI, NASDAQ) e il dollaro statunitense (DXY).
L'indicatore offre:
1. Correlazione: Calcola la correlazione tra XAUUSD e gli altri asset su un periodo personalizzabile, dove un numero superiore allo 0 indica una correlazione positiva ed un numero inferiore allo 0 indica una correlazione negativa.
2. Variazione percentuale: Mostra la variazione percentuale dei prezzi degli asset rispetto all'apertura.
3. Visualizzazione personalizzabile: Permette di ordinare i dati in base alla correlazione o alla variazione percentuale.
4. Tabella interattiva: I risultati sono visualizzati in una tabella colorata, con opzioni per personalizzare i colori di sfondo, testo e bordi.
Ideale per trader e analisti che vogliono monitorare le relazioni tra l'oro e altri mercati in tempo reale, questo strumento aiuta a identificare opportunità di trading basate su correlazioni e tendenze di mercato.
RSI + Stochastic + WMA StrategyThis script is designed for TradingView and serves as a trading strategy (not just a visual indicator). It's intended for backtesting, strategy optimization, or live trading signal generation using a combination of popular technical indicators.
📊 Indicators Used in the Strategy:
Indicator Description
RSI (Relative Strength Index) Measures momentum; identifies overbought (>70) or oversold (<30) conditions.
Stochastic Oscillator (%K & %D) Detects momentum reversal points via crossovers. Useful for timing entries.
WMA (Weighted Moving Average) Identifies the trend direction (used as a trend filter).
📈 Trading Logic / Strategy Rules:
📌 Long Entry Condition (Buy Signal):
All 3 conditions must be true:
RSI is Oversold → RSI < 30
Stochastic Crossover Upward → %K crosses above %D
Price is above WMA → Confirms uptrend direction
👉 Interpretation: Market was oversold, momentum is turning up, and price confirms uptrend — bullish entry.
📌 Short Entry Condition (Sell Signal):
All 3 conditions must be true:
RSI is Overbought → RSI > 70
Stochastic Crossover Downward → %K crosses below %D
Price is below WMA → Confirms downtrend direction
👉 Interpretation: Market is overbought, momentum is turning down, and price confirms downtrend — bearish entry.
🔄 Strategy Execution (Backtesting Logic):
The script uses:
pinescript
Copy
Edit
strategy.entry("LONG", strategy.long)
strategy.entry("SHORT", strategy.short)
These are Pine Script functions to place buy and sell orders automatically when the above conditions are met. This allows you to:
Backtest the strategy
Measure win/loss ratio, drawdown, and profitability
Optimize indicator settings using TradingView Strategy Tester
📊 Visual Aids (Charts):
Plots WMA Line: Orange line for trend direction
Overbought/Oversold Zones: Horizontal lines at 70 (red) and 30 (green) for RSI visualization
⚡ Strategy Type Summary:
Category Setting
Strategy Type Momentum Reversal + Trend Filter
Timeframe Flexible (Works best on 1H, 4H, Daily)
Trading Style Swing/Intraday
Risk Profile Medium to High (due to momentum triggers)
Uses Leverage Possible (adjust risk accordingly)
Basit Trend Indikatörüpro indikatör
indikatörümüz test aşamasındadır.testlerimiz devam etmektedir.tüm sorumluluk size aittir.yatırım tavsiyesi değildir.
indikatör özellikleri;
-önemli göstergeleri birleştirir.
-tabloda trend durumuyla birlikte RSI değeri gözükür.
Enhanced HHLL Time Confirmation with EMAStrong recommendation , remove the green and red circle , or leave it how it is ;)
To be used on 1 minute chart MSTR , Stock
other time frames are good , ;)
How to Use
HHLL Signals: Look for green triangles (buy) below bars or red triangles (sell) above bars to identify confirmed HH/LL setups with trend alignment.
EMA Signals: Watch for lime circles (buy) below bars or maroon circles (sell) above bars when price crosses the EMA 400 in a trending market.
Trend Context: Use the EMA 400 as a dynamic support/resistance level and the SMA trend filter to gauge market direction.
Enable alerts to get notified of signals in real-time.
Best Practices
Adjust the Lookback Period and Confirmation Minutes to suit your timeframe (e.g., shorter for scalping, longer for swing trading).
Combine with other indicators (e.g., volume, RSI) for additional confirmation.
Test on your preferred market and timeframe to optimize settings.
Indicator Description: Enhanced HHLL Time Confirmation with EMA
Overview
The "Enhanced HHLL Time Confirmation with EMA" is a versatile trading indicator designed to identify key reversal and continuation signals based on Higher Highs (HH), Lower Lows (LL), and a 400-period Exponential Moving Average (EMA). It incorporates time-based confirmation and trend filters to reduce noise and improve signal reliability. This indicator is ideal for traders looking to spot trend shifts or confirm momentum with a combination of price structure and moving average crossovers.
Key Features
Higher High / Lower Low Detection:
Identifies HH and LL based on a customizable lookback period (default: 30 bars).
Signals are confirmed only after a user-defined time period (in minutes, default: 60) has passed since the last HH or LL, ensuring stability.
Trend Filter:
Uses a fast (10-period) and slow (30-period) Simple Moving Average (SMA) crossover to confirm bullish or bearish trends.
Buy signals require a bullish trend (Fast SMA > Slow SMA), and sell signals require a bearish trend (Fast SMA < Slow SMA).
EMA 400 Integration:
Plots a 400-period EMA (customizable) as a long-term trend reference.
Generates additional buy/sell signals when price crosses above (buy) or below (sell) the EMA 400, filtered by trend direction.
Visualizations:
Optional dashed lines for HH and LL levels (toggleable).
Debug markers (diamonds) to visualize HH/LL detection points.
Distinct signal shapes: triangles for HHLL signals (green/red) and circles for EMA signals (lime/maroon).
Alerts:
Built-in alert conditions for HHLL Buy/Sell and EMA Buy/Sell signals, making it easy to stay informed of key events.
Input Parameters
Lookback Period (default: 30): Number of bars to look back for HH/LL detection.
Confirmation Minutes (default: 60): Time (in minutes) required to confirm HH/LL signals.
High/Low Source: Select the price source for HH (default: high) and LL (default: low).
Show HH/LL Lines (default: true): Toggle visibility of HH/LL dashed lines.
Show Debug Markers (default: true): Toggle HH/LL detection markers.
EMA Period (default: 400): Adjust the EMA length.
Bitcoin MVRV Z-Score Indicator### **What This Script Does (In Plain English)**
Imagine Bitcoin has a "fair price" based on what people *actually paid* for it (called the **Realized Value**). This script tells you if Bitcoin is currently **overpriced** or **underpriced** compared to that fair price, using math.
---
### **How It Works (Like a Car Dashboard)**
1. **The Speedometer (Z-Score Line)**
- The blue line (**Z-Score**) acts like a speedometer for Bitcoin’s price:
- **Above Red Line** → Bitcoin is "speeding" (overpriced).
- **Below Green Line** → Bitcoin is "parked" (underpriced).
2. **The Warning Lights (Colors)**
- **Red Background**: "Slow down!" – Bitcoin might be too expensive.
- **Green Background**: "Time to fuel up!" – Bitcoin might be a bargain.
3. **The Alarms (Alerts)**
- Your phone buzzes when:
- Green light turns on → "Buy opportunity!"
- Red light turns on → "Be careful – might be time to sell!"
---
### **Real-Life Example**
- **2021 Bitcoin Crash**:
- The red light turned on when Bitcoin hit $60,000+ (Z-Score >7).
- A few months later, Bitcoin crashed to $30,000.
- **2023 Rally**:
- The green light turned on when Bitcoin was around $20,000 (Z-Score <0.1).
- Bitcoin later rallied to $35,000.
---
### **How to Use It (3 Simple Steps)**
1. **Look at the Blue Line**:
- If it’s **rising toward the red zone**, Bitcoin is getting expensive.
- If it’s **falling toward the green zone**, Bitcoin is getting cheap.
2. **Check the Colors**:
- Trade carefully when the background is **red**.
- Look for buying chances when it’s **green**.
3. **Set Alerts**:
- Get notified when Bitcoin enters "cheap" or "expensive" zones.
---
### **Important Notes**
- **Not Magic**: This tool helps spot trends but isn’t perfect. Always combine it with other indicators.
- **Best for Bitcoin**: Works great for Bitcoin, not as well for altcoins.
- **Long-Term Focus**: Signals work best over months/years, not hours.
---
Think of it as a **thermometer for Bitcoin’s price fever** – it tells you when the market is "hot" or "cold." 🔥❄️
Global M2 Money Supply (USD) GrowthThe Global M2 Growth indicator evaluates the total liquid money supply, including cash, checking deposits, and assets that can be easily converted to cash. It reflects changes in global liquidity by tracking year-on-year (YoY) changes in the Global M2 money supply rather than its absolute value. This approach highlights the velocity of liquidity expansion or contraction, offering a clearer understanding of its correlation with asset performance, such as Bitcoin.
How It Works
When the Global M2 money supply expands, it reflects an increase in available liquidity. This often leads to an influx of capital into higher-yielding and riskier assets like Bitcoin, equities, and commodities. Conversely, when M2 contracts, liquidity tightens, leading to declines in the values of these assets.
An essential insight is that Bitcoin's price is not immediately affected by changes in M2. Research shows a lag of approximately 56-60 days (around two months) between liquidity changes and Bitcoin's price movements. Shifting the liquidity data forward by this period improves the correlation between Global M2 and Bitcoin performance.
How to Use
Track Global M2 YoY Change: Focus on liquidity's yearly change to identify trends. Rapid increases in liquidity often signify favorable conditions for Bitcoin and other risk assets to rise, while contractions often predict price declines or consolidation phases.
Account for the Lag Effect: Incorporate the two-month lag into your analysis to predict Bitcoin's potential moves more accurately. For instance, a recent resurgence in liquidity growth could signal a Bitcoin rally within the next two months.
Use as a Macro Indicator: Monitor liquidity trends alongside other economic indicators and asset performance metrics to build a more comprehensive investment framework.
By tracking these dynamics, traders and investors can better anticipate Bitcoin's trajectory and make informed decisions.
Binance Leveraged Liquidations ApproximationBinance Leveraged Liquidations Approximation (BLLA)
The Binance Leveraged Liquidations Approximation (BLLA) indicator is a tool designed to estimate liquidation levels for leveraged trading on Binance. It calculates the approximate prices at which liquidations could occur for long and short positions, based on the entry price and leverage levels selected by the user.
Key Features:
Liquidation Level Calculation:
Estimates liquidation prices for multiple leverage levels (e.g., 20x, 10x, 5x, etc.).
Supports both long and short positions.
Customization:
Allows the user to manually input the entry price or automatically calculate it as the midpoint between the low and high of a defined period.
Leverage levels are configurable, enabling the indicator to adapt to different trading strategies.
Clear Visualization:
Displays liquidation levels directly on the chart, with labels indicating the corresponding leverage.
Uses distinct colors for long positions (yellow) and short positions (blue).
Recommended Use:
Risk Management: Helps identify liquidation levels to adjust stop-loss orders and manage risk in leveraged trading.
Market Analysis: Provides a quick overview of key levels where significant price movements might occur due to mass liquidations.
Settings:
Entry Price: Enter manually or leave at 0.0 to calculate automatically.
Leverage: Configure desired leverage levels (e.g., 20x, 10x, 5x, etc.).
Transparency and Display: Adjust the transparency of the lines and the number of bars displayed.
Quick Instructions:
Add the indicator to your chart.
Enter the entry price or leave it at 0.0 to calculate automatically.
Configure leverage levels according to your strategy.
Observe liquidation levels on the chart and use them to manage your risk.
Note:
This indicator is an approximation and does not guarantee absolute accuracy of liquidation levels, as these may vary depending on market conditions and exchange policies.
Quantitative Easing and Tightening PeriodsQuantitative Easing (QE) and Quantitative Tightening (QT) periods based on historical events from the Federal Reserve:
Quantitative Easing (QE) Periods:
QE1:
Start: November 25, 2008
End: March 31, 2010
Description: The Federal Reserve initiated QE1 in response to the financial crisis, purchasing mortgage-backed securities and Treasuries.
QE2:
Start: November 3, 2010
End: June 29, 2011
Description: QE2 involved the purchase of $600 billion in U.S. Treasury bonds to further stimulate the economy.
QE3:
Start: September 13, 2012
End: October 29, 2014
Description: QE3 was an open-ended bond-buying program with monthly purchases of $85 billion in Treasuries and mortgage-backed securities.
QE4 (COVID-19 Pandemic Response):
Start: March 15, 2020
End: March 10, 2022
Description: The Federal Reserve engaged in QE4 in response to the economic impact of the COVID-19 pandemic, purchasing Treasuries and MBS in an effort to provide liquidity.
Quantitative Tightening (QT) Periods:
QT1:
Start: October 1, 2017
End: August 1, 2019
Description: The Federal Reserve began shrinking its balance sheet in 2017, gradually reducing its holdings of U.S. Treasuries and mortgage-backed securities. This period ended in August 2019 when the Fed decided to stop reducing its balance sheet.
QT2:
Start: June 1, 2022
End: Ongoing (as of March 2025)
Description: The Federal Reserve started QT again in June 2022, reducing its holdings of U.S. Treasuries and MBS in response to rising inflation. The Fed has continued this tightening cycle.
These periods are key moments in U.S. monetary policy, where the Fed either injected liquidity into the economy (QE) or reduced its balance sheet by not reinvesting maturing securities (QT). The exact dates and nature of these policies may vary based on interpretation and adjustments to the Fed's actions during those times.
Liquidity Channels [TFO]1. Indicator Declaration:
indicator("Liquidity Channels ", "Liquidity Channels ", true, max_lines_count = 500)
This defines the name of the indicator as "Liquidity Channels " and sets the maximum number of lines to 500.
2. Input Variables:
bsl_color & ssl_color: These allow you to set the colors for bullish (liquidity highs) and bearish (liquidity lows) levels.
ps: Defines the "Liquidity Strength," i.e., how many bars to the left and right should the local high/low be valid for liquidity.
exag: Controls the size of the expanding channels. Higher values make the liquidity levels grow more.
del_untouched, del_after: Options to delete liquidity levels that were never traded through after a certain number of bars.
hide_channel: If true, hides the expanding channels.
line_style, line_width: Customizes the line style and width for the liquidity levels.
3. ATR Calculation:
atr = ta.atr(100) / 1000: This calculates the Average True Range (ATR) for 100 bars and scales it down.
4. Line Style Logic:
The switch statement assigns a line style based on the input (Solid, Dashed, Dotted).
5. Liquidity Type (liq):
liq is a custom type that holds:
price: Array of liquidity prices.
idx: Array of the bar index for each liquidity level.
diag: Array for diagonal lines showing channel growth.
hrz: Array for horizontal lines showing liquidity levels.
6. Methods:
add_liq: Adds a new liquidity level by saving the price and index, drawing a horizontal line at the liquidity price, and optionally adding a diagonal line showing channel expansion.
del_liq: Deletes a liquidity level by removing the price, index, and line (horizontal and diagonal).
update_liq: Updates the liquidity levels, extending the lines to the current bar index. If the liquidity level is outdated (based on the del_after setting) or the price is breached, it deletes the level.
7. Pivot Detection:
piv_hi: Detects if there is a pivot high (local high) based on the liquidity strength.
piv_lo: Detects if there is a pivot low (local low) based on the liquidity strength.
8. Logic for Adding Liquidity Levels:
If a pivot high (piv_hi) is detected, it adds a liquidity level at the high of that pivot using BSL.add_liq().
If a pivot low (piv_lo) is detected, it adds a liquidity level at the low of that pivot using SSL.add_liq().
9. Update Liquidity Levels:
The script calls BSL.update_liq(true) for bullish liquidity levels and SSL.update_liq(false) for bearish liquidity levels to update and possibly remove old or breached liquidity levels.
How to Use:
The script automatically identifies and plots liquidity levels (highs and lows) based on the price action.
You can customize the strength of liquidity, the appearance of lines, and how long the liquidity levels remain visible.
The expanding channel lines show how liquidity levels grow over time, providing dynamic visual references.
Important Notes:
You can adjust the ps parameter to control how many bars to the left and right must be higher or lower than the current bar for the level to be considered valid.
The exag parameter allows you to control how much the channel expands.
Liquidity levels that are never traded through can be automatically deleted after a specific period.
This script can be useful for traders looking to identify liquidity areas that could act as support/resistance or where price might react.
MK FractalsFraktal Indikator wo die von den Fraktalen jeweils Linien gezogen werden, bis zu von einer Kerze gekreuzt/rausgenommen wird. Hier werden die Linien der rausgenommenen Fraktale gelöscht.
Volume Profilei added color choosing function for Volume Profile indicator, the code is based on kv4coins.
You can choose the color for different region of the volume distribution for better visualization!!
M2 Global Liquidity Index - 10 Week Lead
M2 Global Liquidity Index - Forward Projection (10 Weeks)
This indicator provides a 10-week forward projection of the M2 Global Liquidity Index, offering traders insight into potential future market conditions based on global money supply trends.
What This Indicator Shows
The M2 Global Liquidity Index aggregates M2 money stock data from five major economies:
- China (CNY)
- United States (USD)
- European Union (EUR)
- Japan (JPY)
- Great Britain (GBP)
All values are converted to USD and presented as a unified global liquidity metric, providing a comprehensive view of worldwide monetary conditions.
Forward Projection Feature
This adaptation displays the indicator 10 weeks ahead of the current price, allowing you to visualize potential future liquidity conditions that might influence market behavior. The projection maintains data integrity while providing an advanced view of the liquidity landscape.
Trading Applications
- Anticipate potential market reactions to changing global liquidity conditions
- Identify divergences between projected liquidity and current price action
- Develop longer-term strategic positions based on forward liquidity projections
- Enhance your macro-economic analysis toolkit
Credit
This indicator is an adaptation of the original "M2 Global Liquidity Index" created by Mik3Christ3ns3n. Full credit for the original concept and implementation goes to the original author. This version simply adds a 10-week forward projection to the existing calculations.
Disclaimer
This indicator is for informational purposes only and should be used as one of many tools in your analysis. Past performance and projections are not guarantees of future results.
FinFluential Global M2 Money Supply // Days Offset =The "Global M2 Money Supply" indicator calculates and visualizes the combined M2 money supply from multiple countries and regions worldwide, expressed in trillions of USD.
M2 is a measure of the money supply that includes cash, checking deposits, and easily convertible near-money assets. This indicator aggregates daily M2 data from various economies, converts them into a common USD base using forex exchange rates, and plots the total as a single line on the chart.
It is designed as an overlay indicator aligned to the right scale, making it ideal for comparing global money supply trends with price action or other market data.
Key Features
Customizable Time Offset: Users can adjust the number of days to shift the M2 data forward or backward (from -1000 to +1000 days) via the indicator settings. This allows for alignment with historical events or forward-looking analysis.
Global Coverage Includes:
Eurozone: Eurozone M2 (converted via EUR/USD)
North America: United States, Canada
Non-EU Europe: Switzerland, United Kingdom, Finland, Russia
Pacific: New Zealand
Asia: China, Taiwan, Hong Kong, India, Japan, Philippines, Singapore
Latin America: Brazil, Colombia, Mexico
Middle East: United Arab Emirates, Turkey
Africa: South Africa
Cash Flow YieldsCash Flow Yields Indicator
This indicator offers a straightforward way to visualize a company’s cash flow metrics—Free Cash Flow (FCF), Operating Cash Flow (OCF), and Capital Expenditures (CapEx)—as yields relative to its market capitalization. With the flexibility to switch between Trailing Twelve Months (TTM) and Quarterly data, it’s perfect for spotting financial efficiency trends at a glance. Values are plotted as dynamic lines with smart color coding and labeled for clarity.
Features:
TTM & Quarterly Data: Toggle between financial periods to suit your analysis.
Color-Coded Lines: Green for positive OCF, teal for positive FCF, and blue for CapEx. Red and maroon kick in when values turn negative.
Yield Perspective: See FCF, OCF, and CapEx as percentages of market cap, making it easy to compare cash flow strength across companies.
Clear Labels: The latest values pop up on the chart, positioned to the right of the last bar.
Simple & Intuitive: No clutter - just clean lines and numbers to help you focus on what matters.
To use it, add it to your chart and toggle between TTM or Quarterly to see trends. FCF should roughly equal OCF minus CapEx. Adjust your view to focus on companies with strong FCF yields for potential opportunities.
This indicator is freely available and open-source on TradingView for everyone to use. Enjoy!
EMA Ribbon with 100 MA BY TIJUThe EMA Ribbon with 100 MA is a powerful and visually intuitive indicator designed to help traders identify trends, momentum, and potential support/resistance levels using multiple Exponential Moving Averages (EMAs). By plotting a series of EMAs with varying periods, the script creates a "ribbon" effect on the chart, making it easier to spot trend direction and strength at a glance.
Key Features:
Multiple EMAs for Trend Analysis:
The script plots 8 EMAs with periods ranging from 20 to 55, creating a gradient ribbon effect.
The 100-period EMA is added as a thick blue line, acting as a key level for long-term trend analysis.
Customizable Periods:
Each EMA period is fully customizable, allowing traders to tailor the indicator to their preferred trading style and timeframe.
Visual Clarity:
The EMAs are color-coded, making it easy to distinguish between different periods and identify the overall trend direction.
Dynamic Support/Resistance:
The EMAs act as dynamic support and resistance levels, helping traders identify potential entry and exit points.
Drop Candles Feature:
The script includes an option to drop the first N candles, ensuring cleaner calculations and avoiding false signals during the initial periods.
How to Use:
Trend Identification:
Uptrend: When the shorter-period EMAs are stacked above the longer-period EMAs, it indicates a strong uptrend.
Downtrend: When the longer-period EMAs are stacked above the shorter-period EMAs, it indicates a strong downtrend.
Consolidation: When the EMAs are intertwined, it suggests a sideways or weak trend.
Support/Resistance Levels:
Use the EMAs as dynamic support/resistance levels. For example, in an uptrend, the price may bounce off the lower EMAs.
100-Period EMA:
The 100-period EMA (thick blue line) acts as a key level for long-term trend analysis. A price above this line suggests a bullish bias, while a price below suggests a bearish bias.
Customization:
Adjust the EMA periods and colors to suit your trading strategy.
Use the Drop first N candles option to avoid false signals during the initial periods.
Example Use Cases:
Trend Following:
Enter long positions when the price is above the EMA ribbon and the EMAs are stacked in an uptrend.
Enter short positions when the price is below the EMA ribbon and the EMAs are stacked in a downtrend.
Dynamic Support/Resistance:
Use the EMAs as dynamic support/resistance levels for setting stop-loss or take-profit targets.
Confirmation Tool:
Combine the EMA Ribbon with other indicators (e.g., RSI, MACD) to confirm trade signals.
Settings:
MA-1 to MA-8 Periods: Adjust the periods for the 8 EMAs (default: 20, 25, 30, 35, 40, 45, 50, 55).
MA-100 Period: Adjust the period for the 100 EMA (default: 100).
Source: Choose the price source for the EMAs (default: Close).
Drop First N Candles: Drop the first N candles to avoid false signals (default: 1).
Why Use EMA Ribbon ?
Versatility: Suitable for all trading styles (scalping, day trading, swing trading) and timeframes.
Visual Appeal: The color-coded ribbon makes it easy to interpret the trend at a glance.
Customizable: Tailor the indicator to your specific trading strategy.
Dynamic Levels: Use the EMAs as dynamic support/resistance levels for better risk management.
Enhanced Doji Candle StrategyYour trading strategy is a Doji Candlestick Reversal Strategy designed to identify potential market reversals using Doji candlestick patterns. These candles indicate indecision in the market, and when detected, your strategy uses a Simple Moving Average (SMA) with a short period of 20 to confirm the overall market trend. If the price is above the SMA, the trend is considered bullish; if it's below, the trend is bearish.
Once a Doji is detected, the strategy waits for one or two consecutive confirmation candles that align with the market trend. For a bullish confirmation, the candles must close higher than their opening price without significant bottom wicks. Conversely, for a bearish confirmation, the candles must close lower without noticeable top wicks. When these conditions are met, a trade is entered at the market price.
The risk management aspect of your strategy is clearly defined. A stop loss is automatically placed at the nearest recent swing high or low, with a tighter distance of 5 pips to allow for more trading opportunities. A take-profit level is set using a 2:1 reward-to-risk ratio, meaning the potential reward is twice the size of the risk on each trade.
Additionally, the strategy incorporates an early exit mechanism. If a reversal Doji forms in the opposite direction of your trade, the position is closed immediately to minimize losses. This strategy has been optimized to increase trade frequency by loosening the strictness of Doji detection and confirmation conditions while still maintaining sound risk management principles.
The strategy is coded in Pine Script for use on TradingView and uses built-in indicators like the SMA for trend detection. You also have flexible parameters to adjust risk levels, take-profit targets, and stop-loss placements, allowing you to tailor the strategy to different market conditions.
Stock Earnings Viewer for Pine ScreenerThe script, titled "Stock Earnings Viewer with Surprise", fetches actual and estimated earnings, calculates absolute and percent surprise values, and presents them for analysis. It is intended to use in Pine Screener, as on chart it is redundant.
How to Apply to Pine Screener
Favorite this script
Open pine screener www.tradingview.com
Select "Stock Earnings Viewer with Surprise" in "Choose indicator"
Click "Scan"
Data
Actual Earnings: The reported earnings per share (EPS) for the stock, sourced via request.earnings().
Estimated Earnings: Analyst-predicted EPS, accessed with field=earnings.estimate.
Absolute Surprise: The difference between actual and estimated earnings (e.g., actual 1.2 - estimated 1.0 = 0.2).
Percent Surprise (%): The absolute surprise as a percentage of estimated earnings (e.g., (0.2 / 1.0) * 100 = 20%). Note: This may return NaN or infinity if estimated earnings are zero, due to division by zero.
Practical Use
This screener script allows users to filter stocks based on earnings metrics. For example, you could screen for stocks where Percent Surprise > 15 to find companies exceeding analyst expectations significantly, or use Absolute Surprise < -0.5 to identify underperformers.
EPS Line Indicator - cristianhkrOverview
The EPS Line Indicator displays the Earnings Per Share (EPS) of a publicly traded company directly on a TradingView chart. It provides a historical trend of EPS over time, allowing investors to track a company's profitability per share.
Key Features
📊 Plots actual EPS data for the selected stock.
📅 Updates quarterly as new EPS reports are released.
🔄 Smooths missing values by holding the last reported EPS.
🔍 Helps track long-term profitability trends.
How It Works
The script retrieves quarterly EPS using request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE", "Q", barmerge.gaps_off).
If EPS data is missing for a given period, the last available EPS value is retained to maintain continuity.
The EPS values are plotted as a continuous green line on the chart.
A baseline at EPS = 0 is included to easily identify profitable vs. loss-making periods.
How to Use This Indicator
If the EPS line is trending upwards 📈 → The company is growing earnings per share, a strong sign of profitability.
If the EPS line is declining 📉 → The company’s EPS is shrinking, which may indicate financial weakness.
If EPS is negative (below zero) ❌ → The company is reporting losses per share, which can be a warning sign.
Limitations
Only works with stocks that report EPS data (not applicable to cryptocurrencies or commodities).
Does not adjust for stock splits or other corporate actions.
Best used on daily, weekly, or monthly charts for clear earnings trends.
Conclusion
This indicator is a powerful tool for investors who want to visualize earnings per share trends directly on a price chart. By showing how EPS evolves over time, it helps assess a company's profitability trajectory, making it useful for both fundamental analysis and long-term investing.
🚀 Use this indicator to track EPS growth and make smarter investment decisions!
CAPE / Shiller PE Ratio - cristianhkrThe Cyclically Adjusted Price-to-Earnings Ratio (CAPE Ratio), also known as the Shiller P/E Ratio, is a long-term valuation measure for stocks. It was developed by Robert Shiller and smooths out earnings fluctuations by using an inflation-adjusted average of the last 10 years of earnings.
This TradingView Pine Script indicator calculates the CAPE Ratio for a specific stock by:
Fetching historical Earnings Per Share (EPS) data using request.earnings().
Adjusting the EPS for inflation by dividing it by the Consumer Price Index (CPI).
Computing the 10-year (40-quarter) moving average of the inflation-adjusted EPS.
Calculating the CAPE Ratio as (Stock Price) / (10-year Average EPS adjusted for inflation).
Plotting the CAPE Ratio on the chart with a reference line at CAPE = 20, a historically significant threshold.
Revenue & Net IncomeRevenue & Net Income Indicator
This indicator provides a clear visual representation of a company's revenue and net income, with the flexibility to switch between Trailing Twelve Months (TTM) and Quarterly data. Values are automatically converted into billions and displayed in both an area chart and a dynamic table.
Features:
TTM & Quarterly Data: Easily toggle between financial periods.
Intuitive Visuals: Semi-transparent area charts make trends easy to spot.
Smart Number Formatting: Revenue below 1B is shown with two decimals (e.g., "0.85B"), while larger values use one decimal (e.g., "1.2B").
Customizable Table: Displays the most recent revenue and net income figures, with adjustable position and text size.
Light Mode: Switch table text to black with a white header for better readability on light backgrounds.
This indicator is freely available and open-source on TradingView for all. It is designed to help traders enhance their market analysis and strategic decision-making.
Trading Sessions Background ColorTrading Sessions Background Color
This indicator provides a visual representation of the major trading sessions — Asia, London, and USA — by applying distinct background colors to the chart. It allows traders to easily identify active market hours and session overlaps.
Features:
Customizable Sessions: Users can modify time ranges, and colors according to their preferences.
Predefined Major Trading Sessions: The indicator includes Asia, London, and USA sessions by default.
Time Zone Adjustment: A configurable UTC offset ensures accurate session display.
Clear Visual Differentiation: Background colors indicate when each session is active.
Usage Instructions:
Apply the indicator to a TradingView chart.
Adjust session settings and time zone offset as needed.
The chart background will update dynamically to reflect the active trading session.
Monthly Buy IndicatorIt shows us the the total balance when buying monthly, ploting the total invested amount and total current balance along the time.
Opening the Data Window, it displays the profit (%) and the number of trades.
The "Allow Fractional Purchase" flag can be used to check the the performance of the ticker, disregarding how much the monthly amount is set vs the price of the ticker.
The trades are considering buying the available amount on the 1st candle of each month, at the Open price. The "Total Balance" considers the close price of each candle.