Pine Script® indicator
Candlestick analysis
Asia Session + London ORB (NY Time)This TradingView indicator automatically identifies and marks key price levels from the **Asia trading session** and the **London Opening Range Breakout (ORB)** in **New York time (NY)**. It is designed for traders who want a clear visual reference for breakout and reversal strategies across major sessions.
**Features:**
1. **Asia Session High, Low, and Midpoint:**
* Automatically detects the high, low, and midpoint of the Asia session (default: 7:00 PM – 3:00 AM NY time).
* Draws a semi-transparent box to visualize the Asia session range.
* Extends levels forward for breakout or range-trading reference.
2. **London ORB High, Low, and Midpoint:**
* Marks the first 15-minute opening range of the London session (default: 3:00 AM – 3:15 AM NY time).
* Draws a semi-transparent box for the London ORB.
* Calculates midpoint and extends lines for easy breakout observation.
3. **Customizable Colors and Line Widths:**
* Users can set colors for session highs, lows, midpoints, and session boxes.
* Adjustable line width for better visibility on charts.
4. **Fully Automated:**
* No manual drawing required.
* Works for futures, forex, indices, or any market symbol.
**Use Case:**
* Identify breakout levels for **London session** relative to **Asia session range**.
* Spot potential reversals or continuation patterns at session highs/lows.
* Quick visual reference for high-probability intraday setups.
**Technical Notes:**
* Built in **Pine Script v6** for TradingView.
* Uses NY timezone by default but sessions can be customized.
* Compatible with intraday and higher timeframes.
Pine Script® indicator
OTT + Supertrend - cift Teyit v3OTT + Supertrend Strategy - Brief Explanation
This is a technical analysis strategy combining two popular trend-following indicators:
OTT (Optimized Trend Tracker):
Uses VAR moving average and ATR (Average True Range)
Tracks price movements in an optimized way
Determines trend direction and strength
Supertrend:
ATR-based indicator
Creates dynamic support/resistance levels above or below price
Green line indicates uptrend, red line indicates downtrend
Combined Usage:
Provides strong trend confirmation when both indicators signal the same direction
OTT green + Supertrend green = Buy signal
OTT red + Supertrend red = Sell signal
Reduces false signals and confirms trend strength
Advantages: Double confirmation system, more reliable entry-exit points, early warning on trend changes
Caution: May generate false signals in sideways markets, should be supported with additional indicators.
Pine Script® indicator
Hieu gold m2 1688This indicator compares global gold price dynamics with global M2 liquidity.
The M2 aggregate is constructed from four major economies the United States, China, the Eurozone, and Japan which together account for roughly 80 percent of global GDP and the vast majority of global liquidity creation.
By comparing gold with this core M2 proxy, the indicator highlights how changes in global liquidity influence long term gold valuation and macro cycles.
It is designed for macro analysis rather than short term trading and focuses on trend and regime shifts in monetary conditions.
Pine Script® indicator
Pine Script® indicator
Altangadas Megad //@version=5
indicator("VWAP/MVWAP/EMA Precise Final", overlay = true)
// --- 1. Signal Settings ---
vwapLength = input.int(1, title="VWAP Length", minval=1)
emaLength1 = input.int(7, title="Signal EMA 1 (7)", minval=1)
emaLength2 = input.int(25, title="Signal EMA 2 (25)", minval=1)
mvwapLength = input.int(21, title="MVWAP Length", minval=1)
// --- RSI Settings ---
rsiLength = input.int(14, title="RSI Length")
rsiLimit = input.int(70, title="RSI Filter Level")
// --- 2. Trend EMA Settings ---
ema50Length = input.int(50, title="Trend EMA 50")
ema100Length = input.int(100, title="Trend EMA 100")
ema200Length = input.int(200, title="Trend EMA 200")
ema800Length = input.int(800, title="Institutional EMA 800")
// --- Calculations ---
vwapValue = ta.vwap(hlc3)
cvwap = ta.ema(vwapValue, vwapLength)
mvwap = ta.ema(vwapValue, mvwapLength)
rsiValue = ta.rsi(close, rsiLength)
ema1 = ta.ema(close, emaLength1)
ema2 = ta.ema(close, emaLength2)
ema50 = ta.ema(close, ema50Length)
ema100 = ta.ema(close, ema100Length)
ema200 = ta.ema(close, ema200Length)
ema800 = ta.ema(close, ema800Length)
// --- Plotting Lines ---
plot(cvwap, color=color.blue, linewidth=2, title="VWAP", style=plot.style_linebr)
plot(mvwap, color=color.fuchsia, linewidth=2, title="MVWAP", style=plot.style_linebr)
plot(ema1, color=color.new(color.yellow, 50), title="EMA 7")
plot(ema2, color=color.new(color.orange, 50), title="EMA 25")
plot(ema50, color=color.green, linewidth=1, title="EMA 50")
plot(ema100, color=color.blue, linewidth=1, title="EMA 100")
plot(ema200, color=color.gray, linewidth=2, title="EMA 200")
plot(ema800, color=color.yellow, linewidth=4, title="EMA 800")
// --- Signal Logic (Анхны огтлолцол дээр нэг удаа сигнал өгөх) ---
// LONG: EMA болон VWAP бүгд MVWAP-аас дээш гарахад
longCond = (ema1 > mvwap) and (ema2 > mvwap) and (cvwap > mvwap)
// SHORT: EMA болон VWAP бүгд MVWAP-аас доош ороход
shortCond = (ema1 < mvwap) and (ema2 < mvwap) and (cvwap < mvwap)
// Зөвхөн төлөв өөрчлөгдөх мөчийг барих
longTrigger = longCond and not longCond and (rsiValue < rsiLimit)
shortTrigger = shortCond and not shortCond and (rsiValue > (100 - rsiLimit))
// --- Tiny Signals ---
plotshape(longTrigger, title="L", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.tiny, text="L")
plotshape(shortTrigger, title="S", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.tiny, text="S")
// --- Alerts ---
alertcondition(longTrigger, title="Long Alert", message="XAUUSD: LONG!")
alertcondition(shortTrigger, title="Short Alert", message="XAUUSD: SHORT!")
Pine Script® indicator
IFVG Flow (M3/M5) - Reversal Pink / Continuation Blueddddddddddddddddddddddddddddddddddddddddddddddddddd
Pine Script® indicator
NY PM Session Highlighter (For Hawaiian Traders)Purpose: This script is designed for traders targeting the New York PM Session (1:30 PM – 4:00 PM ET). Based on 5-year historical data for ES and NQ, this window represents a high-probability period for 2:1 Risk-to-Reward setups as institutional traders rebalance and drive price toward the daily close.
Key Features:
DST-Automated Tracking: Uses the America/New_York timezone to ensure the lines stay accurate during Daylight Saving transitions.
Visual Guidance: Draws a dashed vertical line at the 1:30 PM ET start and the 4:00 PM ET close.
Session Boxing: Highlights the background in a soft blue to define the "trading zone," helping you ignore the low-volume "lunch doldrums" that occur immediately before.
Hawaii-Friendly: Automatically adjusts to your local Hawaii Standard Time (HST) so you don't have to calculate the 5 or 6-hour offset manually.
Trade Logic:
Wait for the 1:30 PM ET (8:30 AM HST) line.
Look for a sweep of the 12:00 PM – 1:00 PM (Lunch) range.
Enter on a Market Structure Shift (MSS) or Fair Value Gap (FVG).
Target a 2:1 Reward-to-Risk ratio, aiming to exit by the 4:00 PM ET line.
Pine Script® indicator
Quartile Close HighlighterThis indicator highlights price action by coloring candles based on their closing relative to their range. It paints the candle green if the close is within the top quartile (upper 25%) and red if the close is within the lower quartile (bottom 25%).
Pine Script® indicator
Best Buying & Selling Flip Zone @MaxMaserati 3.0Best Buying & Selling Flip Zone 3.0 🐂🐻
Best Buying & Selling Flip Zone 3.0 is an advanced, multi-timeframe Price Action tool designed to identify high-probability institutional supply and demand zones.
By analyzing candle range and body size (Expander vs. Normal candles), this indicator categorizes market structure shifts into three distinct tiers of strength (A+++, A++, A+). It includes a built-in Trade Manager, Volume Tracking, and a unique "Defender/Attacker" Multi-Timeframe (MTF) entry confirmation system.
🚀 Key Features
Multi-Timeframe Analysis: Monitor Higher Timeframe (HTF) zones while trading on a Lower Timeframe (LTF).
Tiered Setup Grading: Automatically classifies zones based on the strength of the candle engulfing action (King Slayer, Crusher, Drift).
Smart Entry Confirmation: The script can wait for price to tap an HTF zone and then automatically search for a confirmation pattern on the current timeframe before signaling a trade.
Built-in Trade Management: Visualizes Entry, Stop Loss (SL), and Take Profit (TP) levels with customizable Risk:Reward ratios.
Volume Tracking: Monitors the volume utilized to create a zone and tracks "remaining" volume as price tests the zone.
Zone Deletion Logic: Automatically removes zones that have been invalidated by either a wick or a candle close.
🧠 How It Works: The "A-Grade" Logic
The indicator analyzes candles based on their body-to-range ratio to define "Expander" (Explosive move) vs. "Normal" candles. It then looks for engulfing behaviors to create zones:
A+++ (King Slayer):
Logic: A Bullish Expander engulfs a Bearish Expander (or vice versa).
Significance: This is the strongest signal, indicating a massive shift in momentum where aggressive buyers completely overwhelmed aggressive sellers.
A++ (Crusher):
Logic: A Bullish Expander engulfs a Bearish Normal candle.
Significance: Strong momentum overcoming standard price action. High probability.
A+ (Drift):
Logic: A Bullish Normal candle engulfs a Bearish Normal candle.
Significance: A standard flip zone. Good for continuation plays but less aggressive than KS or CR setups.
🛠️ Functionality Guide
1. General Filters & Timeframes
Higher Timeframe: Select a timeframe higher than your chart (e.g., Select 4H while trading on 15m). The indicator will draw the major zones from the 4H.
Deletion Logic:
Wick (Hard): Zone is removed immediately if price touches the invalidation level.
Close (Soft): Zone is removed only if a candle closes past the invalidation level.
2. LTF Entry Confirmation (The "Master" Switch)
When Show LTF Entry Logic is enabled, the indicator does not signal immediately upon an HTF zone creation. Instead:
It waits for the price to retraced and touch the HTF zone.
Once touched, it scans the current timeframe for a valid flip setup (KS, CR, or DR).
It creates a tighter entry box and draws trade lines only when this confirmation occurs.
3. Trade Management
Risk:Reward: Set your desired RR (e.g., 2.0).
SL Padding: Add breathing room (ticks) to your Stop Loss.
SL Source: Choose between a safer Stop Loss (based on the HTF zone) or a tighter Stop Loss (based on the LTF confirmation candle).
4. Volume Stats
Labels display the volume involved in the zone's creation. As price taps the zone, the volume is "depleted" from the label, giving you insight into the remaining order flow absorption.
🎨 Visual Customization
Colors: Fully customizable colors for Buyers (Green) and Sellers (Red) zones across all three strength tiers.
Labels: Toggle technical names, touch counts, and timeframe labels.
Lines: Option to show "Aggressive Open Lines" to mark the exact opening price of the flip zone extended forward.
⚠️ Disclaimer
This tool is for educational purposes and chart analysis assistance only. Past performance of a setup (A+++/King Slayer) does not guarantee future results. Always manage risk and use this in conjunction with your own trading strategy.
Pine Script® indicator
Buyers & sellers Candle Control Dominance Zone @MaxMaserati 3.0Description
The Buyers & Sellers Candle Control Dominance Zone is a surgical price-action tool designed to identify and project key supply and demand zones derived from candle anatomy across multiple timeframes.
By splitting candles into "Sellers Control" (upper wick/shadow) and "Buyers Control" (lower wick/shadow) regions, this script visualizes exactly where price rejection and absorption are occurring. With the new HTF Engine, you can now view these institutional rejection zones from a Higher Timeframe (e.g., 4H) while trading on a Lower Timeframe (e.g., 15m).
How it Works
The indicator identifies specific "Control Zones" based on the battle between buyers and sellers:
Live Control (Current & HTF): Real-time monitoring of the developing candle. See a 4H wick forming live while watching the 1m chart.
Last Closed Control (Current & HTF): Projects the zones from the most recently completed candle.
Dominance Zones (BuBC & BeBC):
BuBC (Bullish Body Close): A "Dominance Zone" triggered when a candle closes above the previous candle's high. Signifies strong bullish momentum.
BeBC (Bearish Body Close): A "Dominance Zone" triggered when a candle closes below the previous candle's low. Signifies aggressive selling pressure.
Key Features
Multi-Timeframe (MTF) Overlay: Plot 4H, Daily, or Weekly control zones directly on your lower timeframe scalping charts.
Smart Labeling: HTF labels automatically update to show the zone type (e.g., "Sellers Control (Live) ") and whether the last candle was a Dominance candle (BuBC/BeBC).
Dynamic Extension: Zones are projected forward to help you catch retests of rejection levels.
Alerts Included: Built-in alerts trigger when price crosses into a Dominance Zone (BuBC/BeBC), allowing you to set it and forget it.
Can be use as:
Support & Resistance: Use Buyers Control zones (lower wicks) as demand zones for longs and Sellers Control zones (upper wicks) as supply zones for shorts.
Trend Confirmation: A BuBC zone often acts as a launchpad for continued upside. If price falls back into a BuBC zone and rejects, it is a high-probability continuation signal.
Fractal Entry: Use the HTF zones to find the "Big Picture" levels, then use the Current TF zones to refine your entry with precision.
Settings
Display Filter: Toggle Current TF zones (Live, Closed, BuBC, BeBC) independently.
Higher Timeframe Settings: Enable/Disable HTF overlay and select your preferred timeframe (e.g., 240 for 4H).
Visuals: Fully adjustable transparency, colors, and extension lengths to keep your chart clean.
Pine Script® indicator
Funnelzon Graded Buy and Sell Signals (LITE) MFI MTFFunnelzon Buy and Sell Signals (EMA Zones) – LITE is a lightweight overlay indicator built for scalping and short-term trading. It generates BUY/SELL signals, grades each signal (A+ to F), and provides a clean Confirmation Box that summarizes multi-timeframe context so you can make faster, more structured decisions.
How it works
Signal Engine (LTF)
Signals are triggered using an ATR-based “scalp helper” logic with adjustable sensitivity.
A stop-state system helps reduce repeated or noisy entries.
Signal Scoring & Grades (A+ → F)
When a signal appears, it is evaluated by a context pipeline that considers:
Adaptive momentum/flow (AMF)
ALMA trend alignment
Support/Resistance proximity
Swing structure behavior
Market regime / trend strength (ADX-based)
The result is a score mapped to a grade:
A+ / A = strongest signals
B / C = mixed conditions
D / F = low-quality conditions
Optional Filters
MFI Filter: Helps avoid signals that do not meet Money Flow conditions.
HTF Confirmation (MTF): Uses HTF1 and HTF2 bias. Choose strict filtering or soft alignment.
Confirmation Box (Dashboard)
The box displays:
HTF State: Trend Long / Trend Short / HTF Conflict / Neutral
Market Mode: Trend / Pullback / Conflict
Trade Bias: Long-only / Short-only / Wait
ENTRY NOW? = “YES” when HTF bias and LTF signal align
MFI status + HTF1/HTF2 direction
Optional Structure Tools
EMA overlays: 9 / 12 / 20 / 50 / 100 / 200
Auto Supply/Demand zones (pivot-based, ATR thickness, configurable extension and limits)
Best practices (recommended workflow)
Prefer trading A+ / A signals only.
Trade in the direction of HTF State when possible.
If Market Mode shows PULLBACK or CONFLICT, reduce risk or wait for better alignment.
Use Supply/Demand zones and EMAs for structure (targets, invalidation, and bias).
Important: Confirmation with Stochastic + MACD
This script is a signal + context tool, not a guarantee. To validate signal confirmation, it is strongly recommended to use:
Stochastic Oscillator (momentum/exhaustion confirmation)
MACD (trend momentum and direction confirmation)
Only take trades when the script signal and your confirmation indicators agree.
Alerts
Includes alert conditions for:
Buy Signal
Sell Signal
Any Signal
ENTRY NOW (HTF + LTF aligned)
ENTRY NOW Long / ENTRY NOW Short
Disclaimer
This indicator is for educational purposes and does not constitute financial advice. Always backtest, manage risk, and confirm signals with your own rules.
Pine Script® indicator
RLP V4.3 -Long Term Support/Resistance Levels (Refuges-Shelters)// Introduction //
We have utilized the Zigzag library technology from ©Trendoscope Pty Ltd for Zigzag generation, allowing users the freedom to choose which of the different Zigzags calculated by Trendoscope as "Levels and Sub-Levels" is most suitable for generating ideal phases for evaluation and selection as "most preponderant phases" over long-term periods of any asset, according to its particular behavior based on its age, volatility, and price trend.
// Theoretical Foundation of the Indicator //
Many traditional institutional investors use the latest higher-degree market phase that stands out from others (longest duration and greatest price change on daily timeframe) to base a Fibonacci retracement on whose levels they open long-term positions. These positions can remain open to be activated in the future even years in advance. The phase is considered valid until a new, more preponderant phase develops over time, at which point the same strategy is repeated.
// Indicator Objectives //
1) Automatically find the latest most preponderant long-term phase of an asset, analyzing it on daily timeframe while considering whether the long-term market trend is bullish or bearish.
2) Draw a Fibonacci Retracement over the preponderant phase (reversed if the phase is bullish).
3) The indicator automatically numbers and locates the 3 most preponderant phases, selecting Top-1 for initial Fibo drawing.
4) If the user disagrees with the indicator's automatic selection, they have the freedom to choose any of the other 2 Top phases for the Fibo drawing and its levels.
5) If the user disagrees with the amplitude or frequency of the initially drawn Zigzag phases, they can modify the Zigzag calculation algorithm parameters until one of the Top-3 matches the phase they had in mind.
6) As an experimental bonus, the indicator runs a popularity contest (CP) of "bullseye" daily price (OHLC) matches, subject to user-defined tolerance ranges, against all Fibo levels of the Top 3 selected phases, to verify which phase the market prices are validating as the most popular for placing trades. Contest results are displayed in the POP. CONTEST column of the Top-3 phases table. If the contest detects a change in the winning phase, a switch can be enabled to activate an alert that the user can utilize with TradingView's alert creator to display an alarm, send an email, etc.
7) This indicator was designed for users to find the preponderant long-term phase of their assets and manually record the date-price coordinates of the i0-i1 anchors of the preponderant phase. The Top-1 phase coordinates are shown in the Top-3 phases table where they can be captured. The date-price coordinates of all HH and LL pivots, from all Zigzag phases, can be displayed via a switch. With the pivots, the user can select a different phase than those automatically found by the indicator, according to the conclusions of their own research. Subsequently, the user can forget about this RLP indicator for a while and move on to apply in their normal trading our RLPS indicator (Simplified Long-Term Shelters), in which they can draw and simultaneously track the long-term shelters of up to 5 different assets, simply by entering their corresponding date-price coordinates, previously located with this RLP indicator or through their own observation.
// Additional Notes //
1) As of the this V4.3 publication date (01/2026), the Zigzag generation parameters were adjusted by default to find the long-term preponderant phases for the following assets: Bitcoin, Ethereum, Bitcoin futures BTC1! (all generated due to the 2020-2021 pandemic). It also provides by default the confirmed preponderant phases for the following assets: Apple, Google, Amazon, Microsoft, PayPal, NQ1!, ES1! and SP500 Cash.
2) Prices, phases, and levels shown on the graphic chart correspond to results obtained using daily Bitcoin data from the Bitstamp exchange, BTCUSD:BITSTAMP (popular here in Europe).
3) Any error corrections or improvements that can be made to the phase selection algorithms or the CP phase popularity contest algorithm will be highly appreciated (statistics and mathematics, among many other sciences, are not particularly our strong suit).
4) We sincerely regret to inform you that we have not included the Spanish translation previously provided, due to our significant concern regarding the ambiguous rules on publication bans related to indicators.
4) Sharing motivates. Happy hunting in this great jungle!
Pine Script® indicator
BRN Dual Momento DUAL MOMENTUM PRO V17.6 is a high-performance technical indicator designed to filter out market noise and identify high-probability trend entries. Unlike simple moving average crossovers, this system employs a hierarchical logic structure: a signal is only generated when price action, trend direction, and volatility momentum are in perfect alignment.
The system features a Cyan (Bullish) and Magenta (Bearish) visual identity, with a dynamic Gradient Cloud that visualizes the intensity of the market momentum in real-time.
HOW IT WORKS
The indicator processes market data in three distinct stages:
1. The Core Engine (The Trigger)
Before looking at any indicators, the system validates the price action itself:
Trend Alignment: Price must close above (for Buy) or below (for Sell) two customizable Moving Averages (Fast & Slow). You can configure the type (HMA, EMA, SMA, etc.) and length of each.
Candle Body Strength: The signal candle must show real intention. Its body size is compared to the average of the last X candles. Dojis and weak candles are ignored.
2. The Validation Layer (The Filters)
Once the Core Trigger is met, the signal must pass through a strict checklist to be confirmed:
ATR Breakout Filter: Prevents trading in choppy/sideways markets. The price must break out of the ATR Volatility Channel to confirm a valid move.
RSI Thresholds: Smart filtering that defines "Buy Zones" and "Sell Zones," avoiding entries at extreme overbought or oversold levels.
MACD Confirmation: Ensures the momentum histogram supports the direction of the trade.
Momentum Expansion: (Optional) Requires the distance between the Moving Averages to be expanding, ensuring you enter during acceleration, not contraction.
3. Visual Intelligence (The Aesthetics)
Dynamic Gradient Cloud: The space between the moving averages is filled with a dynamic gradient color. The more intense the color, the stronger the momentum.
Note: The visual cloud is independent of the signal logic. You can keep the visual cloud on while turning off the momentum filter, giving you full control over your chart's aesthetics.
Clean Interface: Focus purely on Price, MAs, and Signals. No clutter.
SETTINGS & CUSTOMIZATION
Group 1 (Core): Configure your Fast/Slow MAs (Type & Length) and Candle Strength sensitivity.
Group 2 (Filters): Toggle every filter On/Off independently (ATR Channel, RSI, MACD, Momentum).
Group 3 (Visual): Customize the Cyan/Magenta color palette, toggle the ATR Channel lines, and control the Gradient Cloud visibility.
STRATEGY TIPS
The "Cyan" Signal: Indicates a confirmed Bullish Breakout with volume and momentum support.
The "Magenta" Signal: Indicates a confirmed Bearish Breakdown.
Ping-Pong Mode: The script includes an alternating signal mode (Buy -> Sell -> Buy), preventing multiple signals in the same direction.
Perfect for traders looking for a "clean chart" approach with sophisticated underlying logic.
Tradução Rápida dos Pontos Chave (Resumo):
Hierarchical Logic: Explica que o indicador segue uma ordem (Gatilho -> Filtros).
ATR Breakout: Destaca que ele evita mercados laterais (choppy).
Gradient Cloud: Enfatiza a nuvem visual de momentum.
Cyan/Magenta: Reforça a identidade visual moderna que você escolheu.
Pine Script® indicator
Cup & Handle (Zeiierman)█ Overview
Cup & Handle (Zeiierman) is a classic continuation-pattern scanner that detects both bullish Cup+Handle and bearish Inverted Cup+Handle structures using a compact pivot stream. It’s designed to highlight rounded reversals back to a “rim” level, followed by a smaller pullback (“handle”) before a potential continuation move.
⚪ What It Detects
A Cup & Handle (Bull) forms when price makes a rounded decline from a left rim, bottoms, then climbs back to a similar right rim. After returning to the rim, price forms a handle (a smaller pullback) that stays within an allowed retracement range. This pattern often precedes a bullish continuation attempt.
An Inverted Cup & Handle (Bear) is the mirrored version. Price makes a rounded rise to a left rim, tops, then declines back to a similar right rim. After returning to that rim, price forms a handle (a smaller bounce) that stays within the allowed retracement range. This pattern often precedes a bearish continuation attempt.
█ How It Works
⚪ 1) Pivot Extraction (Swing Compression)
The script first converts raw candles into a small set of meaningful swing pivots using ta.pivothigh() and ta.pivotlow() with Pivot span. A pivot is accepted only after it is confirmed by the lookback window, which helps reduce noise.
Key effect:
Higher Pivot span = fewer, stronger pivots (cleaner patterns)
Lower Pivot span = more pivots (more patterns, more noise)
⚪ 2) Pattern Framing (4-Point Structure)
When at least four pivots exist, the script maps them into a fixed sequence:
For a bull Cup+Handle sequence: High → Low → High → Low
These are treated as:
L = left rim pivot
B = cup bottom pivot
R = right rim pivot
H = handle pivot
For a bear inverted Cup+Handle sequence: Low → High → Low → High
Mapped similarly, but inverted.
This “4-pivot” structure is the minimum shape needed to define a cup and a handle without overfitting.
⚪ 3) Rim Similarity Filter (Cup Quality Control)
The script checks if the left rim and right rim are close enough to be considered a proper cup rim:
Rim similarity tolerance (%) controls this.
Lower tolerance = only very clean symmetric rims
Higher tolerance = allows uneven rims (more detections)
⚪ 4) Handle Depth Filter (Reject Weak or Messy Handles)
The handle is validated by measuring how deep it retraces relative to the cup depth:
Handle Retraction = |rim − handle| / |rim − bottom|
The handle must fall between:
Handle retrace min
Handle retrace max
This prevents:
tiny “non-handle” wiggles (too shallow)
deep pullbacks that break the structure (too deep)
█ How to Use
⚪ Interpreting a Bull Cup & Handle
Treat it like a continuation setup built around a key breakout level:
Cup forms
Handle forms
Breakout happens above this level
Once price returns to this breakout zone and the handle stays controlled, the structure may attempt to continue upward.
Common behaviors after a clean signal:
Push above the breakout level
Brief retest/acceptance near the breakout zone
Continuation toward the projected target if momentum holds
⚪ Interpreting a Bear Inverted Cup & Handle
Treat it like a bearish continuation/rollover setup built around the same breakout concept:
Cup forms (inverted)
Handle forms
Breakout happens below this level
Once price returns to this breakout zone and the handle stays controlled, the structure may attempt to continue downward.
Common behaviors after a clean signal:
Drop below the breakout level
Retest from underneath
Continuation toward the projected target if selling pressure persists
█ Settings
Pivot span – pivot sensitivity. Higher = smoother pivots, fewer signals. Lower = more pivots, more signals/noise.
Rim similarity tolerance (%) – rim quality filter. Lower = stricter symmetry, higher = more permissive detection.
Handle retrace min – minimum handle depth (filters weak handles).
Handle retrace max – maximum handle depth (filters messy/deep handles).
Invalidation (handle max retrace %) – “maximum tolerated damage” for handle move before the structure is considered broken.
Require breakout confirmation – only trigger when price closes beyond the rim in the expected direction.
Target multiplier (× cup depth) – scales how far the projection target is. Lower = closer targets; 1.0 = classic depth target.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Pine Script® indicator
DR Pattern Strategy Beta1DR Pattern Strategy Beta1
Test only
DR Pattern Strategy Beta1
Test only
DR Pattern Strategy Beta1
Test only
Pine Script® indicator
alerts scriptThis script helps traders identify important institutional price zones and receive BUY / SELL alerts automatically when the market reaches those zones, instead of watching charts manually.
The entire system is designed to:
- Reduce manual chart monitoring
- Provide real-time actionable alerts
Pine Script® indicator
Peaks and Troughs📄 Script Description – EN (English)
Peaks and Troughs (P&T) is a price action indicator that identifies confirmed swing highs (peaks) and swing lows (troughs) based on structural trend changes.
Key features:
Trend-break based peak and trough confirmation
Optional engulfing signal at confirmed swing points
Body-break based Mother Bar (Outside Bar) range marking
Clean chart output with only the latest active levels
Unified alert system using Any alert() function call
Designed for discretionary trading, market structure analysis and automation-ready alerting.
----------------------------------------------------
📄 Script Description – HU (Magyar)
A Peaks and Troughs (P&T) egy price action alapú indikátor, amely megerősített csúcs- (peak) és völgypontokat (trough) azonosít trendváltás alapján.
Főbb jellemzők:
Trendtörés alapú peak és trough meghatározás
Opcionális engulfing jelzés megerősített swing pontokon
Body-break alapú Mother Bar (Outside Bar) tartomány jelölés
Letisztult chart, mindig csak az aktuális szintekkel
Egységes riasztási rendszer (Any alert() function call)
Diszkrecionális kereskedéshez, market structure elemzéshez és automatizált riasztásokhoz optimalizálva.
Pine Script® indicator
Stage 2 Weinstein Entry - Volumi & SMA (SNDK-like)beta testing stage 2 weinstein
allow to have signal when candle are over SMA 150 with volume
Pine Script® indicator
Base Candle Detector//@version=6
indicator("Base Candle Detector", overlay=true)
// Calculate candle metrics
bodySize = math.abs(close - open)
totalRange = high - low
// Define base as body being 50% or less of total range
// v6 maintains the logic but ensures cleaner internal boolean evaluation
isBase = bodySize <= (totalRange * 0.5)
// Plotting the shape above the candle
plotshape(isBase,
title="Base Candle",
style=shape.diamond,
location=location.abovebar,
color=color.yellow,
size=size.small)
Pine Script® indicator
Manual Checklist📋 Manual Trading Checklist
This indicator is used to support disciplined, rule-based trading by displaying a manual checklist directly on the chart.
🎯 Purpose
The goal of this indicator is to keep your trade criteria visible at all times, helping you:
- Stay consistent with your trading rules
- Reduce emotional or impulsive decisions
- Clearly define bias before entering a trade
ℹ️ Important Note
The checklist items and their text cannot be edited.
All items are predefined, based on the checklist I personally use before entering a trade.
Each item can only be enabled or disabled by selecting its state:
🟢 Bullish
🔴 Bearish
⚪ Neutral
This is intentional, to enforce consistency and avoid changing rules mid-trade.
✅ Features
- On-chart checklist displayed as a floating label
- Manual status selection per item (Bullish / Bearish / Neutral)
- Instant updates when inputs are changed
- Works on any symbol and timeframe
- No calculations, no signals, no automation
🧾 Checklist Items
- Trend Change Candle
- Overall Trend
- Volume
- Distance from SMA 20
- Gaps
- Support / Resistance
- CCI
- Checklist Summary (final bias)
🎨 Customization
- Text position: Top / Middle / Bottom & Left / Center / Right
- Vertical offset for fine positioning
- Text size: Huge / Large / Normal / Small
- Fully customizable text color
🛠 How to Use
- Add the indicator to your chart
- Open Settings → Inputs
- Set each checklist item to Bullish, Bearish, or Neutral
- Use the Checklist Summary as your final trade bias
Note: This indicator is fully manual and intended as a decision-support tool only.
Pine Script® indicator
VCPTTTTTTESTVolume Cluster Profile — A standardized configuration template for storage cluster capacity and performance characteristics, covering volume cluster resource allocation, access policies, redundancy rules and performance baseline definitions, which supports standardized management and efficient scheduling of cluster resources.
Pine Script® indicator
Multi-Timeframe Trading SystemIntegrating Multi-Timeframe Trading Analysis: A Comprehensive Approach to Market Structure and Trend Identification
In the dynamic landscape of financial markets, traders continually seek robust analytical frameworks that can synthesize diverse market signals into a coherent decision-support system. This script represents a deliberate integration of several established technical analysis concepts, designed to provide a multi-perspective view of market conditions. The rationale for this integration stems from the recognition that no single indicator provides a complete picture; rather, a confluence of signals from different analytical dimensions can enhance the probability of identifying high-quality trading opportunities.
The core design principle of this script is the synthesis of trend analysis, momentum assessment, and market structure identification across multiple timeframes. This multi-layered approach is grounded in the widely accepted market axiom that higher timeframes exert gravitational pull on lower timeframes, and that the alignment of signals across temporal scales often precedes significant price movements.
Functional Components and Their Synergistic Operation
The script operates through several interconnected modules that work in concert:
Multi-Timeframe Trend Analysis Dashboard: At the heart of the system is a comparative trend analysis across six distinct timeframes (3-minute to daily). This is achieved using Exponential Moving Average (EMA) crossovers—a proven trend-following mechanism. The dashboard provides instantaneous visual feedback about trend alignment or divergence across timeframes, allowing traders to gauge the strength and consistency of prevailing market trends. When multiple timeframes exhibit congruent trend directions, it suggests a higher-conviction trading environment.
EMA-Based Trend Filtering: The script employs dual EMA periods (55 and 200) as its primary trend filter. The relationship between these moving averages serves as the foundation for all subsequent analysis, coloring price bars according to the dominant trend direction. This visual cue helps traders maintain perspective on the broader market context, preventing counter-trend entries during strong trending phases.
Momentum Assessment via RSI: The Relative Strength Index (RSI) operates as a complementary momentum oscillator. While the EMA system identifies trend direction, the RSI helps assess whether price movement within that trend is approaching overextended conditions. The script monitors RSI levels for traditional overbought and oversold thresholds, providing alerts when these conditions emerge.
Market Structure Analysis through Swing Points and Fractals: The automated detection of swing highs and lows forms the basis for understanding market structure. These pivot points are essential for identifying potential support/resistance zones and charting the sequence of higher highs/lows or lower highs/lows that characterize trending versus ranging markets. The fractal detection system further refines this structural analysis by identifying minor reversal points within the broader swing structure.
Fair Value Gap (FVG) Identification: The script automatically detects price voids or "gaps" that often act as magnetic attractors for future price action. These FVGs represent areas of inefficient price discovery where liquidity tends to cluster, making them significant for both trade entry and risk management decisions.
Automated Trendline Construction: By connecting successive swing points, the script dynamically draws trendlines that visualize the prevailing market trajectory. These trendlines serve as dynamic support/resistance levels that adapt to changing market conditions.
Practical Application and Usage Guidelines
Traders can utilize this integrated system in several practical ways:
Trend Confirmation: Before entering any position, check the multi-timeframe dashboard for trend alignment. Convergent trends across multiple timeframes generally offer higher-probability trading environments.
Entry Timing: Use RSI extremes in conjunction with trend direction. For instance, in an established uptrend (confirmed by EMA alignment), an RSI reading dipping into oversold territory may present a favorable long entry opportunity.
Structural Analysis: Monitor the sequence of swing points to identify potential breakouts or breakdowns in market structure. A break of a significant swing point often signals acceleration in the prevailing trend.
Fair Value Gap Trading: Watch for price returns to previously identified FVGs, as these zones frequently provide favorable risk-reward entry points with logical stop-loss placement beyond the gap boundaries.
Dynamic Support/Resistance: Utilize the automatically drawn trendlines as dynamic levels for trade management, including entry, stop-loss placement, and profit-taking.
Originality and Distinctive Features
While individual components of this system are derived from established technical analysis principles, the original contribution lies in their specific integration and visualization methodology. The script provides:
A unified visual framework that reduces analytical clutter while maintaining comprehensive market assessment
Real-time multi-timeframe analysis without requiring constant chart switching
Automated structural analysis that eliminates subjective trendline drawing
A balanced approach that respects both trend-following and mean-reversion principles
Customizable parameters that allow adaptation to different trading instruments and timeframes
Important Considerations
Users should understand that this tool is designed as a decision-support system, not an automated trading solution. All trading decisions should incorporate additional factors including fundamental analysis, market context, and appropriate risk management. The color-coded bar system and dashboard indicators are intended to streamline analysis, but they cannot guarantee specific market outcomes. Traders are encouraged to test this system in simulated environments before applying it to live markets and to adapt its parameters to align with their individual trading styles and risk tolerances.
The script's value proposition lies in its ability to synthesize multiple analytical perspectives into a cohesive visual interface, potentially reducing cognitive load while maintaining analytical rigor—a balance that many traders find challenging to achieve manually across multiple charts and timeframes.
Pine Script® indicator






















