Pocket Pivots refinedPocket Pivots Refined
What it does
Detects pocket pivots and color-codes bars using both stock DMAs and market (NIFTY) trend filters. Adds a VCP arrow (volatility contraction + volume dry-up). Designed to be IPO-safe and configurable.
Signals & Colors
Blue — Pocket Pivot + %Up filter met + Stock DMAs (selected) OK + Market (NIFTY) MAs OK.
Green — Pocket Pivot + %Up filter met + Stock DMAs OK, but Market MAs not OK.
Yellow — Pocket Pivot, but Stock DMAs not OK.
Violet — Blue + MA stack (10>50>150>200) + price within X% above 50-DMA (configurable).
Pocket Pivot (PP) definition used
White candle and volume > SMA(volume, volAvgLen) × volMult and volume > highest down-day volume over last ppLookback bars.
VCP arrow (no label)
Plotted when (Blue OR Green OR Yellow) and
Range contraction:
range(1..20) < range(11..30) × 1.1 and range(11..30) < range(21..40) × 1.1
Volume dry-up: SMA(vol ,5) < SMA(vol ,10)
Inputs (key)
Min % Up for Blue/Green (default 3%).
Stock DMA toggles: require >10 / >50 / >200 (each switchable; IPO-safe: skipped if MA is na).
Market (NIFTY) MAs: three configurable lengths (defaults 21/50/200) + per-MA toggles.
Pocket Pivot params: lookback (default 10), volume SMA length (14), multiplier (1.2).
Violet: max % above 50-DMA cap (default 10%).
Market Status Strip: shows bull/bear color based on your selected market filters; baseline is IPO-safe.
Alerts included
Blue (Money incoming)
Green (Signal)
Arrow (VCP + qualifying candle)
Tip: set alerts to “Once per bar close” to avoid intrabar flips.
Repainting & limitations (disclosure)
Script does not use lookahead; it does not repaint historical closed bars.
Uses request.security() for Daily NIFTY. On intraday charts, the current day’s market filter updates until the daily candle closes; signals may change intrabar.
VCP/PP/DMAs are evaluated on the current bar; for consistency, act on bar close.
How to use (quick)
Start with defaults (21/50/200 for NIFTY).
Require 3%+ for Blue/Green to reduce noise (adjust per liquidity).
Look for Violet as the stricter Blue near the pivot with stacked MAs.
Prefer Arrow + Blue/Violet near 52-week highs or after quiet pullbacks.
Attribution
Inspired by Pocket Pivots (O’Neil/Minervini) and VCP concepts; this is an implementation/proxy, not an official definition.
Disclaimer
This tool is for educational purposes only. Not financial advice. Trading involves risk; do your own research and manage risk.
If you want, I can trim this further for the “Short Description” field (e.g., “Pocket Pivots + Market filter + VCP arrow. IPO-safe. Configurable 21/50/200. Adds stricter Violet near 50-DMA.”).
You said:
in.tradingview.com
make sure this is not violated
ChatGPT said:
Thought for 31s
Here’s a publish-ready description that meets TradingView’s Script Publishing Rules (English title, self-contained explanation, no hype/links, repainting/disclosure, originality/usefulness)
TradingView
.
Title
Pocket Pivots (IPO-safe, Configurable Market MAs + VCP + Violet)
What it does
Identifies Pocket Pivot accumulation bars and color-codes them using stock DMAs and market (index) trend filters. Adds an optional VCP arrow (volatility contraction + volume dry-up). Built to be IPO-safe, with configurable NIFTY MA lengths (defaults 21/50/200) and per-filter toggles.
How it works (concise)
Pocket Pivot (PP): White candle and volume > SMA(volume, volAvgLen) × volMult and volume > highest down-day volume in the last ppLookback bars.
Stock trend filters (toggleable): price > 10/50/200 DMAs (each can be turned on/off; IPO-safe via na checks).
Market filters (toggleable/length-configurable): index close > MA#1 / MA#2 / MA#3 (user sets lengths; default 21/50/200).
% up gate (user-set): Blue/Green require today’s change ≥ Min % Up (default 3%).
VCP arrow (no label): Plots when a qualifying candle (Blue/Green/Yellow) also shows range contraction (3 staggered windows) and volume dry-up (recent 5-SMA < older 10-SMA).
Colors
Blue – PP + %Up met + Stock filters OK + Market filters OK.
Green – PP + %Up met + Stock OK, Market NOT OK.
Yellow – PP but Stock NOT OK.
Violet – Blue + MA stack (10>50>150>200) + price ≤ X% above 50-DMA (user-set cap).
Inputs (key)
Min % Up for Blue/Green (default 3%).
Stock DMA toggles: >10 / >50 / >200.
Market MAs: three user-defined lengths + toggles (default 21/50/200).
Pocket Pivot params: lookback (default 10), volume SMA len (14), multiplier (1.2).
Violet cap: max % above 50-DMA (default 10%).
Status strip: always shows; color reflects Market filters; baseline is IPO-safe.
Alerts
Blue, Green, and Arrow (VCP + qualifying candle).
Tip: use Once per bar close to avoid intrabar flips.
Disclosures & limits
No lookahead; does not repaint closed bars.
Uses Daily index data for Market filters; on intraday charts, signals can update until the daily bar closes.
This is an educational tool, not financial advice. Manage risk.
Originality & usefulness
Combines PP detection with configurable market regime filters, an IPO-safe status strip, a stricter Violet qualifier near 50-DMA, and a lightweight VCP arrow for contraction + dry-up confirmation.
Inspired by Pocket Pivots of Gil morales and Chris Kacher and VCP concepts.
Indicators and strategies
六-TRAMA6I notice some people like to use different time frames, and will open multiple windows with the same indicators. This takes up space and can become confusing :(
I have created a multi-timeframe TRAMA indicator with adjustable lengths.
Feel free to experiment to find something that works and come up with new uses.
Enjoy! :)
Control Point System📊 Control Zone Strategy - Trading System Summary
🎯 Core Concept
Trade based on control zone breaks where buyers take over seller zones (bullish) or sellers take over buyer zones (bearish).
📍 Key Levels Setup
Seller Control Zones (Resistance)
PMH (Pre Market High) - Where sellers stopped buyers
YDH (Yesterday High) - Where sellers stopped buyers
Buyer Control Zones (Support)
PML (Pre Market Low) - Where buyers stopped sellers
YDL (Yesterday Low) - Where buyers stopped sellers
📈 EMA System
200 EMA (Purple) - Trend Filter: Above = Bullish bias | Below = Bearish bias
48 EMA (Red) - Last line of defense for pullbacks/shorts
13 EMA (Green) - Pullback levels (if above 200) or Short levels (if below 200)
8 EMA (Orange) - Exit indicator
⚡ Entry Signals
BULLISH Setup (Buyers Take Control)
Condition: Price breaks above PMH or YDH (seller zones)
Confirmation: Above 200 EMA for bullish trend
Entry: Use 5-minute timeframe for precise entries
Logic: Buyers have overpowered seller control zones
BEARISH Setup (Sellers Take Control)
Condition: Price breaks below PML or YDL (buyer zones)
Confirmation: Below 200 EMA for bearish trend
Entry: Use 5-minute timeframe for precise entries
Logic: Sellers have overpowered buyer control zones
🚪 Exit Strategy
Main Exit Rule
Exit Signal: Full candle close above 8 EMA on 5 or 10-minute chart
Runners: Take partial profits along the way, let runners ride until 8 EMA exit
Profit Taking
Scale out at key resistance/support levels
Use Daily 13 EMA as potential exit target
Trail stops using 8 EMA
⏰ Timeframes
Entry: 5-minute chart
Exit Monitoring: 5-minute or 10-minute chart for 8 EMA signals
PMH/PML: Calculated from 4:00 AM - 8:29 AM EST premarket session
🎯 Quick Decision Matrix
ScenarioActionBiasBreak above PMH/YDH + Above 200 EMABUYBullishBreak below PML/YDL + Below 200 EMASELLBearishFull candle close above 8 EMAEXITNeutralPrice at 13/48 EMA + Trend intactAdd/ScaleContinue
💡 Key Rules
Trend is king - Always check 200 EMA first
Zone breaks = control shifts - Trade in direction of new control
8 EMA exit - Respect the exit signal to preserve profits
Scale profits - Don't exit everything at once, use runners
Bottom Line: Trade the battle for control between buyers and sellers at key levels, with trend as your guide and 8 EMA as your exit!
SWEET ScreenerThis is a signal search and alert screener, to be confirmed visually and by the next momentum candle based on an additional indicator that you will always find free on TV called "SWEET Strategy". To be used on 15-minute time frames based on Liam Merrilees' strategy. The only distortion is the WORK session of my own imprint and therefore to be evaluated but which deviates from the original strategy.
MTF Daily Trend + Smart S/R (All Symbols & Timeframes)The indicator works as a tool that combines daily trend identification with smart support and resistance levels on the chart. It first calculates two moving averages (EMA 20 and EMA 50) from the daily timeframe and, based on their relative position, determines the overall trend: if the fast average is above the slow average, the trend is considered bullish; if it is below it, the trend is bearish; and if they are converging, it appears neutral. This is displayed in a small panel at the top right of the screen, changing colors between green, red, and orange depending on the situation. You can also activate an alert to notify you when the trend changes.
As for support and resistance, the indicator uses pivot highs and pivot lows to identify points where the price often stops. It draws red horizontal lines as resistance and green lines as support, automatically updating them whenever new highs or lows appear. It also adds important market levels, such as the previous day's high and low (PDH/PDL) and the previous week's high and low (PWH/PWL), helping you keep track of the reference levels most traders monitor. Additionally, you can set alerts when these levels are broken or trend changes, so you don't need to constantly monitor the screen.
In short, the indicator gives you a comprehensive picture of the market's daily trend and identifies the most important levels from which the price may bounce or break, helping you make clearer trading decisions.
Scalp By Rus 7.21//@version=5
indicator("EMA Crossover Signal (3m+5m) + Support/Resistance + Alerts v4", overlay=true)
// === EMA и MA для 3m ===
emaFast3 = request.security(syminfo.tickerid, "3", ta.ema(close, 12))
emaSlow3 = request.security(syminfo.tickerid, "3", ta.ema(close, 26))
ma553 = request.security(syminfo.tickerid, "3", ta.sma(close, 55))
// === EMA и MA для 5m ===
emaFast5 = request.security(syminfo.tickerid, "5", ta.ema(close, 12))
emaSlow5 = request.security(syminfo.tickerid, "5", ta.ema(close, 26))
ma555 = request.security(syminfo.tickerid, "5", ta.sma(close, 55))
// === Сигналы (совпадение на 3m и 5m) ===
buySignal = ta.crossover(emaFast3, emaSlow3) and close > ma553 and ta.crossover(emaFast5, emaSlow5) and close > ma555
sellSignal = ta.crossunder(emaFast3, emaSlow3) and close < ma553 and ta.crossunder(emaFast5, emaSlow5) and close < ma555
// === Отображение сигналов на графике ===
plotshape(buySignal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="SELL Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === Алерты с фиксированными сообщениями ===
alertcondition(buySignal, title="BUY Alert", message="BUY")
alertcondition(sellSignal, title="SELL Alert", message="SELL")
// === Уровни поддержки и сопротивления ===
pivotLen = 10
supportLevel = ta.valuewhen(ta.pivotlow(low, pivotLen, pivotLen), low , 0)
resistanceLevel = ta.valuewhen(ta.pivothigh(high, pivotLen, pivotLen), high , 0)
// === Отображение линий ===
plot(supportLevel, title="Support Level", color=color.new(color.green, 0), style=plot.style_linebr, linewidth=1, trackprice=true)
plot(resistanceLevel, title="Resistance Level", color=color.new(color.red, 0), style=plot.style_linebr, linewidth=1, trackprice=true)
// === Полупрозрачный фон между уровнями ===
bgcolor(close < resistanceLevel and close > supportLevel ? na : color.new(color.gray, 90))
Percentages from 52 Week High CustomAdded 15% and 25% reversal points to the original indicator.
Link to original script by Dr2Wndd2
Key price level [ BY ARAL ]- Description (English)
Indicator: Psychological Levels (1000 & 5000)
This indicator automatically plots white dotted horizontal lines directly on the chart, highlighting key psychological levels (every 1000 and 5000 points).
These levels act as important visual references to:
Quickly identify psychological support and resistance zones.
Spot price levels where both retail and institutional traders often react.
Enhance chart readability by emphasizing significant thresholds.
A simple, clean, and effective tool to structure your technical analysis.
Live Trading Metrics DashboardReal-Time Trading Data Table for Chart Analysis
This clean and professional dashboard displays essential trading metrics directly on your chart in an easy-to-read table format. Perfect for traders who need quick access to key volatility and momentum data without cluttering their chart with multiple indicators.
Key Metrics Displayed:
IBD Relative Strength (RS):
Professional Formula: Uses Investor's Business Daily methodology
Multi-Timeframe Analysis: Weighted calculation across 3, 6, 9, and 12-month periods
Performance Indicator: Shows how the instrument performs relative to its historical price action
Real-Time Updates: Values update with each bar for current market conditions
1.5 ATR (Average True Range):
Volatility Measurement: 14-period ATR multiplied by 1.5 for extended range analysis
Stop-Loss Placement: Ideal for setting dynamic stop-loss levels
Risk Management: Helps determine appropriate position sizing based on volatility
Breakout Targets: Useful for setting profit targets on breakout trades
1.5 ATR Percentage:
Relative Volatility: Shows 1.5 ATR as a percentage of current price
Cross-Asset Comparison: Enables volatility comparison across different instruments
Position Sizing: Helps calculate risk per trade as percentage of price
Market Context: Understand volatility relative to instrument value
How to Interpret:
Positive IBD RS: Instrument showing strength relative to historical performance
Negative IBD RS: Instrument showing weakness relative to historical performance
Higher ATR Values: Increased volatility, wider stops needed
Higher ATR %: Greater relative volatility for the instrument's price level
Perfect For:
Day traders needing quick volatility reference
Swing traders using IBD methodology
Position traders managing risk with ATR-based stops
Any trader wanting clean, organized data display
Gott's Copernican Trend PredictorThe Gott's Copernican Trend Predictor predicts trend duration using the Copernican Principle - Based on astrophysicist Richard Gott's temporal prediction method.
I had the idea to create this indicator after reading the book The Doomsday Calculation by William Poundstone.
Background & Theory
This indicator implements J. Richard Gott III's Copernican Principle - a statistical method that famously predicted the fall of the Berlin Wall and the duration of Broadway shows with remarkable accuracy.
The Copernican Principle Explained
Named after Copernicus who showed that Earth is not at the center of the universe, this principle assumes that you are not observing something at a special moment in time. When you observe a trend at any random point, you're statistically more likely to be seeing it during the "middle portion" of its lifetime rather than at its very beginning or end.
The Mathematics
Gott's formula provides a 95% confidence interval for how much longer a trend will continue:
Minimum remaining duration = Current Age ÷ 39
Maximum remaining duration = Current Age × 39
The factor of 39 comes from statistical analysis where:
There's only a 2.5% chance you're observing in the first 1/40th of the trend's life
There's only a 2.5% chance you're observing in the last 1/40th of the trend's life
This gives us 95% confidence that the trend will last between Age/39 and Age×39
How It Works
Trend Detection
The indicator uses dual moving averages (default: 50 & 200 period) to identify trend changes:
Bullish Cross: Fast MA crosses above Slow MA → Uptrend begins
Bearish Cross: Fast MA crosses below Slow MA → Downtrend begins
Real-Time Predictions
Once a trend is detected, the indicator continuously calculates:
Trend Age: How long the current trend has been active
Gott's 95% CI: Statistical range for remaining trend duration
Projected End Dates: Calendar dates when the trend might end
How to Use
Setup
Add the indicator to any timeframe (works on minutes, hours, days, weeks)
Customize MA periods and type (SMA, EMA, WMA)
Choose table position and font size for optimal viewing
Interpretation
Example: If a trend is 100 hours old:
Minimum duration: 100 ÷ 39 = ~3 more hours
Maximum duration: 100 × 39 = ~3,900 more hours
95% confidence: The trend will end between these times
This indicator might be useful for swing traders, trend followers, and quantitative analysts.
Coca-Cola example:
Coca-Cola's chart shows an uptrend spanning 810 weeks, approximately 15.5 years. According to Gott's Copernican Principle, this trend age generates a 95% confidence interval predicting the trend will continue for a minimum of 20 weeks and a maximum of 31,590 weeks.
On the other hand, a shorter trend age produces a proportionally smaller minimum duration and different risk profile in terms of statistical continuation probability. For this reason, more recent trends (and more recent companies) are likely to remain in trend for shorter.
Multi-Period VWAP with SMAs and Fibonacci LevelsUseing VWAP in conjunction with SMA's and key fibs for entries.
Overnight Gap Dominance Indicator (OGDI)The Overnight Gap Dominance Indicator (OGDI) measures the relative volatility of overnight price gaps versus intraday price movements for a given security, such as SPY or SPX. It uses a rolling standard deviation of absolute overnight percentage changes divided by the standard deviation of absolute intraday percentage changes over a customizable window. This helps traders identify periods where overnight gaps predominate, suggesting potential opportunities for strategies leveraging extended market moves.
Instructions
A
pply the indicator to your TradingView chart for the desired security (e.g., SPY or SPX).
Adjust the "Rolling Window" input to set the lookback period (default: 60 bars).
Modify the "1DTE Threshold" and "2DTE+ Threshold" inputs to tailor the levels at which you switch from 0DTE to 1DTE or multi-DTE strategies (default: 0.5 and 0.6).
Observe the OGDI line: values above the 1DTE threshold suggest favoring 1DTE strategies, while values above the 2DTE+ threshold indicate multi-DTE strategies may be more effective.
Use in conjunction with low VIX environments and uptrend legs for optimal results.
Opaque's RVWAP LinesInspired by Sto's screenshots. This should show you 7d, 30d, 60d & 365d rvwap cleanly on the chart. Especially nice for our colorblind brethren.
นมชมพูPinky milk. Feel delicious on this drink. User is able to on / off any in setting including re-coding by copy to your own.
MTF HMA (es. H4) on current chartMTF HMA (Multi-Timeframe Hull Moving Average)
The MTF HMA indicator plots a Hull Moving Average (HMA) from a higher timeframe directly on your current chart.
This allows you to use the trend direction of a higher timeframe as a filter for your entries on a lower timeframe.
🔹 How it works
The indicator calculates the HMA (default: period 89) on a user-selected higher timeframe (default: H4).
The HMA is then displayed on your current chart (e.g. H1).
The line color can change depending on the slope:
Teal = uptrend (HMA rising)
Red = downtrend (HMA falling)
(Optional: keep a neutral color if slope-based coloring is disabled).
The script can also mark crossovers between price and the MTF HMA with arrows:
Triangle up (HMA↑) when price crosses above → potential bullish entry filter.
Triangle down (HMA↓) when price crosses below → potential bearish entry filter.
Alerts are included so you can be notified when price crosses above/below the MTF HMA.
🔹 How to use it
Trend filter:
Take long trades only when price is above the higher-timeframe HMA and slope is positive.
Take short trades only when price is below the higher-timeframe HMA and slope is negative.
Entry timing:
Use your lower-timeframe system (e.g. VWAP pullbacks, RSI(3) signals) only if they align with the higher-timeframe trend.
This helps avoid false signals against the dominant market direction.
Customization:
Change the higher timeframe (e.g. H4, Daily, Weekly).
Adjust the HMA length for smoother or faster response (e.g. 55 = faster, 100+ = slower).
Enable/disable crossover markers and alerts.
EMA Oracle and RSIEMA Oracle
- “See the market’s structure through the eyes of exponential wisdom.”
combines classic EMA stacks with Pi-based logic to reveal high-probability buy/sell zones and trend bias across timeframes
Multi-EMA Trend & Pi Signal Indicator
This advanced indicator combines classic trend analysis with Pi-based signal logic to help traders identify optimal entry and exit zones across multiple timeframes.
Core Features
EMA Trend Structure: Displays EMAs 9, 13, 20, 50, and 200 to visualize short-term and long-term trend orientation. Bullish momentum is indicated when shorter EMAs are stacked above longer ones.
Pi-Based Signal Logic: Inspired by the Pi Indicator, it includes EMA111 and EMA700 (350×2) on the daily chart:
Buy Zone: When price is trading below EMA111, it signals potential accumulation for spot or low-leverage position trades.
Sell Zone: When price is above EMA700, it suggests potential distribution or exit zones.
Trend Cross Alerts: Detects EMA crossovers and crossunders to highlight shifts in market structure and generate buy/sell signals.
Multi-Timeframe Analysis: Evaluates trend direction across selected timeframes (e.g., 15m, 30m, 1h, 4h, 1D), offering a broader market perspective.
RSI Integration: Combines Relative Strength Index (RSI) readings with EMA positioning to assess momentum and overbought/oversold conditions.
Trend Table Display: A dynamic table summarizes the asset’s trend status per timeframe, showing:
RSI values
EMA alignment
Overall trend bias (bullish, bearish, neutral)
Realized Volatility (StdDev of Returns, %)📌 Realized Volatility (StdDev of Returns, %)
This indicator measures realized volatility directly from price returns, instead of the common but misleading approach of calculating standard deviation around a moving average.
🔹 How it works:
Computes close-to-close log returns (the most common way volatility is measured in finance).
Calculates the standard deviation of these returns over a chosen lookback period (default = 200 bars).
Converts results into percentages for easier interpretation.
Provides three key volatility measures:
Daily Realized Vol (%) – raw standard deviation of returns.
Annualized Vol (%) – scaled by √250 trading days (market convention).
Horizon Vol (%) – volatility over a custom horizon (default = 5 days, i.e. weekly).
🔹 Why use this indicator?
Shows true realized volatility from historical returns.
More accurate than measuring deviation around a moving average.
Useful for traders analyzing risk, position sizing, and comparing realized vs implied volatility.
⚠️ Note:
It is best used on the Daily Chart!
By default, this uses log returns (which are additive and standard in quant finance).
If you prefer, you can easily switch to simple % returns in the code.
Volatility estimates depend on your chosen lookback length and may vary across timeframes.
Divergences v2.3 [LTB][SPTG]Updated Divergences v2.3 by LTB to better handle stock symbols and lookback.
Dual Supertrend with EMA ZoneDual Supertrend with EMA zone.
use as a trend following strategy.
multiple entry rules can be determined.
on breaks or retracements.
Bullish Engulfing / Hammer with Volume at SupportJust experimenting because I need to identify stocks through which I can make money and also recognize some market trends in these cases
RSI Signal DotsRSI Signal Dots highlights market extremes with simple visual cues. Red dots mark overbought zones (RSI > 70), signaling potential pullbacks. Green dots mark oversold zones (RSI < 30), indicating possible rebounds. A clean, intuitive tool to quickly spot reversal opportunities.
sonnnnnnnn dayเป็นกรอบของเเท่งเดย ที่เอาไว้บอกสถานะการปิดเเท่ง It's the frame of the day. that tells you the status of the trade closing