Price Deviation from MA5 (%)This Pine Script calculates and visualizes the percentage deviation of the current price from the 5-day simple moving average (SMA5).
The blue line represents the daily deviation (%) from the 5-day moving average.
The orange line shows the 10-day average of the deviation, providing a smoother trendline for volatility analysis.
A gray baseline at 0% helps identify whether the price is trading above or below the SMA5.
This indicator is helpful for identifying short-term overbought or oversold conditions and tracking intraday volatility behavior.
이 Pine Script는 현재 종가가 5일 이동평균선(MA5)으로부터 얼마나 떨어져 있는지(이격률, %)를 계산하고 시각화합니다.
파란색 선은 매일의 이격률(%)을 나타냅니다.
주황색 선은 이격률의 10일 평균값으로, 보다 부드러운 추세선을 제공합니다.
**0% 기준선(회색)**을 통해 현재 가격이 MA5 위에 있는지 아래에 있는지를 한눈에 파악할 수 있습니다.
이 지표는 단기 과열/과매도 구간을 파악하거나, 일중 변동성의 흐름을 분석할 때 유용합니다.
Penunjuk dan strategi
סשנים TARgive you al the sessions times in eazy way to see them very clean very helpful such a great indicator to start the life with it
Gas Futures SpreadClick Add chart , then Publish indicator , on the open old page select Publish new script , write any description and click Continue , then select Private script , Visibility Open and click the Publish private script button
20 EMA Envelope with Editable %Its Ema envelope with editable feature of EMA and % of EMA how much one want deviation from EMA.
Momentum_EMABandThe Momentum EMA Band V1 is a precision tool designed for intraday traders & scalpers. This is the first version of the script, combining three powerful technical elements to help traders identify directional moves while filtering out weak, choppy market phases.
🔧 How the Indicator Works — Combined Logic
This indicator merges well-known but distinct concepts into a unified visual framework:
1️⃣ EMA Price Band — Dynamic Zone Visualization
Plots upper and lower EMA bands based on user input (default: 9-period EMA).
Price relative to the bands provides immediate visual cues:
Green Band: Price above the upper EMA — bullish strength.
Red Band: Price below the lower EMA — bearish pressure.
Yellow Band: Price within the band — neutral zone.
2️⃣ Supertrend Overlay — Reliable Trend Confirmation
ATR-based Supertrend logic (customizable ATR length & factor).
Green Supertrend Line: Uptrend confirmation.
Red Supertrend Line: Downtrend confirmation.
Helps traders ride trends with dynamic levels that adjust to volatility.
3️⃣ ADX-Based No Trade Zone — Choppy Market Filter
Manual ADX calculation measures trend strength (default ADX length: 14).
When ADX is below a user-defined threshold (default: 20) and price is within the EMA Band buffer, a gray background highlights sideways or indecisive market conditions — suggesting no new trade or low momentum zone
Optional gray triangle marker shows the start of each No-Trade Zone phase.
🎯 Key Features
✅ Combines EMA Bands, Supertrend & ADX filtering for comprehensive market context.
✅ Visual No-Trade Zone shading keeps traders out of low-probability setups.
✅ Supertrend Line tracks evolving trend bias.
✅ Fully customizable — adjust EMA, ATR, ADX settings to match different instruments or styles.
✅ Clean, focused chart presentation for easy interpretation.
💡 Practical Application
Momentum Breakouts: Enter trades when price breaks beyond the EMA Band, with Supertrend confirmation.
Avoid Sideways Traps: Refrain from trading during gray-shaded No-Trade Zones, minimizing exposure to whipsaws.
Scalping & Intraday Edge: Particularly effective on lower timeframes where choppy periods are common.
⚠️ Important Disclaimer
This is Version 1 — future versions may expand on features based on trader feedback.
This script is for educational purposes only. Always combine with risk management and thorough strategy validation.
No indicator guarantees profitability — use this tool as part of a broader trading system.
SPY-ES & QQQ-NQ Live Ratiothis shows the live ratios of SPY and QQQs o you can easily convert them into ES and NQ levels
OBV MACD IndicatorI have added alert function providing the ability to add an alert when either a long or short signal is detected.
The original script is OBV MACD Indicator by RafaelZioni
RSI(2) com MA200 + Alvo + Fecho após 5 dias (Sem Stop)🟢 Entry:
RSI(2) < 25
Price above MA200
🔴 Exit only if:
🎯 Target reached → previous 2 days' high
⏳ 5 business days have passed since entry
🚫 No more fixed stop-loss — assume that:
If the price goes down, you hold the position until it either hits the target or expires
Forex Dynamic Momentum Reversal (FDMR) - AlternativeRed and green dashed lines on the last bar represent the upper and lower volatility bands, extending from the previous bar.
Blue and orange labels on the last bar show the fast and slow EMA values.
Green triangles below bars indicate buy signals; red triangles above bars indicate sell signals.
Enable Alerts: Set up alerts in TradingView for buy/sell signals.
VIX-Price Covariance MonitorThe VIX-Price Covariance Monitor is a statistical tool that measures the evolving relationship between a security's price and volatility indices such as the VIX (or VVIX).
It can give indication of potential market reversal, as typically, volatility and the VIX increase before markets turn red,
This indicator calculates the Pearson correlation coefficient using the formula:
ρ(X,Y) = cov(X,Y) / (σₓ × σᵧ)
Where:
ρ is the correlation coefficient
cov(X,Y) is the covariance between price and the volatility index
σₓ and σᵧ are the standard deviations of price and the volatility index
Enjoy!
Features
Dual Correlation Periods: Analyze both short-term and long-term correlation trends simultaneously
Adaptive Color Coding: Correlation strength is visually represented through color intensity
Market Condition Assessment: Automatic interpretation of correlation values into actionable market insights
Leading/Lagging Analysis: Optional time-shift analysis to detect predictive relationships
Detailed Information Panel: Real-time statistics including current correlation values, historical averages, and trading implications
Interpretation
Positive Correlation (Red): Typically bearish for price, as rising VIX correlates with falling markets. This is what traders should be looking for.
Negative Correlation (Green): Typically bullish for price, as falling VIX correlates with rising markets
How to use it
Apply the indicator to any chart to see its correlation with the default VIX index
Adjust the correlation length to match your trading timeframe (shorter for day trading, longer for swing trading)
Enable the secondary correlation period to compare different timeframes simultaneously
For advanced analysis, enable the Leading/Lagging feature to detect if VIX changes precede or follow price movements
Use the information panel to quickly assess the current market condition and potential trading implications
Volume Shelf Breakout WatcherThis indicator detects potential breakout opportunities from high-volume price shelves (HVNs) using a custom volume profile engine. It scans the past 100 bars (adjustable) to identify price ranges with heavy volume accumulation, then monitors for a breakout when price is near the top of that range.
To increase accuracy, it optionally confirms momentum using:
✅ MACD bullish crossover
✅ RSI > 55
✅ Volume spike above 20-bar average
When all enabled conditions are met, the indicator highlights the bar with a green label and background shading, and can trigger alerts for trade setups.
Use this indicator to:
Identify volume-based consolidation zones
Anticipate price surges through low-volume areas ("volume gaps")
Catch breakouts with momentum confirmation
Inputs:
Volume Profile Range (bars)
HVN Sensitivity (top % of volume)
MACD confirmation toggle
RSI level toggle
Volume spike toggle
Ideal for:
Traders looking to enter early on momentum moves as price escapes compression zones into areas of less resistance.
MA Respect IndicatorThis indicator tells you how much a moving average is being respected.
Green = highly respected
Blue = watch out, transitioning
Red = not respected at all.
If you trade moving averages, you may find this very helpful with determining when and when not to trust a MA. This can be changed to look at a VWAP, and many other different MA calculation types.
Relative StrengthDescription:
This indicator provides a simplified yet powerful method for measuring a stock's momentum based on its proximity to its recent high. It is a direct implementation of a trading concept discussed in a lecture from the New York Institute of Finance.
Core Concept
The underlying theory, supported by academic research, is that a stock making a new high is one of the most bullish signals possible. Such stocks have a statistical tendency to continue making new highs in the near term.
Instead of requiring complex relative strength calculations against a universe of stocks, this indicator uses a simple and elegant ratio to act as a proxy for momentum:
Indicator Value = Current Close / Highest High of Lookback Period
A value approaching 1.0 indicates the stock is strong and nearing a new high. A value at 1.0 means a new high has just been made.
How to Use This Indicator
The indicator consists of two primary components:
RS Line (Teal): The core momentum calculation (Close / High).
Signal MA (Orange): A moving average of the NHRS Line, which acts as the trigger for signals.
The signals are generated based on the crossover between these two lines:
BUY Signal: When the RS Line crosses ABOVE its moving average. This suggests that short-term momentum is accelerating and a new uptrend may be starting. The background will turn green.
SELL Signal: When the RS Line crosses BELOW its moving average. This indicates that momentum is fading and it may be prudent to exit the position to avoid a decline. The background will turn red.
Indicator Settings
You can customize the indicator to fit your trading style and the timeframe you are analyzing:
High Lookback Period: Choose the period for the "Highest High" calculation. Options range from 1 Month to 12 Months (52 weeks), allowing you to measure short-term or long-term strength.
Moving Average Length: Adjust the length of the signal line's moving average. The lecturer defaults to 26 weeks for a six-month view.
Moving Average Type: Select the type of moving average for the signal line (SMA, EMA, WMA, HMA).
Credits and Inspiration
Proper credit is essential. This script is a practical application of a concept that builds upon foundational academic work.
The core idea that a stock's proximity to its 52-week high is an investable anomaly was detailed in the 2004 Journal of Finance paper:
"The 52 Week High and Momentum Investing" by Thomas J. George and Chuan-Yang Hwang.
The lecturer's contribution, which this script implements, was to simplify this concept into an actionable trading tool by applying a moving average crossover to generate clear and objective buy and sell signals.
Disclaimer: This tool is for educational and informational purposes only. It is not financial advice. All trading involves risk, and you should always perform your own research and backtesting before making any trading decisions.
IU Engulfing Candlestick PatternDISCRIPTION
📈 The IU Engulfing Candlestick Pattern indicator spotlights both bullish and bearish engulfing formations in real‑time. It shades each pattern with a transparent box and drops a concise label so you can catch potential reversals at a glance—no clutter, no noise, just the candles that matter.
USER INPUTS :
1. Pattern Recognition Based on = “Both” | “Wicks” | “Body” ( Default Both )
• Both → only highlights candles that satisfy **both** wick‑and‑body engulfing rules
• Wicks → checks full candle range (high‑to‑low)
• Body → checks only the real bodies (open‑to‑close)
2. Show Labels ( Default true )
If ticked then it will show the text as "Bullish Engulfing" or "Bearish Engulfing".
3. Show The Box ( Default true)
if ticked then it will show the green or red boxes.
INDICATOR LOGIC:
🔹 Bullish Engulfing (green box)
– Current bar closes higher than it opens and fully “wraps” the prior bar per your chosen rule.
🔹 Bearish Engulfing (red box)
– Current bar closes lower than it opens and fully “wraps” the prior bar per your chosen rule.
🔸 When a pattern confirms:
1. The script records the local high/low range.
2. Draws a semi‑transparent box spanning the engulfing pair.
3. Prints a compact up/down label exactly at the reaction point.
4. Fires a once‑per‑bar alert (“Bullish Engulfing” / “Bearish Engulfing”) you can route to webhooks or notifications.
WHY IT IS UNIQUE:
✨ Combines classic body‑only engulfing with an optional wick filter, letting traders demand stricter confirmation when markets are noisy.
✨ Box overlays visually segment the engulfed range—clearer than single‑bar markers.
✨ Lightweight: one input, zero repaint, and capped at 500 boxes to keep charts responsive.
✨ Ready‑to‑use alerts—no extra code needed for automation.
HOW USER CAN BENIFIT FROM IT :
- Spot early reversal zones or continuation thrusts without scanning candle by candle.
- Pair the alerts with trading bots, TradingView strategy testers, or mobile push notifications.
- Adapt the strictness (Body vs. Wicks vs. Both) to suit different assets, timeframes, or volatility regimes.
- Use the colored range boxes as dynamic support/resistance references for entries, targets, and stop‑loss placement.
📌 Tip: Test on multiple instruments and timeframes to find the sweet spot that matches your risk profile. This script is for educational purposes—always combine with sound risk management and confirm signals with broader market context.
Disclaimer :
This Video is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
🔰 Smart Money RSI Liquidez v1 + EMA50 by Leo OntiverosThis indicator combines Smart Money concepts with RSI and liquidity sweeps to generate precise buy/sell signals—ideal for scalping and intraday trading (3M, 5M, 15M).
🔎 Key Features:
✅ RSI Divergences:
Detects bullish and bearish divergences using the 14-period RSI.
Signals are stronger in oversold (<30) or overbought (>70) zones.
💧 Liquidity Sweeps:
Highlights areas where price sweeps liquidity (new lows/highs) and then reverses.
Bullish sweep: price makes a new low and closes bullish.
Bearish sweep: price makes a new high and closes bearish.
📈 Smart Confirmed Signals:
BUY (🟢): Bullish divergence + RSI oversold + bullish liquidity sweep.
SELL (🔴): Bearish divergence + RSI overbought + bearish liquidity sweep.
🎯 Visuals:
Arrows and BUY/SELL labels directly on the candle.
Background highlights for signal clarity.
Includes the EMA50 (orange line) as a trend reference.
⚙️ Recommended Use:
Timeframes: 3min, 5min, 15min.
Best when combined with market structure (BOS, CHoCH), order blocks, and price action.
Extra filter: take signals only in the direction of the EMA50 trend.
📢 Perfect for traders following institutional order flow and looking for high-probability reversal zones confirmed by volume and structure.
Dynamic Ray BandsAbout Dynamic Ray Bands
Dynamic Ray Bands is a volatility-adaptive envelope indicator that adjusts in real time to evolving market conditions. It uses a Double Exponential Moving Average (DEMA) as its central trend reference, with upper and lower bands scaled according to current volatility measured by the Average True Range (ATR).
This creates a dynamic structure that visually frames price action, helping traders identify areas of potential trend continuation, overextension, or mean reversion.
How It Works
🟡 Centerline (DEMA)
The central yellow line is a Double Exponential Moving Average, which offers a smoother, less laggy trend signal than traditional moving averages. It represents the market’s short- to medium-term “equilibrium.”
🔵 Outer Bands
Plotted at:
Upper Band = DEMA + (ATR × outerMultiplier)
Lower Band = DEMA - (ATR × outerMultiplier)
These bands define the extreme bounds of current volatility. When price breaks above or below them, it can signal strong directional momentum or overbought/oversold conditions, depending on context. They're often used as trend breakout zones or to time exits after extended runs.
🟣 Inner Bands
Plotted closer to the DEMA:
Inner Upper = DEMA + (ATR × innerMultiplier)
Inner Lower = DEMA - (ATR × innerMultiplier)
These are preliminary volatility thresholds, offering early cues for potential expansion or reversal. They may be used for scalping, tight stop zones, or pre-breakout positioning.
🔁 Dynamic Width (Bands are Dynamically Adjusted Per Tick)
The width of both inner and outer bands is based on ATR (Average True Range), which is recalculated in real time. This means:
During high volatility, the bands expand, allowing for wider price fluctuations.
During low volatility, the bands contract, tightening range expectations.
Unlike fixed-width channels or standard Bollinger Bands (which use standard deviation), this per-tick adjustment via ATR enables Dynamic Ray Bands to reduce false signals in choppy markets and remain more reactive during trending conditions.
⚙️ Inputs
DMA Length — Period for the central DEMA.
ATR Length — Lookback used for ATR volatility calculations.
Outer Band Multiplier — Controls sensitivity of extreme bands.
Inner Band Multiplier — Controls proximity of inner bands.
Show Inner Bands — Toggle for plotting the inner zone.
🔔 Alerts
Alert conditions are included for:
Price closing above/below the outer bands (trend momentum or overextension)
Price closing above/below the inner bands (early signs of strength/weakness)
🧭 Use Cases
Breakout detection — Catch price continuation beyond the outer bands.
Volatility filtering — Adjust trade logic based on band width.
Mean reversion — Monitor for snapbacks toward the DEMA after price stretches too far.
Trend guidance — Use band slope and price position to confirm direction.
⚠️ Disclaimer
This script is intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to trade any specific market or security. Always test indicators thoroughly before using them in live trading.
5 EMA STRATEGY by Power of Stocks(StockYogi)5 EMA STRATEGY by Power of Stocks(StockYogi)
This is a 5 EMA Breakout Strategy inspired by the trading principles taught by Shubhashi Pani, founder of the Power of Stocks (POS) community.
The strategy is designed to:
• Detect breakout setups when price breaks the high/low of a signal candle (based on EMA conditions)
• Enter trades only if the breakout occurs within the next 3 candles
• Allow multiple trades in the same direction without closing the earlier one
• Use independent stop-loss (SL) and take-profit (TP) targets for each trade based on a user-defined risk-reward ratio
• Optionally enter trades only at candle close
• Optionally avoid trades during a custom time window (e.g., 3:00 PM to 3:30 PM IST)
• Optionally close all open positions at a defined time (e.g., 3:30 PM IST)
The goal of this strategy is to provide greater flexibility and realism for intraday or short-term traders following structured breakout systems.
Disclaimer: This script is an implementation of technical ideas for educational purposes only. It is not financial advice. All trading involves risk, and past performance does not guarantee future results.
Strategy Credits:
This strategy is based on publicly known breakout rules taught by Shubhashi Pani (Power of Stocks). This is not an official POS script, and I am not affiliated with the Power of Stocks team. This implementation was developed independently to follow the logic shared for educational use.
Feel free to use, backtest, and modify according to your needs. Constructive feedback is welcome!
Customizable EMA & SMA ComboThis script includes both EMA and SMA into a single customizable indicatior.
Option Maxpain & WallsThis simple script plots three lines on your chart based on options data: Call Wall, Put Wall and Max Pain. These three numbers must be obtained elsewhere. While Tradingview has delayed options data, to my knowledge Pinescript does not allow looping through this data to calculate the numbers within the script. So the user must obtain or calculate them elsewhere then type them into the input dialog. Labels and alerts are included as user options.
Time-Specific Volume AverageA volume indicator based on historic volume.
Checks for the average volume in the past few days at the same time of day. This helps you determine when there is truly volume in the markets.
We will see often see sustained volume above the average during a clear trend. If you see spikes in volume without it being sustained above the average, it is very likely that the trend will die off quickly.
This is very helpful in determining whether to trade based on a trend following system, or a range based system.
Settings are below:
Days to average: Number of days to look back(tradingview has limits depending on your plan)
SMA Length: Number of "volume averages" to look at. Keep this at 1 if you want the average volume at the exact moment in the day. If you increase it, will also average in the past few candles of "volume averages".
SMA Multiplier: Multiplies the SMA by this amount(helps to get higher quality trends)
TFlab Trailing Stop StrategyThe trailing stop indicator dynamically adjusts stop-loss (SL) levels to lock in profits as price moves favorably. It uses pivot levels and ATR to set optimal SL points, balancing risk and reward.
Trade confirmation filters, a key feature, ensure entries align with market conditions, reducing false signals. In 2023 a study showed filtered entries improve win rates by 15% in forex. This enhances trade precision.
SL settings, ranging from very tight to very wide, adapt to volatility via ATR calculations. These settings anchor SL to previous pivot levels, ensuring alignment with market structure. This caters to diverse trading styles, from scalping to swing trading.
The indicator colors the profit zone between the entry point (EP) and SL, using light green for buy trades and light red for sell trades. This visual cue highlights profit potential. It’s ideal for traders seeking dynamic risk management.
A table displays real-time trade details, including EP, SL, and profit/loss (PNL). Backtests show trailing stops cut losses by 20% in trending markets. This transparency aids decision-making.
Auto-AVWAP from Recent High/Low + MidlineAutomatically takes AVWAP from recent high/lows and helps in trading