Pine Script®指標
圖表形態
D1 Range in PipsDaily Range in Pips - Simple & Customizable
A clean, no-nonsense indicator that displays the current daily (D1) range in pips in a customizable corner box.
Why This Matters:
This indicator helps you maintain perspective and avoid overtrading during compressed price action. By keeping the daily range visible at all times, you can:
Quickly assess if price is extended or compressed
Avoid impatient trades when the daily range is tight
Make better-informed decisions about entry timing
Stay aware of volatility conditions without cluttering your chart
Features:
Real-time daily range calculation in pips
Fully customizable: choose corner position, box color, text color, and size
Works automatically with all forex pairs (including JPY pairs)
Minimal, distraction-free display
Perfect for traders who want essential information without the noise. Keep it simple, trade smarter.
Pine Script®指標
Pine Script®指標
Golden Pocket ZonesGolden Pocket Zones: High-Probability Reaction Zones
⚙️ Identify High-Probability Reaction Zones: The script automatically scans daily price action to plot powerful support and resistance zones based on the Golden Pocket Fibonacci retracement (50%-61.8%). These are areas where price is statistically likely to react, providing traders with a map of key market levels.
✅ Native support for Gold, Forex, Crypto, Stocks, Crude oil.
📦 Dynamic & Self-Merging Zones: The indicator identifies Golden Pockets from significant daily candles and automatically merges overlapping zones. This process consolidates multiple levels into a single, stronger, and more reliable area of interest, reducing chart noise and highlighting the most critical price boundaries.
🎯 Volatility-Adaptive Zone Height: Zone height is calculated as a percentage of the 10-day Average Daily Range (ADR10). This ensures that the zones dynamically adapt to the current market volatility. In volatile conditions, zones are wider; in calm markets, they are tighter, always remaining relevant to the instrument being traded.
💪 Strength & Age Analysis: Each zone is automatically rated for strength (4-10) based on the size of the daily candle that created it relative to the ADR10. Larger candles produce stronger zones. The age of the zone (in days) is also displayed, allowing traders to assess its relevance over time.
🔥 Proximity Heatmap: Zones are color-coded with a dynamic heatmap. The closer the current price is to a zone, the "hotter" (more orange) the color becomes. This provides an immediate visual cue to pay attention as price approaches a key reaction area.
🌍 Universal Asset Compatibility: While the logic is exceptionally powerful for Gold (XAUUSD), the indicator is designed for universal application across Futures (NQ/ES), Forex, Cryptocurrencies (BTC), and US Stocks. The ADR-based calculations ensure its principles adapt seamlessly to any market.
📌Recommended Timeframes
📦While the zones are calculated from the Daily chart, they are most effectively used for executing trades on intraday timeframes. The recommended timeframes for monitoring price action and looking for confirmation signals are:
•M30 (30-Minute)•H1 (1-Hour)•H2 (2-Hour)•H4 (4-Hour)
How to Use the Golden Pocket Zones
🕒This indicator is designed to identify high-probability areas for price reactions, not to provide direct entry signals. The core strategy is to use these zones as a map and wait for price to confirm a reaction before making a trading decision.
Identifying High-Probability Reaction Zones
✅1.Load the Indicator: Apply the "Golden Pocket Zones" indicator to your chart. With default settings, it will analyze the last 20 daily candles to generate the zones.
🎯 2.Identify Key Levels: The plotted boxes are your key areas of interest. These represent significant historical support and resistance. A zone’s strength is indicated by its rating (e.g., "S: 8"), with higher numbers indicating a more significant level.
🥇3.Watch for Price Approach: As price action on your trading timeframe (e.g., M15, H1, H4) approaches one of these daily zones, it is entering a high-probability reaction area. The zone’s color will shift from yellow to orange, signaling proximity.
⚙️4.Look for Confirmation: This is the most critical step. Do not blindly trade just because price touches a zone. Instead, wait for a clear confirmation signal on a lower timeframe. This could be:
•Candlestick Patterns: A bullish engulfing pattern, a hammer, or a doji at a support zone.
•Chart Patterns: A double bottom forming within a zone or a breakout and retest of a smaller pattern.
•Divergence: Bullish or bearish divergence on an oscillator like RSI or MACD as price interacts with the zone.
Trading Strategy & Logic
📌 Entry Logic
1.Patience is Key: Allow price to travel to a pre-identified Golden Pocket Zone. Do not chase the market.
2.Wait for Confirmation: Once price enters the zone, switch to a lower timeframe (e.g., from H4 to M15) and wait for a clear entry signal (like a bullish candlestick pattern for a long trade at a support zone).
3.Enter on Confirmation: Execute your trade once your entry criteria are met. The zone itself provides the context for the trade.
🛑 Stop Loss (SL) Placement
•For a Long Trade (at a support zone): Place your stop loss a reasonable distance below the lower boundary of the zone. The zone itself acts as a buffer.
•For a Short Trade (at a resistance zone): Place your stop loss a reasonable distance above the upper boundary of the zone.
🎯 Take Profit (TP) Strategy
•Target the Next Zone: The most logical target is the next Golden Pocket Zone in the opposite direction of your trade. If you enter a long trade from a support zone, your primary target would be the next resistance zone above.
•Partial Profits: For larger moves, you can use Fibonacci extension levels or other support/resistance structures as intermediate targets to take partial profits.
Using Default Settings
The indicator is optimized to work well out of the box for most assets.
•Lookback Days = 20: This analyzes approximately one month of daily price action, providing a relevant and recent map of the market structure.
•Zone Height (% of ADR10) = 3.0: This provides a reasonably sized zone that is large enough to absorb noise but tight enough to be precise. It is an excellent starting point for all assets.
•Min Candle Size (% of ADR10) = 60.0: This is a crucial filter. It ensures that only days with significant price movement (at least 60% of the average daily range) are used to create zones. This filters out insignificant, low-volatility days and focuses only on levels created by decisive market action.
By combining the powerful, automatically generated Golden Pocket Zones with patient observation and confirmation on lower timeframes, traders can significantly increase the probability of their trades across all major financial markets.
⚠️ IMPORTANT NOTICE
This indicator and the accompanying strategy are provided for educational purposes only. Trading financial markets involves substantial risk, and past performance is not indicative of future results. The logic described is based on a specific set of rules and does not guarantee profit. Always conduct your own analysis and risk management before entering any trade. The creators are not responsible for any financial losses incurred.
Pine Script®指標
Vanna/Charm Flow Strategy - Locked 2-WeekIn essense it just marks on the chart the OPEX dates, VIX expiration dates and when vanna/charm flows come into the market (which is pegged 2 weeks prior to the OPEX)
so nothing fancy but it is a good reminder when you see it on chart.
Pine Script®指標
Leading FVG IndicatorThis is a FVG (Fair Value Gap) Indicator
The indicator sends a Engine Call (E) - that suggests a BUY or SELL based on the H1 Bullish or Bearish bias. Once Engine call is got wait for the price to fall or rise to the next FVG and buy or sell at that FVG based on the bias. Dont buy when FVG box is red in a Bull bias or Blue in a Bear bias. Take profit based on your risk appetite. It doesnot give any exit signals.
Pine Script®指標
20-Stock Mining Basket Beta & CorrelationBeta and Correlation across a 20-stock mining basket. Move the timeline to showcase changes in beta and correlation. Not financial advice.
Pine Script®指標
Sunspot EMA CloudSunspot EMA Cloud
Overview
Sunspot EMA Cloud is a multi-layer exponential moving average framework designed to visualize market direction, internal structure, and higher-timeframe equilibrium zones within a single layout.
The script organizes EMA layers into a hierarchical structure that separates primary trend bias, medium-term momentum alignment, and long-term structural boundaries.
Primary Trend Cloud (55-200)
The foundation of the system is a fast and slow EMA pair, default values 55 and 200.
When the fast EMA is above the slow EMA, the cloud reflects bullish dominance.
When the fast EMA is below the slow EMA, the cloud reflects bearish dominance.
A gradient fill between the two averages visually highlights directional strength and transition phases.
Medium-Term EMA Cluster (30-60-120)
This layer provides internal structure confirmation.
It can be used to evaluate pullbacks, short-term acceleration, and compression within the direction defined by the primary trend cloud.
Long-Term EMA Tunnels
Three tunnel layers with default lengths 144-169, 288-338, and 576-676 represent progressively higher-order structural zones.
These zones act as dynamic support and resistance areas and help identify expansion or contraction phases in broader market structure.
Logic Framework
The system operates on three coordinated structural layers.
The 55-200 cloud defines directional bias.
The 30-60-120 cluster evaluates internal momentum alignment.
The long-term tunnels define macro structural boundaries.
Separating these elements into independent but coordinated layers provides contextual clarity while reducing visual noise.
How To Use
Use the primary trend cloud to determine directional preference.
Use the EMA cluster to assess pullbacks and short-term structure alignment.
Use the long-term tunnels to identify structural reaction zones.
Each layer can be independently enabled or disabled depending on trading requirements.
All parameters are adjustable to adapt to different markets and timeframes.
Pine Script®指標
Dollar Ladder RulerAn automatic horizontal price ladder overlay that draws clean, evenly spaced dollar levels around the current price to highlight psychological support/resistance zones and common reaction areas.
Built specifically for intraday traders, scalpers, and options traders (SPY / QQQ / large caps) who rely on whole/half dollar magnets and key dollar increments.
No manual drawing required — levels update automatically as price moves.
Level hierarchy
• $0.50 → thin white dashed
• $1.00 → thin white solid
• $2.50 → yellow dashed
• $5.00 → thick yellow
• $10.00 → thicker yellow
• $50.00 → thickest possible (major macro level)
Higher increments visually stand out more so you instantly see:
major reaction zones
bounce/rejection areas
breakout magnets
key scalping targets
Why this helps
• Highlights psychological whole/half dollar behavior
• Cleaner than manually drawing lines
• Great for 1m–5m charts
• Perfect for 0DTE / day trading
• Automatically centers around current price
• Lightweight and fast
Settings
Range Above/Below Price ($)
Controls how many levels are displayed around price.
Pine Script®指標
Weekly TrendRider longPosition 5% Zone//@version=5
indicator("Weekly EMA21 Dynamic Zone", overlay=true)
// ======================================================
// TIMEFRAME RESTRICTION
// ======================================================
// Check if chart timeframe is Weekly
isWeekly = timeframe.isweekly
// If not Weekly → show message and stop plots
if not isWeekly
label.new(bar_index, high,
"This indicator works only on Weekly timeframe",
style=label.style_label_center,
color=color.red,
textcolor=color.white,
size=size.large)
// ======================================================
// WEEKLY EMA21 CALCULATION
// ======================================================
ema21 = ta.ema(close, 21)
// Upper and Lower Levels (5% zones)
upperLevel = ema21 * 1.05
lowerLevel = ema21 * 0.95
// ======================================================
// CONDITIONAL PLOTTING (Hide on other timeframes)
// ======================================================
plotEMA = isWeekly ? ema21 : na
plotUpper = isWeekly ? upperLevel : na
plotLower = isWeekly ? lowerLevel : na
// Plot EMA
emaPlot = plot(plotEMA,
title="EMA 21",
color=color.orange,
linewidth=2)
// Plot Upper & Lower Levels
upperPlot = plot(plotUpper,
title="Upper 5% Zone",
color=color.green)
lowerPlot = plot(plotLower,
title="Lower 5% Zone",
color=color.red)
// ======================================================
// ZONE FILLING
// ======================================================
// Green Zone (EMA → +5%)
fill(emaPlot, upperPlot,
color=isWeekly ? color.new(color.green, 85) : na)
// Red Zone (EMA → -5%)
fill(emaPlot, lowerPlot,
color=isWeekly ? color.new(color.red, 85) : na)
Pine Script®指標
Dynamic Double-Touch S&R Zones [V6]This script is designed to identify high-probability Support and Resistance zones based on historical price retests. Unlike standard S&R indicators that draw simple lines, this tool identifies "Supply and Demand" areas by capturing the entire price action between the candle body and the wick extremity.
How it Works
Pivot Detection: The script identifies major price peaks and valleys using a customizable lookback period.
Confirmation (The Double-Touch): To keep the chart clean, a zone is only drawn after the price returns to a previous pivot level within a user-defined percentage threshold (Proximity Threshold).
Wick-Inclusive Zones: * Resistance: The zone covers the area from the highest candle body to the highest wick.
Support: The zone covers the area from the lowest candle body to the lowest wick.
Dynamic Extension: Zones automatically extend to the current bar, providing a "live" look at where price is currently interacting with historical levels.
Key Features
Cleaner Charts: Only displays zones that have been validated by at least two touches.
Custom Sensitivity: Adjust the Proximity Threshold to find exact matches or broader "zones" of interest.
Pine Script V6: Built with the latest TradingView standards for optimal performance and compatibility.
How to Trade with This
Area of Interest: Watching for reversal candlestick patterns (like pin bars or engulfing candles) when price enters a zone.
Target Levels: Using historical zones as potential take-profit targets for existing trades.
Market Structure: Observing if a zone holds or is broken with high volume to determine trend strength.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Always perform your own due diligence.
Pine Script®指標
HTRHere is the step-by-step process:
Copy the Code: Scroll up to the last block of code I provided (the "Final: Sessions + Days + Loopbacks (Replay Fixed)" version) and click the "Copy" button in the top right corner of the code block.
Open Pine Editor:
Go to your TradingView chart.
Look at the very bottom of the screen. You will see a tab labeled "Pine Editor". Click it to open the panel.
Paste the Code:
If there is already code in there (like a default script), delete everything so the editor is completely blank.
Paste the code you just copied (Ctrl+V or Cmd+V).
Save the Script:
Click the "Save" button (or "Untitled Script") in the top right of the Pine Editor panel.
Give it a name, for example: My Custom Session & Days.
Click Save.
Add to Chart:
Click the "Add to Chart" button (next to the Save button
Pine Script®指標
Yearly Max Drawdown TrackerThis script will help easily identify the maximum drawdown of a stock over a 1 year period. Not financial advice, make and research your own investment decisions.
Pine Script®指標
HTRHere is the step-by-step process:
Copy the Code: Scroll up to the last block of code I provided (the "Final: Sessions + Days + Loopbacks (Replay Fixed)" version) and click the "Copy" button in the top right corner of the code block.
Open Pine Editor:
Go to your TradingView chart.
Look at the very bottom of the screen. You will see a tab labeled "Pine Editor". Click it to open the panel.
Paste the Code:
If there is already code in there (like a default script), delete everything so the editor is completely blank.
Paste the code you just copied (Ctrl+V or Cmd+V).
Save the Script:
Click the "Save" button (or "Untitled Script") in the top right of the Pine Editor panel.
Give it a name, for example: My Custom Session & Days.
Click Save.
Add to Chart:
Click the "Add to Chart" button (next to the Save button
Pine Script®指標
MACD SMI PNR Pro Ver.2 [dDy879]
1. Core Oscillators
MACD: Serves as the primary trend bias and momentum indicator. A crossover signifies the potential start of a new price cycle.
SMI (Stochastic Momentum Index): This is more stable than a standard Stochastic. It helps identify "optimal" entry points (buying dips in an uptrend / selling rallies in a downtrend) using double smoothing to eliminate market noise.
2. Precision Filters
PNR (Percentile Near Range): A statistical tool that calculates the median price range over the last 21 bars. If the price is above the PNR line, the system focuses exclusively on BUY setups.
DMI (DI+ / DI-): Used to verify whether "Buyers" or "Sellers" are truly in control. The signal arrow only appears if the dominant force's strength is above 20 (DMI/ADX threshold).
3. Visuals & Signals
Dots: Represent a "Warning" signal when a basic MACD crossover occurs.
Triangles (Filtered Arrows): These are "Confirmation" signals. They only appear when MACD, SMI, PNR, and DMI conditions are all aligned simultaneously.
Dashboard: Provides a Multi-Timeframe (MTF) summary, ensuring that the current trade direction is supported by the trend in higher timeframes.
Summary: This code doesn't just look at price crossovers; it ensures that Trend, Momentum, Statistical Value, and Volume Strength are all pointing in the same direction before suggesting a trade.
Pine Script®指標
MNQ PRO SCALP (EMA + VWAP + Structure) chat made this first version of code using chat gpt by scush123
Pine Script®指標
ATR SCALERThis allows you to manually input the ATR STRUCTURE the ORB and PM levels manually on the fly. This has no real mathematical value since its all manual entrys this is primarily for tracking purposes.
Pine Script®指標
Ripster RVOL Saty ATR Levels v6 - NewRipster RVOL Saty ATR Levels v6 is a clean, options-focused dashboard that combines Ripster multi-timeframe trend bias, real-time RVOL analysis, and the Saty ATR framework into a single, readable on-chart layout.
This version introduces view-safe controls to keep charts readable on lower timeframes while preserving higher-timeframe context.
What this script shows
1) Ripster Multi-Timeframe Bias (LT Panel)
Displays bullish/bearish bias from higher-timeframe Ripster EMA clouds:
1H
Daily (two EMA sets)
Weekly (5/12 and 34/50)
Helps align intraday trades with higher-timeframe structure.
2) Short-Term Price Action (ST Panel)
Uses Ripster clouds (34/50 and 5/12) to show short-term direction.
Optional setting to calculate ST signals on 10-minute data, regardless of chart timeframe.
3) RVOL Panel
Current candle volume (clean, formatted)
RVOL Now (%)
RVOL Previous (%)
Color-coded thresholds to quickly identify abnormal volume.
4) Saty ATR Levels (Table)
Displays:
Period range vs ATR %
Upper / lower trigger levels
±1 ATR reference levels
Optional Calls / Puts labeling for options traders.
Designed for context, not clutter.
5) Optional Saty ATR Level Lines
Stepline plots for:
Previous close
Upper / lower trigger
±1 ATR
Optional ±2 ATR extensions
View-Safe Enhancements (v6)
To prevent candle compression on small intraday timeframes, this version adds smart visual controls:
“Show Saty ATR lines only on TF ≥ 30m” (recommended)
When enabled, Saty ATR plot lines are automatically hidden below 30-minute charts.
The Saty table remains visible, so information is never lost.
Auto-disable ±2 ATR extensions on low TFs
Reduces autoscale distortion from far-away levels.
Status label anchored in-range
Prevents y-axis stretching caused by labels plotted far from price.
These changes keep execution charts clean while preserving higher-timeframe structure.
Presets
Options Scalper – Clean, focused view for fast decisions
Options Swing – Full context with ATR extensions (30m+ recommended)
0DTE Only – Compact intraday layout with RVOL and bias
A master toggle allows you to quickly enable or disable the entire dashboard.
Best Use Cases
Intraday / Scalping: Use ST + RVOL + Saty table without line clutter
Options Trading: Fast ATR context with Calls/Puts framing
Swing Trading: Enable ATR plots on 30m+ for structure and targets
Notes
ATR plot lines are intentionally limited on lower timeframes to avoid chart compression.
If you prefer seeing all ATR lines on low TFs, simply disable the ≥30m toggle (not recommended for readability).
Works best on liquid tickers with reliable extended-hours data.
Pine Script®指標
Intraday LevelsDescription
Intraday Levels is a lightweight, real-time price level indicator designed for intraday and short-term trading. It automatically tracks and labels key market levels as price evolves throughout the trading day, helping traders quickly identify important support and resistance zones without manual adjustment.
The indicator focuses on session-based highs and lows, updating live as new price action forms.
What It Shows
Premarket High (PMH)
Premarket Low (PML)
Afterhours High (AHH)
Afterhours Low (AHL)
Day High (DH) – Regular Trading Hours
Day Low (DL) – Regular Trading Hours
Each level is clearly labeled on the chart using concise tags (PMH, PML, AHH, AHL, DH, DL), with an optional price display for quick reference.
Key Features
Automatic level tracking
Levels update in real time as price moves—no manual refreshing or adjustments required.
Clean, uncluttered visuals
Uses labels only (no excessive lines), keeping charts readable on lower timeframes like 1m–10m.
Session-aware logic
Separately tracks Premarket, Regular Trading Hours, and Afterhours price action.
Graceful handling of extended hours data
Works reliably on symbols such as QQQ and SLV, even when premarket or afterhours data is limited or inconsistent.
Customizable labels
Toggle price display on labels
Adjust label offset for better visibility
Built for Pine Script v6 stability
Written with minimal, robust logic to avoid common compilation and runtime issues.
How to Use
These levels often act as intraday support and resistance, areas where price may:
Stall or consolidate
Reverse or reject
Break out with momentum
They are especially useful for:
Opening range context
VWAP and EMA confluence
Scalping and day trading setups
Options and index ETF trading
Best Timeframes
1m, 3m, 5m, 10m for scalping
15m–30m for intraday structure
Can also be used on 1h for session reference
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. Always manage risk and confirm setups with your own trading plan.
Pine Script®指標
European market strategy analysisProduct: XAUUSD(UTC+8)
Analysis time zone: The opening high and low closing demand marks of the third H4 of the day
Operation entry time zone: M5
Necessary condition: the entity is greater than the line (the line is greater than the side of the entity to cancel the opening or closing mark)
Operation strategy one: callback FIBO (0.382-0.618)~0 and 1 are opening and closing respectively
Stop loss and find effective support from the K bar of FIBO (0.382-0)
Take profit is 1.5 times or 1 times of stop loss
Operation strategy 2: False breakthrough in reverse direction ~ break through FIBO (0 or 1) but not exceed FIBO (1.15 or -0.15)
Stop loss is FIBO (1.15 or -0.15)
Take profit is FIBO (0 or 1)
商品:XAUUSD(UTC+8)
分析時區:當日第三根H4的開高低收需標記
操作進場時區:M5
必要條件:實體大於線(線大於實體的一邊取消開或收標記)
操作策略一:回調FIBO(0.382-0.618)~0和1分別為開和收
止損找FIBO(0.382-0)的K棒具有效支撐
止盈為止損的1.5倍或1倍
操作策略二:假突破反向~突破FIBO(0或1)但不超過FIBO(1.15或-0.15)
止損為FIBO(1.15或-0.15)
止盈為FIBO(0或1)
Pine Script®指標
Institutional MA Bounce & Support Screener. Description
The Philosophy
Top-tier traders don’t just buy stocks because they are up; they buy them because they show signs of institutional accumulation. This indicator is designed to find "High-Quality Support" signals—instances where a stock in a primary uptrend pulls back to a key moving average (10 SMA, 21 EMA, or 50 SMA) and is met with aggressive buying that drives the price to close near the daily highs.
Key Components
* Trend Alignment: Automatically filters out "laggards" by only flagging setups when price is above the 50 SMA.
* Proximity-Based Bouncing: Unlike rigid indicators that require a "perfect" touch, this uses an editable Buffer %. It catches those high-conviction "front-runs" where price reverses just before hitting the line.
* Volume Conviction: Integrates Relative Volume (RVOL). It ensures you aren't looking at a dead-cat bounce, but a high-volume reversal backed by institutional participation.
* Daily Closing Range (DCR): The final confirmation. It measures the finishing position of the day. A high DCR (>85%) at an MA is a primary signal of "support found."
How to Use with the TradingView Screener (Beta)
This script is optimized with "bundled security calls" to avoid errors in the new TradingView Screener.
* Add the script to your chart.
* Open the Stock Screener (Beta).
* Add columns for Bounce 10SMA, Bounce 21EMA, or Bounce 50SMA.
* Filter for Equals 1 to find stocks currently tagging those levels.
* Combine with the Daily Closing Range filter (> 90) for the ultimate "Power Setup."
Technical Settings
* RelVol Lookback: Compare today's volume against the 20, 50, or 200-day average.
* RelVol Threshold: Set the multiplier (e.g., 1.5x) to find true volume surges.
* Bounce Buffer: Adjust from 0.5% (strict) to 2.0% (loose) depending on market volatility.
A Pro-Tip for your users:
The best setups often occur when the Relative Volume is > 1.2 and the Daily Closing Range is > 90% on the day of the bounce. This indicates that institutions didn't just defend the level—they overwhelmed the sellers by the closing bell.
Would you like me to help you draft the "Release Notes" for when you update this script with the Gemini Confluence Trigger features we discussed?
Pine Script®指標
1S1K - NQ RangeOne Shot · One Kill is a structured breakout strategy designed for the New York open, built for traders who understand that consistency does not come from trading more, but from trading better.
Pine Script®指標
5m, 10m, 60m 200 SMA - Black Optimized200SMA for 5 minute, 10 minute, and 60 minute charts mapped on any timeframe. Useful for local supports and resistance on day and swing trades, or pinpointing entries and exits.
Pine Script®指標






















