PG DMean & Price Sync ver 9.4 - ConsolidatedPG DMean & Price Sync Strategy (SD Filter)
This strategy combines the momentum-oscillator properties of the Detrended Mean (DMean) with a Standard Deviation (SD) Price Filter for confirming trend direction, aiming to isolate high-conviction trades while actively managing risk.
🔑 Core Logic
DMean Momentum Signal: The strategy's primary engine is the DMean, which measures the percentage difference between the current closing price and a longer-term Moving Average (price_ma). It is then smoothed by a DMean Signal line (MA of the DMean).
Entry Signal: A trade is triggered when the DMean line crosses above (for Long) or below (for Short) its Signal Line, but it must clear a user-defined Dead Zone Threshold to confirm momentum commitment.
SD Filter Confirmation (Price Sync): A Standard Deviation Channel, based on a separate user-defined price source and period, is used to filter trades.
Long Filter: Allows Long entries only when the price is trading above the lower SD band, suggesting the current price action is stronger than the recent average volatility to the downside.
Short Filter: Allows Short entries only when the price is currently below the Filter Basis (SMA), confirming a bearish stance within the SD channel.
🛡️ Risk & Exit Management
Primary Exit: All trades are exited by reverse DMean Crossover/Crossunder, meaning the position is closed when the DMean momentum reverses against the open trade (e.g., DMean crosses under the Signal to exit a Long).
Hard Stop Loss (Short Trades): A mandatory percentage-based Hard Stop Loss is implemented only for short positions to protect against sudden upward price spikes, closing the trade if the loss exceeds the set percentage. (Note: This version does not include a Hard SL for Long trades).
📊 Performance Dashboard
A custom Performance Dashboard Table is displayed at the bottom right of the chart to provide real-time, at-a-glance comparison of the strategy's equity performance versus a simple Buy & Hold over the selected backtesting date range.
Chart patterns
ES/NQ Price Action Sync See when ES & NQ move in syncSee when ES & NQ move in sync — revealing real market momentum at a glance.”
⚖️ ES/NQ Price Action Sync
Discover when the market moves as one.
This indicator tracks when S&P 500 Futures (ES1!) and Nasdaq Futures (NQ1!) align in momentum — helping you spot broad-market confirmation or early divergence in real time.
🧠 Concept
The ES/NQ relationship often reveals the market’s underlying strength or hesitation. When both indices turn bullish or bearish together with meaningful movement, that’s a sign of true market alignment.
When they disagree — expect mixed momentum and possible reversals.
⚙️ Features
✅ Highlights new bullish and bearish syncs on chart
✅ Dynamic info table showing % change and direction for each index
✅ Optional triangle markers for clean visual cues
✅ Alert conditions for new sync events
✅ Adjustable lookback and minimum-move filters
💡 How to Use
Use this as a market-context tool, not a direct buy/sell signal.
When both indices sync, intraday trends often hold better; when they diverge, momentum may fade.
Combine it with your own system or higher-time-frame analysis for confirmation.
📊 Why Traders Love It
Simple idea — powerful insight.
This tool helps traders instantly see when “the market machine” is running in harmony… or pulling in opposite directions.
⚠️ Disclaimer:
This script is for educational and analytical purposes only.
It does not provide financial advice or trading signals. Always perform your own research before making trading decisions.
TRADER PERFORMANCEAn exclusive tool for scalping, day trading, swing trading, and position trading, designed to maximize your success rate and reduce input noise. Recognized for its high accuracy, it's the ideal indicator for those seeking consistency and solid market results.
Project Pegasus RevenantDescription
Project Pegasus Revenant is a reversal and liquidity-trap detection system combining a configurable fractal reversal engine with the SweepTrigger liquidity finder. It highlights potential structural turning points and stop-hunt scenarios directly on the chart.
What’s unique
Fractal Reversal Engine: Adjustable strictness (1 = loose, 5 = strict) to fit different market conditions.
Signal Filtering: Minimum bar spacing to avoid clustering of false or repeated signals.
SweepTrigger Add-on: Detects liquidity sweeps with wick-based rejection logic, auto-doji detection, and range-strength confirmation.
Dual Signal Output: Circle markers for pure fractal reversals, triangles for sweep-based liquidity traps.
Adaptive Filters: Customizable thresholds for body size, candle range, and sweep strength.
How it works (technical)
Fractals: A reversal fractal is confirmed when the high/low at position n is surrounded by lower/higher highs/lows across a configurable frontier.
Signal confirmation: Once price trades back through the fractal level within a limited number of bars, a potential reversal is triggered.
Bar filter: Signals require a minimum distance in bars to prevent noise.
SweepTrigger logic:
Wick comparison (upper vs lower) determines rejection direction.
Doji and low-body candles are auto-filtered.
Range check ensures the current candle exceeds a configurable multiple of the average range.
Visuals:
Green/Red circles = fractal reversals.
Cyan/Purple triangles = liquidity sweep triggers.
How to use
Watch fractal signals to anticipate structural reversal points.
Combine SweepTrigger signals with liquidity highs/lows for identifying stop hunts and fakeouts.
Use as standalone reversal tool or as confirmation within a broader system (e.g., order blocks, volume profile, or market structure).
Key settings
Reversal Mode: 1–5 (controls strictness of fractals).
SweepTrigger: On/off toggle, lookback window, body-size filter, range strength multiplier.
Visuals: Shapes, sizes, and color-coded signals for clear separation between fractal and sweep triggers.
Notes & limitations
Works on all timeframes.
Signals are reactive (based on confirmed bars), not predictive — no lookahead logic.
Too strict settings may reduce signal frequency; too loose may increase noise.
Disclaimer
For educational and informational purposes only. Not financial advice.
50 EMA Buy/Sell Signals Ajit TiwariThis script is easy to find buy or sell just use 1 hr and 4 hour chart result is amazing just try and enjoy
Fair Value Gap / iVFG / Imbalance / MTF SuiteDescription
This indicator detects Fair Value Gaps (FVGs) and Imbalances across up to 10 user-selected timeframes and manages them with precise retest handling and clean visualization options.
What’s unique
3-candle FVG detection per timeframe (no lookahead).
Retest handling: on the first touch the touched edge snaps to the retest wick and the zone recolors (fresh → retested).
Right-side projection limits to avoid endless extensions.
Deterministic multi-TF overlay: HTF zones are computed independently (lookahead off) and drawn in a stable, priority-based order.
iFVG / parked zones: optionally convert a filled gap into an iFVG (parked/blue) instead of deleting/greying it.
Optional Imbalance Add-on (3-candle), with split halves + 50% midline.
How it works (technical)
FVG logic (3 candles):
Bullish when low > high (gap up); Bearish when high < low (gap down).
The created box spans the untraded range of candle B and starts at time .
Retest behavior:
On the first wick-touch, the nearest boundary adapts to the wick extreme. If enabled, the box recolors to a “retested” palette.
Projection:
Boxes extend to the right; optional bar limit constrains length.
Display limits:
FIFO pruning per direction keeps only the newest N boxes; iFVG/grey pools can share or use separate limits.
Imbalance Add-on (optional):
Classic 3-candle imbalance; draws upper/lower halves and an optional 50% midline.
No lookahead / confirmation:
Calculations run with barmerge.lookahead_off; detection finalizes on bar close (repaint-free on close).
How to use
Treat fresh gaps as potential reaction zones or confluence with liquidity / structure.
Use retested gaps for continuation or rejection logic.
Limit right-projection and visible count to keep charts readable on lower TFs.
Combine with your own execution rules (entries, stops, partials).
Key settings
General: adjust/recolor on retest, right-side limit (bars).
Display Limits: max visible per direction; separate iFVG cap if desired.
Visuals: filled vs. outline, transparency, TF labels (auto or custom), label alignment.
Theme: presets (Pegasus Classic, Icefire, Solarized, Heatmap, Pastel, Monochrome) or Custom colors.
Timeframes: enable up to 10 TF slots (e.g., M1/M5/M15/H1/H4/D1…).
Add-on — Imbalance: enable/disable, midline on/off, filled/outline, colors.
Alerts
New Bullish FVG
New Bearish FVG
Add-on: New Bullish Imbalance
Add-on: New Bearish Imbalance
Notes & limitations
FVG detection is confirmed on bar close; intrabar retest recolor can occur as price interacts.
Historical rendering depends on chart history & session settings.
Many TFs + large box counts can be heavy; use projection limits and display caps for performance.
This tool does not generate trade signals; it visualizes inefficiencies for discretionary or rules-based workflows.
Disclaimer
For educational and informational purposes only. Not financial advice.
Access / Support: Invite-only. For access or assistance, please DM.
EMA with VolNew EMA 9 20 setup with Volume for educational purpose to identify the moves and everything.
High Time Frame (HTF) Swing PointsIdentify and display swing highs and lows across multiple higher timeframes on a chart, overlaying horizontal lines and customizable labels at these swing points.
Timeframes
Five user-defined higher timeframes (default settings: 5-minute, 15-minute, 1-hour, 4-hour, and daily)
Manually show/hide individual timeframes
When chart’s timeframe is set higher than one of the five configured, the indicator will automatically hide it. This helps to prevent clutter when navigating between timeframes on the chart
Swing Levels
Configure the line color, opacity, width and weather it’s solid/dotted/dashed
Once swing levels are identified, the indicator will look for the chart candle where the line starts
When price crosses the swing level, the line will be terminated
Tags
Customize the tag text for each individual timeframe, using blank if a tag is not desired for that timeframe
A tag text color can be set for all tags or base it on the line color
Set tag text size based on: Auto, Tiny, Small, Normal, Large
Choose how far to the right of the line the tag text should appear, as an integer representing the size of a candle
Choose to clear the tag or leave it in place after price crosses a swing level
Use Cases
Visualize key swing points from higher timeframes to identify potential reversal or breakout zones
Identify possible low resistance liquidity run (LRLR) areas
Use swing points for stop placement or as targets or draws on liquidity
Multi-TF FVG Kerze Break AlertHere's a breakdown of the key files:
App.tsx: This is the main component that orchestrates the entire user interface. It manages the application's state, including the input Pine Script, the selected target language, the resulting converted code, and the loading/error states.
services/geminiService.ts: This file handles all communication with the Google Gemini API. It takes the Pine Script and the target language, constructs a detailed prompt instructing the AI on how to perform the conversion, sends the request, and processes the response.
components/CodeEditor.tsx: A reusable UI component that provides a styled for both displaying the input Pine Script and the read-only output.
constants.ts: This file centralizes static data. It contains the list of target languages for the dropdown menu and the default Pine Script code that loads when the application first starts.
index.html & index.tsx: These are the standard entry points for the React application, responsible for setting up the web page and mounting the main App component.
In essence, the application provides a user-friendly interface for developers to convert financial trading algorithms written in TradingView's Pine Script into other popular programming languages, leveraging the power of the Gemini AI model to perform the translation.
Candle Pattern Detector SMC with Alerts @AshokTrendJust Follow Hammer, Inverted Hammer, Hanging Man, Engulfing, volume adn smc consideration,
Trading the candlestick patterns (Hammer, Inverted Hammer, Hanging Man, Bullish/Bearish Engulfing) with volume confirmation adds an important layer of validation, helping to filter false signals and improve trade success. Here’s how to integrate volume into your strategy:
***
### How to Trade Candlestick Patterns with Volume Confirmation
#### 1. Understand Volume Role
- Volume shows the strength behind price moves:
- Higher volume on a pattern (compared to recent average) indicates strong participation, increasing the pattern’s reliability.
- Low volume may mean weak conviction and higher risk of failure.
#### 2. Volume Confirmation Rules
- Define a volume threshold, for example:
- Current candle’s volume > average volume of last 10 or 20 candles (or a fixed multiplier, e.g., 1.2× average).
- For bullish patterns (Hammer, Inverted Hammer, Bullish Engulfing): confirm with rising volume on pattern candle or next candle.
- For bearish patterns (Hanging Man, Bearish Engulfing): confirm with higher volume on pattern candle indicating strong selling.
#### 3. Entry Signals with Volume
- **Bullish Entry:**
- Signal candle (Hammer, Bullish Engulfing, etc.) appears near support or order block.
- Volume on the signal candle or immediate next candle is higher than average.
- Enter long on confirmation candle or close of signal candle.
- **Bearish Entry:**
- Signal candle (Hanging Man, Bearish Engulfing, etc.) appears near resistance or supply zone.
- Volume on the signal candle or immediate next candle exceeds average.
- Enter short on confirmation candle or close of signal candle.
#### 4. Stop Loss & Targets
- Place stop loss just below (for longs) or above (for shorts) the low/high wick of the signal candle or the order block zone.
- Set take profit based on nearby support/resistance, risk-reward ratio, or a fixed number of candle closes.
#### 5. Avoid Trading Without Volume Confirmation
- Reject candles if volume is below threshold to reduce false signals.
### Summary
Trading candlestick patterns combined with volume confirmation ensures only well-supported setups are taken, improving win rates and reducing noisy or fake signals. Volume adds a critical dimension to the SMC candle patterns for binary or any form of trading.
Would you like me to generate a full Pine Script that integrates volume confirmation with the patterns you requested?
US Government Shutdowns – Full History (with durations)이 지표는 1976년 이후 실제로 정부 기능이 중단된 모든 미국 정부 셧다운 기간을 시각화합니다.
S&P500 또는 지정한 심볼 차트 위에 각 셧다운 구간을 세로선과 음영 박스로 표시하고,
각 기간의 지속일수(일) 라벨을 함께 제공합니다.
데이터 출처: 미국 하원 공식 기록 (U.S. House History – Funding Gaps and Shutdowns in the Federal Government)
기능
• 모든 셧다운 구간 자동 표시
• 음영/세로선/라벨 개별 On-Off 가능
• 진행 중인 셧다운은 자동으로 ‘현재 시점까지’ 확장 표시
시장 변동성 분석, 정책 이벤트 리스크 평가, 장기 매크로 백테스트 등에 유용합니다.
This indicator visualizes all official US government shutdown periods since 1976 directly on any selected chart (default: S&P 500).
Each shutdown period is shown with vertical lines and shaded boxes, along with labels indicating the duration in days.
Data Source: U.S. House History – Funding Gaps and Shutdowns in the Federal Government
Features:
• Displays every historical shutdown automatically
• Optional shading, lines, and duration labels
• Ongoing shutdowns dynamically extend to the current date
Useful for analyzing volatility around fiscal policy events and long-term macro correlations.
GOLDSNIPERThe Gold Sniper Indicator is a precision trading tool designed specifically for scalping and intraday trading Gold (XAUUSD) on TradingView.
It automatically plots institutional key levels, detects breakout & retest opportunities, and provides trade management levels (Stop Loss & Take Profit) for structured, disciplined trading.
Aug 6
Release Notes
The Gold Sniper Indicator is a precision trading tool designed specifically for scalping and intraday trading Gold (XAUUSD) on TradingView.
It automatically plots institutional key levels, detects breakout & retest opportunities, and provides trade management levels (Stop Loss & Take Profit) for structured, disciplined trading
Aug 13
Release Notes
The Gold Sniper Indicator is a precision trading tool designed specifically for scalping and intraday trading Gold (XAUUSD) on TradingView.
It automatically plots institutional key levels, detects breakout & retest opportunities, and provides trade management levels (Stop Loss & Take Profit) for structured, disciplined trading.
3 days ago
Release Notes
The Gold Sniper Indicator is a precision TradingView tool for scalping and intraday trading Gold (XAUUSD).
It is built around a break-and-retest strategy with clear trade management: 10 pip Stop Loss, 20 pip TP1, and 35 pip TP2.
The indicator automatically:
• Plots institutional key levels and supply & demand zones
• Detects breakout and retest opportunities in real time
• Provides stop loss and take profit levels for structured, disciplined trading
Whether you’re a scalper or day trader, Gold Sniper helps you catch high-probability setups on XAUUSD with precise risk-to-reward ratios (1:1 and 1:3).
DAMMU Buy vs Sell Liquidity + DifferenceIndicator Name:
Buy vs Sell Liquidity + Difference
Purpose:
This indicator helps traders analyze market liquidity by comparing the cumulative buy and sell volumes within a specified timeframe. It shows which side (buyers or sellers) is dominating and the magnitude of the imbalance.
Key Features:
Aggregation Timeframe:
Users can select the timeframe (1, 2, 3, 5, 15, 30 minutes) for which volume is analyzed.
Buy & Sell Volume Calculation:
Buy Volume: Total volume of candles where close > open.
Sell Volume: Total volume of candles where close < open.
Daily Reset:
Totals reset at the start of each new day, ensuring intra-day liquidity analysis.
Difference Calculation:
Shows the absolute difference between buy and sell volumes.
Also calculates the difference as a percentage of total volume.
Percentages:
Displays buy %, sell %, and diff % to 4 decimal places, giving precise insights.
Table Display:
A two-row table in the top-right corner of the chart:
Row 1: Absolute totals for BUY, SELL, and DIFF (full numbers with commas).
Row 2: Percentages for BUY, SELL, and DIFF (4 decimals).
Uses color coding: Green for BUY, Red for SELL, Dynamic for DIFF (based on dominance).
How to Use:
High Buy Volume: Indicates strong buying pressure; bullish sentiment.
High Sell Volume: Indicates strong selling pressure; bearish sentiment.
Large DIFF %: Signals dominant market side; useful for short-term scalping or spotting liquidity imbalance.
Comparing BUY vs SELL %: Helps identify when the market may reverse or continue the trend.
If you want, I can also make a 1-paragraph “trader-friendly” explanation that you could directly include in your Pine Script as a comment or in a strategy guide.
Dynamic Sessions - Asia, London, New YorkThis indicator lets you set trading sessions (custom sessions) and print them out as dynamic polyboxes instead of traditional rectangles which lets you identify strong moves and trends easier.
NIFTY Consolidation → Breakout FinderThis indicator defines 5 day consolidation period and breakout label. This works best on a daily chart. Please back test before use.
XAUUSD Scalping 1min TFThis script is for use on the 1min timeframe, we are looking for quick scalp trades when price reverses from Highs or lows - when the shot fires taking a 1:2 Trade 500pips TP and 250pips SL
Alpha All-in-One Gold Scalper (Locked + 10-Trade UI)V2.0 Alpha All-in-One Gold Scalper (Locked + 10-Trade UI)V2.0
Alpha All-in-One Gold Scalper (Locked + 10-Trade UI)Alpha All-in-One Gold Scalper (Locked + 10-Trade UI)
Mini Coil Inside Break & Inside BarThis indicator is designed for traders focusing on price action patterns like inside bars, mini coil contractions, and inside bar breakouts. It helps identify potential reversal or continuation setups in ranging or consolidating markets by highlighting bars that fit within prior ranges and signaling breaks for entry opportunities.
1. Inside Bar Detection
Scans for bars where the high/low is fully nested within the range of any prior 1–10 bars—capturing multi-level consolidations beyond simple 1:1 inside bars.
2. Inside Breakout
Highlights green bars on bullish breaks: Close > previous high, confirmed by the prior bar being "inside" relative to 2–11 bars back.
3. Mini Coil Bar Visualization
Colors bars (shifted -2 for clarity) in yellow (bullish prior coil) or magenta (bearish) when the current and previous bars are fully inside the range of the bar 2 periods ago.
Smoothed Heiken Ashi Candles [JopAlgo]Smoothed Heiken Ashi Candles — cleaner bias, less noise, better timing
What it does (one line):
Builds a two-stage smoothed Heiken Ashi view so you can read trend vs. pullback without the usual candle noise. Color does the talking:
Lime = bullish state (close ≥ open on the smoothed HA feed)
Red = bearish state
Under the hood: price is EMA-smoothed ( Length len ), converted to Heiken Ashi, then smoothed again ( Length len2 ). Net effect: fewer whips, clearer swings.
What you’ll see
A full candle chart of Smoothed HA (o₂/h₂/l₂/c₂).
Color rule: o₂ > c₂ → red (bearish), otherwise lime (bullish).
No extra clutter—just an easy bias read you can trust at a glance.
Read in 3 seconds: What color? What slope? Are pullbacks shallow or deep relative to the last swing?
How to use it (simple, repeatable)
Bias filter:
Trade longs while candles are lime.
Trade shorts while candles are red.
Where to act (location first):
Use Volume Profile v3.2 (VAH/VAL/POC/LVNs) and Anchored VWAP for entries/targets.
No level, no trade.
When to click (timing):
Continuation: In lime, buy the first pullback that holds a level (VAL/AVWAP/MA cluster) and prints a fresh lime close. Mirror for red shorts.
Reclaim/Reject: A color flip that happens at a level (e.g., AVWAP reclaim → turns lime) is higher quality than a random mid-range flip.
Quality check (optional, strong):
If you use CVDv1 , prefer setups with Alignment OK and no Absorption against your side.
Timeframe guidance
1–5m (scalps): Keep len / len2 shorter (e.g., 5 / 5 or 6 / 8) to avoid lag.
15m–1H (intraday): Default 10 / 10 is a sweet spot.
2H–4H (swing): Try 14–20 / 10–14 for smoother swings.
1D+ (position): 20–34 / 14–20 for backdrop; execute on a lower TF.
Settings that actually matter (and how to tune)
Smoothing Length for Original OHLC (len)
Controls the base smoothness before HA.
Lower = more reactive, more flips.
Higher = steadier bias, more lag.
Smoothing Length for Heiken Ashi (len2)
Controls the final polish of the HA feed.
Lower = earlier turns (noisier).
Higher = fewer flips (slower).
Practical tip: If you get too many color flips, raise len2 first. If it feels sluggish at entries, lower len slightly.
Entries, exits, and risk (keep it tight)
Entry — continuation:
In lime, wait for a pullback to VAL / AVWAP / MA cluster, then a new lime close → enter.
Stop: below structure/last swing. Targets: POC/HVNs or prior swing high/low.
Entry — reclaim/reject:
Color flips at a level (e.g., AVWAP reclaim turns lime) → enter with the level holding.
Invalidation: immediate flip back on the next bar and level loss.
Manage:
If color stays with you but progress stalls at HVNs, trim. If color flips against your position, tighten or exit unless higher-TF context argues to hold.
Best combos with other tools
Volume Profile v3.2: Use VAH/VAL/LVNs/POC for where to act; Smoothed HA tells you if trend context supports the trade.
Anchored VWAP: A reclaim/rejection with matching HA color is a high-quality timing cue.
CVDv1: Take color-aligned trades with flow (Alignment OK, strong Imbalance, no Absorption).
Patterns you’ll recognize
Walk-of-color: Multiple same-color bars with rising/lowering bodies → ride pullbacks to level; don’t fade.
Color flip at level: The cleanest reversal context (e.g., red→lime on a VAL reclaim).
Chop tell: Rapid lime↔red flips mid-range → do less; only trade edges.
Practical defaults to start
len = 10, len2 = 10
Timeframes: 15m–4H out of the box
Process: Location → Color/Bias → Timing bar → (optional) CVD check → Structure-based risk
Serious Disclaimer & Licensing
This indicator and description are provided for educational purposes only and do not constitute financial, investment, or trading advice. Markets involve risk; you can lose some or all of your capital. Past performance does not guarantee future results. You are solely responsible for evaluating the suitability of this tool in your process, including testing on historical and simulated data and applying appropriate risk management.
Data quality can vary by exchange/venue. No warranty—express or implied—is made regarding accuracy, completeness, or fitness for a particular purpose. assumes no liability for any direct or consequential losses arising from the use of this script or description.
License: This Pine Script™ code is released under the Mozilla Public License 2.0 (MPL 2.0), © JopAlgo. You may use, modify, and distribute the code under MPL 2.0 terms.
Bias Table-manualIt is just at tabular column to manually update Bullish/Bearish for multiple timeframes. Provided date option which is also manual, to denote when the analysis was done and table updated. This will be helpful for multiple stocks/securities analysis on regular basis
JASHAN C.E Oscillatorjanduinteriors@outlook.com
janduinteriorslimited@gmail.com
JASMEET SINGH JANDU(JASHAN), RAJPREET SINGH JANDU(PRINCE)