Indicatori e strategie
Daily Levels/IndiaVixThis Indicator draws daily, weekly and monthly levels based on the IndiaVix value.
This indicator is dynamic and will automatically draw the levels on any script selected in the chart.
NOTE:
- IndiaVix value must be updated manually in the indicator's settings
- It draws new levels for the current day only after market opens at 9:15 AM.
- Otherwise it shows levels for yesterday only.
Real Cumulative Delta VolumeReal Cumulative Delta Volume (CDV) - Enhanced Volume Flow Analysis
What This Indicator Does
This indicator calculates cumulative delta volume using an enhanced approximation methodology that analyzes buying and selling pressure within each candlestick. It provides traders with insights into volume flow dynamics by tracking the cumulative difference between estimated buy and sell volumes over time.
Technical Methodology & Calculation Details
Volume Distribution Algorithm: The indicator uses a price-weighted distribution method to estimate buy and sell volumes within each bar:
Delta multiplier = (close - low) / (high - low)
Buy volume = total volume × delta multiplier
Sell volume = total volume × (1 - delta multiplier)
Net delta = buy volume - sell volume
Cumulative Delta Tracking: Unlike basic volume indicators, this approach maintains a running cumulative total of net delta values:
CDV Open = Previous CDV Close
CDV Close = Previous CDV Close + Net Delta
CDV High/Low = Previous CDV Close + estimated intrabar extremes
Enhanced Features Beyond Standard CDV:
Divergence Detection: Automatically identifies when price direction conflicts with volume flow direction
Body Size Analysis: Compares current vs previous CDV candle body sizes to detect momentum changes
Conditional Color Coding: Special visual alerts when specific price/volume relationships occur
Signal Generation: Buy/sell signals based on divergence resolution patterns
How This Differs from Basic Cumulative Delta
Standard Limitations Addressed:
Most cumulative delta indicators on TradingView use simple uptick/downtick classification. This indicator enhances the approach by:
Price-Weighted Distribution: Instead of assuming 50/50 volume splits, uses the bar's price action (close relative to high/low) to estimate volume distribution
OHLC Representation: Displays CDV as candlesticks rather than just a line, showing intrabar volume dynamics
Integrated Divergence Detection: Built-in algorithms identify price/volume conflicts automatically
Advanced Signal Logic: Multi-condition signal generation beyond simple crossovers
Visual Enhancement Features:
Dual display modes (candlestick or line)
Special color coding for divergence conditions
Moving average overlays for trend confirmation
Optional buy/sell signal markers
Signal Generation Logic
Buy Signals Generated When:
Previous bar showed bearish divergence (price down, CDV up)
Current CDV candle shows specific color condition
Current CDV body is contained within previous divergence body
Price closes above previous high
Sell Signals Generated When:
Previous bar showed bullish divergence (price up, CDV down)
Current CDV candle shows specific color condition
Current CDV body is contained within previous divergence body
Price closes below previous low
Trading Applications
Volume Flow Analysis:
Identify periods of hidden accumulation or distribution
Spot when large players are buying/selling against the price trend
Confirm trend strength through volume alignment
Divergence Trading:
Early warning system for potential reversals
Identify when price movements lack volume support
Time entries based on divergence resolution
Trend Confirmation:
Use CDV direction to confirm price trend validity
Moving averages on CDV provide additional trend context
Volume momentum changes often precede price momentum shifts
Display Options & Settings
Visual Modes:
Candlestick: Full OHLC representation of cumulative delta
Line: Simplified cumulative line display
Moving Averages:
Optional SMA overlays (default: 50, 200 periods)
Optional EMA overlays (default: 50, 200 periods)
Customizable periods and colors
Signal Controls:
Toggle buy/sell signals on/off independently
Customizable colors for all visual elements
Adjustable transparency and styling options
Usage Guidelines & Limitations
Best Practices:
Most effective on timeframes 15m and higher due to volume data quality
Works best in liquid markets with consistent volume
Should be used alongside price action analysis and support/resistance levels
Signals are more reliable during trending market conditions
Technical Limitations:
Uses approximation methods due to lack of tick-by-tick data in Pine Script
Volume distribution estimates may be less accurate during gaps or low-volume periods
Effectiveness depends on quality of volume data from your broker/exchange
Market Context Considerations:
Less reliable during market holidays or extremely low volume sessions
News events and earnings can cause volume anomalies that affect calculations
Consider market microstructure when interpreting signals on very short timeframes
Important Disclaimers
Educational Purpose: This indicator is designed for educational and analysis purposes. It does not constitute financial or investment advice.
Risk Warning: All trading involves risk of loss. Past performance of any indicator signals does not guarantee future results.
Testing Required: Users should thoroughly backtest and forward test this indicator before using it in live trading. Paper trading is recommended to understand signal behavior.
No Guarantees: The developer makes no claims about profitability or accuracy. Market conditions change and historical effectiveness may not continue.
Proper Usage: This is a technical analysis tool, not a complete trading system. Always use appropriate risk management, position sizing, and combine with other forms of analysis.
Developer: Delta Merge Professional Trading Applications
Access Instructions: Send a private message through TradingView explaining your trading experience and how you plan to use this indicator. Access is provided to traders who demonstrate understanding of volume analysis concepts and proper risk management practices.
EMA/SMA Shading IndicatorEMA / SMA Shading Indicator
This tool plots three moving averages and uses colored shading to visually highlight shifts in momentum:
-Green shading (EMA4 > SMA20) indicates bullish momentum.
-Red shading (EMA4 < SMA20) shows bearish pressure.
-Teal shading (EMA4 > EMA20) suggests strong short-term momentum.
-Maroon shading (EMA4 < EMA20) signals weakness.
🔍 How to Use:
Trade in the direction of the shading.
Watch for color changes as early momentum shift signals.
Combine with price action or volume for confirmation.
Works on all timeframes and asset types. Designed for trend-following and momentum-based strategies.
Mis Tres EMAs PersonalizablesIndicador personalizable con 3 EMA´s. Inicialmente configurado para periodos de 8, 20 y 200.
DP_MoneyFlow_Osc_V4**DP_Moneyflow_Osc_V4** is a custom, volume‐weighted momentum oscillator built around the classic Money Flow Index (MFI), with a few twists to help you spot more reliable reversal points:
***Best way to use it is to take the signals as alert points, to understand when money is starting to flow in or starting to flow out. It is not intended to be a Buy or Sell signal at the point of entry where the label is printed.***
1. **Core Calculation**
* Computes the standard MFI on your chart’s native timeframe:
* Money Flow = typical price (H+L+C)/3 × volume
* Segregates positive vs. negative flow based on whether price rose or fell on each bar
* Smooths each with an N-bar SMA, forms the ratio, and maps it into a 0–100 scale
2. **Inversion & Smoothing**
* You can **invert** the oscillator around 50 (so peaks become troughs and vice versa) with the **Reverse MFI** toggle.
* Applies two layers of smoothing (one for raw noise reduction, another for longer-term trend stability).
3. **Dynamic Coloring**
* Above Overbought (OB) threshold → solid red; below Oversold (OS) → solid green.
* In between, it linearly fades from red/green toward black as it approaches the 50 midpoint.
* **Invert Colors** flips the hue logic (red ↔ green) if you prefer.
4. **Overbought/Oversold Zones**
* Plots horizontal lines at your chosen OB/OS levels.
* Optionally fills the zone between them for quick visual reference.
5. **Peak/Trough Signal Labels**
* Detects **true extremes** by finding when the oscillator reverses direction right at or beyond your OB/OS levels.
* Prints a tiny “OB” or “OS” label **exactly at that pivot bar**, so you see the high or low of the swing.
6. **Alternation Toggle**
* Prevents two consecutive “OS” or “OB” labels by enforcing strict Buy/Sell alternation—turn this on or off via **Enable Signal Alternation**.
---
**Use-Case**: This oscillator excels at pinpointing the *tops* and *bottoms* of strong volume‐backed moves, giving you clear pivot markers rather than every threshold crossover. Tweak the smoothing and threshold inputs to calibrate sensitivity to your market and timeframe.
Contrarian 100 MAPairs nicely with Enhanced-Stock-Ticker-with-50MA-vs-200MA located here:
Description
The Contrarian 100 MA is a sophisticated Pine Script v6 indicator designed for traders seeking to identify key market structure shifts and trend reversals using a combination of a 100-period Simple Moving Average (SMA) envelope and Inner Circle Trader (ICT) Break of Structure (BoS) and Market Structure Shift (MSS) logic. By overlaying a semi-transparent SMA-based shadow on the price chart and plotting bullish and bearish structure signals, this indicator helps traders visualize critical price levels and potential trend changes. It leverages higher timeframe (HTF) pivot points and dynamic logic to adapt to various chart timeframes, making it ideal for swing and contrarian trading strategies. Customizable colors, timeframes, and alert conditions enhance its versatility for manual and automated trading setups.
Key Features
SMA Envelope: Plots a 100-period SMA for high and low prices, creating a semi-transparent (50% opacity) purple shadow to highlight the price range and provide context for price movements.
ICT BoS/MSS Logic: Identifies Break of Structure (BoS) and Market Structure Shift (MSS) signals for both bullish and bearish conditions, based on HTF pivot points.
Dynamic Timeframe Support: Adjusts pivot detection based on user-selected HTF (default: 1D) and chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D), ensuring adaptability across markets.
Visual Signals: Draws dotted lines for BoS (bullish/bearish) and MSS (bullish/bearish) signals at pivot levels, with customizable colors for easy identification.
Contrarian Approach: Signals potential reversals by combining SMA context with ICT structure breaks, ideal for traders looking to capitalize on trend shifts.
Alert Conditions: Supports alerts for bullish/bearish BoS and MSS signals, enabling integration with TradingView’s alert system for automated trading.
Performance Optimization: Uses efficient pivot detection and line management to minimize resource usage while maintaining accuracy.
Technical Details
SMA Calculation:
Computes 100-period SMAs for high (smaHigh) and low (smaLow) prices.
Plots invisible SMAs (fully transparent) and fills the area between them with 50% transparent purple for visual context.
Pivot Detection:
Uses ta.pivothigh and ta.pivotlow to identify HTF swing points, with dynamic lookback periods (rlBars: 5 for daily, 2 for intraday).
Tracks pivot highs (pH, nPh) and lows (pL, nPl) using a custom piv type for price and time.
BoS/MSS Logic:
Bullish BoS: Triggered when price breaks above a pivot high in a bullish trend, drawing a line at the pivot level.
Bearish BoS: Triggered when price breaks below a pivot low in a bearish trend.
Bullish MSS: Occurs when price breaks a pivot high in a bearish trend, signaling a potential trend reversal.
Bearish MSS: Occurs when price breaks a pivot low in a bullish trend.
Lines are drawn using line.new with xloc.bar_time for precise alignment, styled as dotted with customizable colors.
HTF Integration: Fetches HTF close prices and pivot data using request.security with lookahead_on for accurate signal timing.
Line Management: Maintains an array of lines (lin), removing outdated lines when new MSS signals occur to keep the chart clean.
Pivot Reset: Clears broken pivots (e.g., when price exceeds a pivot high or falls below a pivot low) to ensure fresh signal generation.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
SMA Length: Adjust the SMA period (default: 100 bars) to suit your trading style.
Structure Timeframe: Set the HTF for pivot detection (default: 1D).
Chart Timeframe: Select the chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) to adjust pivot sensitivity.
Colors: Customize bullish/bearish BoS and MSS line colors via input settings.
Interpret Signals:
Bullish BoS: White dotted line (default) at a broken pivot high in a bullish trend, indicating trend continuation.
Bearish BoS: White dotted line at a broken pivot low in a bearish trend.
Bullish MSS: White dotted line at a broken pivot high in a bearish trend, suggesting a reversal to bullish.
Bearish MSS: White dotted line at a broken pivot low in a bullish trend, suggesting a reversal to bearish.
Use the SMA shadow to gauge price position within the recent range.
Set Alerts:
Create alerts for bullish/bearish BoS and MSS signals using TradingView’s alert system.
Customize Visuals:
Adjust line colors or SMA fill transparency via TradingView’s settings for better visibility.
Example Use Cases
Swing Trading: Use MSS signals to enter trades at potential trend reversals, with the SMA envelope confirming price extremes.
Contrarian Trading: Capitalize on BoS and MSS signals to trade against prevailing trends, using the SMA shadow for context.
Automated Trading: Integrate BoS/MSS alerts with trading bots for systematic entries and exits.
Multi-Timeframe Analysis: Combine HTF signals (e.g., 1D) with lower timeframe charts (e.g., 1H) for precise entries.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate performance.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 19, 2025.
Limitations: Signals rely on HTF pivot accuracy, which may lag in fast-moving markets. Adjust rlBars or timeframe for sensitivity.
Optional Enhancements: Consider uncommenting or adding a histogram for SMA divergence (e.g., smaHigh - smaLow) for additional insights.
Acknowledgments
This indicator combines ICT’s market structure concepts with a dynamic SMA envelope to provide a unique contrarian trading tool. Share your feedback or suggestions in the TradingView comments, and happy trading!
Modified Fractal Open/CloseModified Fractal (Open/Close Based) - Indicator
The Modified Fractal (Open/Close Based) indicator offers a new way to detect fractal patterns on your chart by analyzing the open and close prices instead of the traditional high and low values.
🧮 How it works:
The indicator evaluates a group of 5 consecutive candles.
The central candle (2 bars ago) is analyzed.
For a Bullish Fractal:
The open or close of the central candle must be lower than the open and close of the other 4 surrounding candles.
For a Bearish Fractal:
The open or close of the central candle must be higher than the open and close of the other 4 surrounding candles.
Once a valid pattern is detected, a visual symbol (triangle) is plotted directly on the chart and an alert can be triggered.
✅ Key Features:
Non-repainting signals (evaluated after candle close)
Fully mechanical detection logic
Easy-to-use visual signals
Alert conditions ready to be integrated into TradingView’s alert system
Suitable for multiple timeframes (can be used from M1 to Daily and beyond)
🎯 Use case:
This modified fractal approach can help traders:
Spot potential swing points
Identify possible reversals
Confirm price exhaustion zones
Support breakout or mean reversion strategies
⚠ Note:
This indicator does not provide trade signals by itself. It is recommended to be combined with additional tools, price action analysis, or risk management rules.
CandelaCharts - 1st Presented FVG 📝 Overview
The ICT 1st Presented Fair Value Gap refers to the first FVG that forms after the market opens at 9:30 AM New York local time. In a sideways market, it often acts as a catalyst for price movement in either direction, while in trending conditions, it tends to support and reinforce the prevailing trend.
This indicator automatically identifies the first Fair Value Gap (FVG) that forms after the New York session opens at 9:30 AM local time. Based on concepts taught by Inner Circle Trader (ICT), the 1st Presented FVG is a key institutional price imbalance that often sets the tone for the trading day.
📦 Features
Customize FVG session time (e.g. 09:30 – 10:00)
Show/hide session dividers
FVG visibility filter (e.g. Bullish / Bearish)
Advanced styling
Hide overlapping FVGs
Extend FVGs
Opening prices
⚙️ Settings
Show: Controls whether all, bullish only, or bearish only FVGs are displayed on the chart.
Session: Sets a specific time window (e.g. 09:30–10:00) to filter which FVGs are displayed.
Dividers: Toggles vertical session divider on the chart for visual separation.
Midline: Displays a midpoint (CE) line through the FVG; customizable color and thickness.
Border: Adds a border around each FVG zone.
Labels: Toggles label display for FVGs.
Hide Overlap: Hides overlapping FVGs to reduce visual clutter.
Extend: Extends each FVG forward in time.
Alerts: Enables alerts when price interacts with an FVG zone.
Opening Prices: Allows defining custom time-based levels (e.g. 00:00–00:01 and 18:00–18:01) with color and style options.
⚡️ Showcase
Simple
Labels
Bordered
Consequent Encroachment
Extended
Dividers
📒 Usage
How to Use the ICT 1st Presented Fair Value Gap in Trading
To apply the ICT 1st Presented Fair Value Gap (FVG), identify the first fair value gap of the day and extend it across the chart until 3:45 PM New York time.
You’ll often notice that some of the best trade setups form around this level. It tends to act as a key reference point for price action during the day—especially on trending days, where price frequently returns to this gap before continuing in its direction.
This level can also serve as an inverse fair value gap, offering opportunities in the opposite direction under the right conditions.
How to Disqualify the 1st Presented Fair Value Gap?
When the first fair value gap forms after 9:30 AM New York time, check the candles that came just before it.
If the candlestick that creates the FVG doesn’t break above or below the range of those previous candles, then it’s not a true inefficiency. In that case, it’s considered a disqualified 1st Presented Fair Value Gap—meaning it shouldn’t be used as a key reference level.
Refer to the example below to see what this looks like on the chart.
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the bearish 1st P.FVG is formed in interval 09:30 - 10:00.
Bullish Signal
A bullish signal is triggered when the bullish 1st P.FVG is formed in interval 09:30 - 10:00.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
MAs w/ Locked Time FrameThis script plots multiple simple and exponential moving averages on your chart, with the ability to lock each one to a higher timeframe (HTF), such as 1-hour or 1-day. Use individual switches for fine control, or a master override to apply the same HTF across all MAs. A chart label clearly shows which HTF is in use. Perfect for multi-timeframe traders and trend-followers.
Educator Buy/Sell Signals (15m & 1h)Buy sell signal on 15 min and 1 hr timeframe to help you time the right entry for the asset you are looking to buy or sell
Quantum Market Intelligence (QMI)Quantum Market Intelligence (QMI) Indicator
The Quantum Market Intelligence (QMI) is a sophisticated multi-factor technical indicator that combines four key market analysis components into a single composite score. This indicator provides traders with a comprehensive market assessment tool that adapts to changing market conditions. The QMI score oscillates between -100 and +100, offering clear visual signals through color-coded plotting and an informative dashboard display.
The indicator analyzes markets through four distinct lenses: Trend Analysis (using EMAs and volatility-adjusted momentum), Momentum Analysis (combining RSI, Stochastic, and Williams %R), Volume Analysis (incorporating volume ratios and Accumulation/Distribution), and Volatility Analysis (utilizing ATR and Bollinger Bands). These components are intelligently weighted based on detected market regimes - whether trending, volatile, or range-bound. The adaptive mode feature continuously evaluates the indicator's recent performance and adjusts sensitivity accordingly, making it responsive to evolving market dynamics.
Traders can utilize the QMI's signal system which generates four types of alerts: Strong Buy (above 70 and rising), Buy (crossing above 30), Strong Sell (below -70 and falling), and Sell (crossing below -30). The visual presentation includes triangular markers for strong signals, circular markers for regular signals, and background shading that indicates the current market regime. The information table displays real-time metrics including the QMI score, individual component scores, detected market regime, and performance ratio, providing traders with a complete analytical dashboard for informed decision-making.
Important Notice:
The use of this technical indicator does not guarantee profitable results. This indicator should not be used as a standalone analysis tool. It is essential to combine it with other forms of analysis, such as fundamental analysis, risk management strategies, and awareness of current market conditions. Always conduct thorough research.
Note: The effectiveness of any technical indicator can vary based on market conditions and individual trading styles. It's crucial to test indicators thoroughly using historical data before applying them in live trading scenarios.
Disclaimer:
Trading financial instruments involves substantial risk and may not be suitable for all investors. Past performance is not indicative of future results. This indicator is provided for informational and educational purposes only and should not be considered investment advice. Always conduct your own research before making any trading decisions.
PowerSignal MCAD - FabianWindExperience the power of precision with the PowerSignal MCAD Trend Indicator by Fabian Wind—a high-impact, trend-following tool designed to spot explosive momentum reversals on every minute charts. By marrying a fast-reacting 20-period EMA with the trusted MACD histogram (12/26/9), it filters out noise and only triggers when both trend and momentum align for maximum profit potential.
spx levelsThis script accommodates a 'string' using the formatting $ symbol then label (liek support for example). The string can be anything oyu want that you make up. I use it for SPX and publish a string daily for my substack subscribers. This is here for them but its free for anyone
YesmypageProfessional daily pivot point calculator using previous day's High, Low, and Close data. Displays 7 horizontal levels: R3/R2/R1 (green resistance), PP (blue pivot), S1/S2/S3 (red support) with exact price labels. Updates automatically each trading day. Perfect for Indian markets with clean visual design, customizable settings and summary table for quick reference.
Smart Ichimoku BreaksPremium private Ichimoku-based indicator with break confirmations, MTF logic, and automated TP/SL. Access by permission only.
GCM Price Boost📌 GCM Price Boost (GCMPB) – by
📈 Overview:
The GCM Price Boost indicator combines Volume Rate of Change (VROC) with a modified RSI Histogram to detect early momentum surges and potential reversal zones — giving you a powerful dual-momentum edge in all markets.
This tool is built for traders who want to spot strong price bursts (boosts) backed by volume and momentum, with visual clarity.
🔍 What It Includes:
✅ VROC Histogram:
Tracks how quickly volume is increasing alongside price.
Helps spot "pump" scenarios — surges in buying or selling pressure.
Color-coded for trend:
🟢 Green when price is rising
🔴 Red when price is falling
⚪ Gray when neutral
Two thresholds:
Small Pump (default 0.5)
Big Pump (default 10.0)
✅ RSI Histogram:
Based on RSI deviations from 50 (mid-level), scaled by a user-defined multiplier.
Color-coded histogram fill for momentum strength:
🟢 Positive = bullish pressure
🔴 Negative = bearish pressure
Histogram line color:
Above zero: 🟢 #2dff00 (bullish)
Below zero: 🔴 #ff0000 (bearish)
✅ Customizable Settings:
Adjustable VROC lookback and thresholds.
Custom RSI period and multiplier.
Amplify VROC histogram height visually via scaling multiplier.
✅ Alerts Built-in:
🔔 GCM Small Pump Detected
🔔 GCM Big Pump Detected
🔔 RSI Buy Signal
🔔 RSI Sell Signal
⚙️ Best Used For:
Spotting volume-backed momentum shifts
Surfing strong price waves (breakouts, pumps)
Timing buy/sell zones using RSI momentum
Combining with other confirmation tools (trend filters, S/R zones, etc.)
🚀 How to Use:
Add this indicator to your chart.
Watch for:
VROC bars crossing pump levels
RSI Histogram entering buy/sell zones
Use alerts to stay notified of key shifts.
Combine with price action or trend filters for higher confidence.
🧠 Pro Tip:
For aggressive traders: Enter when RSI crosses buy/sell level with a matching VROC boost.
For swing traders: Use this as an early warning of upcoming strength or exhaustion.
💬 Feedback & Upgrades:
If you’d like:
Buy/sell arrows
A strategy version for backtesting
Multi-timeframe enhancements
Drop a comment or message — I’m actively maintaining and improving this tool 💪
Cross Roads - A 2 lines cross indicator for trend tradingWe, at Stonehill Forex are posting our first homegrown indicator, which was profiled on the Stonehill Forex website in March ‘25. The original version was coded for MetaTrader 4 (MT4) and subsequently coded for MT5 and TradingView, based on community interest. They (MT4/5) will be available from our on-line library, HERE . This one comes to you at no cost and begins our TV library.
It’s a two lines cross price overlay which, at its heart, uses two weighted moving average lines run through a very sleek filter. The result calls out pretty accurate signals. We tested it over a three-year period and our results can be viewed in the blog, HERE . Additionally, there is an accompanying technical analysis video to show you how to use it. The video is embedded in the blog for ease and convenience.
The indicator has two settings;
StartLen: The starting point where the math begins to gather data. The default value is 2.
There are two caveats we wanted to mention regarding the settings for “StartLen”;
The “StartLen” setting variable must not be less than zero.
The “StartLen” setting must beless than the “LOOKBACK_period”.
LOOKBACK_period: This is the number of historical data periods the math will include when generating the signal lines. The default value is 24.
How to use it;
Long: When the green signal line crosses above the magenta signal line.
Short: When the red signal line crosses above the green signal line.
Thanks for checking us out. Watch for additional indicators from us coming in the near future.
EMA Trend Screener//@version=5
indicator("EMA Trend Screener", shorttitle="ETS", format=format.inherit)
// EMA Calculations
ema10 = ta.ema(close, 10)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema100 = ta.ema(close, 100)
ema200 = ta.ema(close, 200)
// RSI Calculations
rsi_daily = ta.rsi(close, 14)
rsi_weekly = request.security(syminfo.tickerid, "1W", ta.rsi(close, 14))
// Core Conditions with 99% thresholds
price_above_10ema = close > (ema10 * 0.99)
ema10_above_20 = ema10 > (ema20 * 0.99)
ema20_above_50 = ema20 > (ema50 * 0.99)
ema50_above_100 = ema50 > (ema100 * 0.99)
ema100_above_200 = ema100 > (ema200 * 0.99)
// RSI Conditions
rsi_daily_bullish = rsi_daily > 50
rsi_weekly_bullish = rsi_weekly > 50
// EMA Spread Calculation
ema_max = math.max(ema10, math.max(ema20, math.max(ema50, math.max(ema100, ema200))))
ema_min = math.min(ema10, math.min(ema20, math.min(ema50, math.min(ema100, ema200))))
ema_spread_pct = (ema_max / ema_min - 1) * 100
// Price to 20 EMA Distance
price_to_20ema_pct = (close / ema20 - 1) * 100
// Additional Conditions
ema_spread_ok = ema_spread_pct < 10
price_to_20ema_ok = price_to_20ema_pct < 10
ema200_positive = ema200 > 0
// Final Signal Calculation
all_conditions_met = price_above_10ema and ema10_above_20 and ema20_above_50 and
ema50_above_100 and ema100_above_200 and rsi_daily_bullish and
rsi_weekly_bullish and ema_spread_ok and price_to_20ema_ok and ema200_positive
// SCREENER OUTPUT - This is the key for premium screener
// Return 1 for stocks meeting criteria, 0 for those that don't
screener_signal = all_conditions_met ? 1 : 0
// Plot the screener signal (this will be the column value)
plot(screener_signal, title="EMA Trend Signal", display=display.none)
// Additional screener columns you can add
plot(rsi_daily, title="RSI Daily", display=display.none)
plot(rsi_weekly, title="RSI Weekly", display=display.none)
plot(ema_spread_pct, title="EMA Spread %", display=display.none)
plot(price_to_20ema_pct, title="Price to 20EMA %", display=display.none)
// Screener-friendly outputs for individual conditions
plot(price_above_10ema ? 1 : 0, title="Price > 10EMA", display=display.none)
plot(ema10_above_20 ? 1 : 0, title="10EMA > 20EMA", display=display.none)
plot(ema20_above_50 ? 1 : 0, title="20EMA > 50EMA", display=display.none)
plot(ema50_above_100 ? 1 : 0, title="50EMA > 100EMA", display=display.none)
plot(ema100_above_200 ? 1 : 0, title="100EMA > 200EMA", display=display.none)
// Market cap condition (note: market cap data may not be available in all cases)
// You'll need to set this in the main screener interface
// Performance 3Y condition
// This also needs to be set in the main screener interface as it's fundamental data
Reversal Signal using 9 EMA & 20 EMA Rajdeep MThis is a reversal strategy.
This can be used in smaller timeframes like 3 or 5 or 15 min.
One should use 1:1 RR ratio.
Best entry in trade can be defined if the "Reversal" candle is doji, hammer, engulfing or harami candle.
TRADE AS PER YOUR RISK.
Deep M
Reversal Signal using 9 EMA & 20 EMA Rajdeep MThis is a reversal strategy.
This can be used in smaller timeframes like 3 or 5 or 15 min.
One should use 1:1 RR ratio.
Best entry in trade can be defined if the "Reversal" candle is doji, hammer, engulfing or harami candle.
TRADE AS PER YOUR RISK.
Deep M