Trinity 5-8-13 EMA RibbonThis is a simple little script that is based on the 5-8-13 scalping or day trading strategy, the ribbon color will flip based on the candle to EMA direction. Use this in conjunction with a higher time frame EMA as well as something like a 200 EMA or VWAP for trend direction. The indicator will give you the current candle bias.
Wskaźniki i strategie
Daily/Weekly/Monthly Support & Resistanceindicator plots support and resistance levels derived from historical price action. It analyzes higher‑timeframe candles (Daily/Weekly/Monthly) and ranks levels by strength and number of touches, then draws the most relevant levels around the current price. If no strong levels are found, it falls back to touch‑based levels so you still get meaningful lines.
How to Use:
Add the script to any chart.
Choose Levels Timeframe:
Auto (recommended): follows the chart timeframe (D/W/M).
D / W / M: force a specific timeframe.
Set lookback windows:
Lookback Days (D) – default 200
Lookback Weeks (W) – default 104
Lookback Months (M) – default 60
Adjust sensitivity:
Min Strength – filters weaker levels.
Volume Multiplier – requires higher volume for stronger levels.
Time Decay – gives more weight to recent data.
Min Touches (Fallback) – used when no strong levels are found.
Optional: enable Show Debug Info to see how many levels are detected.
Open Source & License:
This script is open source under the MIT License. You are свободно to use, modify, and share it with attribution.
Author / Contact:
Ron Belson
For questions or requests, contact: ronbelson@gmail.com
Yang-Zhang Stop Lines Yang-Zhang Stop Lines - Advanced Volatility Indicator
📊 Description
The Yang-Zhang Stop Lines is an advanced technical indicator that uses the Yang-Zhang volatility estimator to calculate dynamic stop loss and take profit levels. Unlike traditional methods such as ATR or Bollinger Bands, Yang-Zhang considers multiple components of market volatility, offering a more accurate and robust measurement.
🎯 Key Features
Superior Volatility Calculation:
Implements the complete Yang-Zhang estimator, considering overnight volatility, open-close, and Rogers-Satchell components
More accurate than traditional ATR for markets with gaps and distinct sessions
Automatically adapts to market conditions
Intelligent Levels:
Buy Stop (Green): Lower level calculated for long position protection
Sell Stop (Red): Upper level calculated for short position protection
Mirrored Levels: Additional projections based on daily amplitude
Continuous Bands: Real-time visualization of intraday volatility
Daily Anchoring:
Fixed levels calculated at the beginning of each day
Facilitates trade planning with stable references
Horizontal lines extending throughout the trading session
⚙️ Configurable Parameters
Calculation Timeframe: Defines the period for volatility analysis (default: 60min)
Period: Lookback window for statistical calculations (default: 20)
Multiplier: Adjusts level sensitivity (default: 1.0)
Base Price: Reference for stop calculations (default: close)
Visual Options: Bands, fixed lines, labels, fill, and customizable colors
💡 How to Use
For Day Traders:
Use daily fixed levels as reference for stop loss and targets
Watch for price crossovers at levels for reversal signals
Mirrored levels serve as extended targets
For Swing Traders:
Configure higher timeframes (4h, daily) for medium-term analysis
Use the multiplier to adjust to your risk/reward objectives
Combine with trend analysis and support/resistance
Risk Management:
Position stops just below/above calculated levels
Adjust position size based on amplitude
Monitor the info table to check current volatility
📈 Information Table
The indicator displays in the top-right corner:
Current Yang-Zhang Volatility (in %)
Buy Stop Level
Sell Stop Level
Calculated Amplitude
🔔 Included Alerts
Alert when price crosses Buy Stop
Alert when price crosses Sell Stop
🎨 Visual Customization
Independent colors for each element
Adjustable line width
Optional fill between bands
Optional informative labels
📝 Technical Notes
This indicator correctly implements the complete Yang-Zhang estimator formula, including:
Overnight variance
Open-close variance
Rogers-Satchell component
Optimized k weighting
Ideal for traders seeking a scientific and statistically robust approach to stop definition and volatility analysis.
Compatible with all assets and timeframes. Recommended for liquid markets.
Wyckoff + VSA Pro [M.22]Wyckoff + VSA with side window and tooltips
Wyckoff appears as background colors (4 phases)
Only strong VSA signals in harmony with the phases
the side window has many signals
also put the mouse on the signals to see the side tooltip
Micha Stocks Buyers Breakout RatingMicha Stocks Buyers Breakout Rating (ByBr)
========================================
This indicator is a custom rating system designed to identify high-probability "Buy" setups by analyzing Volume Conviction, Price Action, and Seller Exhaustion. It assigns a rating from 4 to 10 for every valid signal, helping traders filter out weak breakouts and focus on high-conviction moves.
How it Works The script uses a multi-tiered logic system to grade every green candle:
1. Volume Tiers (The Engine)
--Extreme Conviction (Rating 10): Volume is 2.5x higher than the short-term average.
--High Conviction (Rating 7-8): Volume is 1.5x higher than the short-term average.
2. Sustained Accumulation (Rating 5-6) Identifies persistent buying pressure where the last X -----bars (default 5) have all been green/up candles.
--Bonus Points The script awards extra points to the base rating for high-quality candle shapes:
--Strong Close: Price closes in the top 25% of the daily range.
--Hammer Candle: Long lower wick (rejection of lows) with a small body.
3. Seller Exhaustion (The Reversal - Rating 3-4) This logic identifies "dip buys" where sellers have lost control. It requires:
--Downtrend: Price is below the recent high.
--Confirmation: Either a "Volume Washout" (recent panic selling) or a "Supply Dry Up" (volume dropping below average).
How to Use
--------------
Look for Triangles: A triangle appears below the bar when a signal is detected.
Read the Number: The number (4-10) indicates the strength of the signal.
10: Extreme Volume Breakout (highest confidence).
7-8: Strong Volume Breakout.
4: Reversal/Dip Buy opportunity (Seller Exhaustion).
Tooltip: Hover over the label to see exactly which logic triggered the signal (e.g., "Extreme Conviction" vs "Sustained Accumulation").
Settings
----------
Short Lookback: Adjust the sensitivity of the trend detection (Default: 5).
Volume Multipliers: Adjust how strict the volume requirements are for high ratings.
Gold Inverse Correlation TrackerGold Inverse Correlation Tracker - Professional Multi-Asset Analysis
What This Indicator Does:
This indicator monitors the real-time correlation between Gold and five key financial assets that historically move inversely (opposite) to gold prices. It displays these relationships across three different timeframes simultaneously, giving you both short-term trading signals and long-term trend confirmation.
The indicator tracks:
US Dollar Index (DXY) - Historical correlation: -0.63
Real Interest Rates (TIPS) - Historical correlation: -0.82 (strongest inverse relationship)
10-Year Treasury Yield - Nominal interest rate proxy
S&P 500 (SPX) - Equity market sentiment (variable correlation)
VIX - Volatility index (optional, flight-to-safety indicator)
Why Inverse Correlations Matter for Gold Trading:
Understanding inverse correlations is critical for gold traders because:
Predictive Power - When assets move opposite to gold consistently, you can use their strength/weakness to predict gold's next move
Hedging Opportunities - Strong inverse correlations let you hedge gold positions by trading the inverse asset
Regime Detection - When correlations break down, it signals a market regime change or increased uncertainty
Confirmation Signals - Multiple strong inverse correlations validate your gold trade thesis
Risk Management - Knowing what moves against gold helps you understand your portfolio's true exposure
The Science Behind the Numbers:
Real interest rates have the strongest inverse correlation to gold (approximately -0.82) because:
Gold pays no yield or dividend
When real rates rise, the opportunity cost of holding gold increases
Investors shift to interest-bearing assets when they offer positive real returns
When real rates go negative, gold becomes relatively more attractive
The US Dollar shows strong inverse correlation (approximately -0.63) because:
Gold is priced in US dollars globally
A stronger dollar makes gold more expensive for foreign buyers, reducing demand
A weaker dollar makes gold cheaper internationally, increasing demand
Both compete as reserve assets and stores of value
Why the Indicator is Weighted This Way:
Three Timeframe Approach:
Short-term (20 periods) - Captures recent correlation shifts for day trading and swing trading
Medium-term (50 periods) - The primary signal - balances noise reduction with responsiveness
Long-term (100 periods) - Confirms structural correlation trends for position trading
Correlation Thresholds:
Strong Inverse (<-0.7) - Statistically significant inverse relationship; highest confidence for inverse trades
Moderate Inverse (<-0.3) - Meaningful inverse relationship; still useful but less reliable
Weak Inverse (<0.0) - Slight inverse tendency; correlation may be breaking down
Positive (>0.0) - Assets moving together; inverse relationship has failed
How to Use This Indicator:
For Inverse Trading Strategies:
When DXY shows RED correlation (<-0.7), consider shorting DXY when gold is strong
When Real Rates show RED correlation, rising rates = falling gold (and vice versa)
When multiple assets show strong inverse correlation, confidence is highest
For Regime Detection:
All RED = Classic gold market behavior; correlations intact
Mixed colors = Transitional market; be cautious
All GREEN/GRAY = Correlation breakdown; paradigm shift occurring
For Hedging:
Use assets with strong inverse correlation to hedge gold positions
When correlation weakens, reduce hedge size
When correlation strengthens, increase hedge effectiveness
Alert System:
The indicator includes built-in alerts for:
Individual assets crossing strong inverse threshold
Multiple assets simultaneously showing strong inverse correlation (highest probability setup)
Correlation breakdowns that may signal regime changes
Color Guide:
RED - Strong inverse correlation (<-0.7) - Best inverse trading opportunity
ORANGE - Moderate inverse (<-0.3) - Useful but less reliable
YELLOW - Weak inverse (<0.0) - Correlation weakening
GRAY - Weak positive (0.0 to 0.7) - Assets moving together
GREEN - Strong positive (>0.7) - Inverse relationship broken
Recommended Settings:
Day Trading (1H-4H charts):
Short: 14 periods
Medium: 30 periods
Long: 60 periods
Swing Trading (Daily charts):
Short: 20 periods (default)
Medium: 50 periods (default)
Long: 100 periods (default)
Position Trading (Weekly charts):
Short: 10 periods
Medium: 20 periods
Long: 50 periods
Pro Tips:
Watch for divergences - when gold moves but correlations don't confirm
Correlation breakdowns often precede major trend reversals
The Medium-term (50p) correlation is plotted on the chart as your primary reference
Use the Status column for quick assessment of each asset's relationship
Set alerts for "Multiple Strong Inverse" to catch highest-probability setups
Important Notes:
This indicator is designed for Gold charts only (XAUUSD, GLD, GC1!, etc.)
Correlations are not static - they change over time based on market conditions
A correlation of -0.82 means 82% of gold's price movements can be explained by real interest rates
Always combine with other technical analysis and fundamental factors
Past correlations do not guarantee future relationships
Based on Research:
The correlation coefficients used in this indicator are based on peer-reviewed research:
Erb & Harvey (1997-2012): Real rates to gold correlation of -0.82
World Gold Council (2024): US Dollar to gold correlation of -0.63
Multiple academic studies confirming gold's inverse relationship with opportunity cost assets
Use this indicator to trade smarter, hedge better, and understand the macro forces driving gold prices.
daily reversalindicator that marks when the current daily candle (bullish or bearish) closes beyond the previous day’s High or Low.
Logic implemented
Bullish condition → Today closes above yesterday’s High
Bearish condition → Today closes below yesterday’s Low
Works only on Daily timeframe
Plots labels/arrows on the chart
Clean SMC: Filtered OB + FVG Fair Value Gaps (FVG): This identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
* Order Blocks (OB): This marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
* Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
* Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
* Confirmation: Don't take a "BUY" signal alone. Check if the overall trend (on a higher timeframe) is also bullish.
* Risk management: Always place your Stop Loss just below the identified Order Block.
Would you like me to add a specific feature, such as a notification on your phone or a trend filter (moving average) to refine the signals?
Broadening Formation Reclaim Stats v1.0Description: Broadening Formation Reclaim Stats v1.0
Overview
The Broadening Formation Reclaim Stats is a technical analysis tool designed to track and quantify "reclaim" price action within expanding market structures (Broadening Formations). It focuses on scenarios in which price breaches a prior Swing High or Swing Low and subsequently rotates back into the range, often signaling a potential reversal toward the opposite side of the formation.
This indicator is built for traders who study price action rotations, "The Strat" (Rev 2-2 / Failed 2-Down/Up), and liquidity sweeps.
How It Works
The script utilizes a state-machine logic to track price movements relative to high and low pivots:
1. Structure Identification: It identifies recent Pivot Highs and Lows (Auto-Swing mode) or allows users to input specific price levels (Manual mode).
2. The Breach: It identifies when price breaks above the established high or below the established low, "locking" the structure for a potential reclaim.
3. The Reclaim: A signal is generated when price moves back inside the range using specific price action triggers:
Rev 2-2: A reversal pattern where price reverses the direction of the previous candle.
Failed 2-Down/Up: Price makes a new wick extreme but closes back within the previous candle's range and below its opening price.
4. Targets: The script considers a reclaim "Successful" if price reaches the opposite side of the broadening formation (the opposing pivot).
Key Features
Backtesting Dashboard: A real-time table displaying the total number of reclaims, global success rates, and a breakdown of Bullish vs. Bearish performance.
Flexible Lookbacks: Statistics can be calculated based on the entire chart history, "Today Only" (for day traders), or a specific number of bars.
Dual Mode Detection: Choose between **Auto Swing** detection (based on a user-defined pivot length) or **Manual** mode for specific levels.
Optimized Visuals: Uses the Pine Script Plot Engine for core levels to ensure price-scale stability and "Box Objects" for clear pivot visualization.
Settings
Swing Length: Adjust the sensitivity of the pivot detection.
BF Mode: Toggle between automatic pivot tracking or manual price entry.
Statistics Start Mode: Filter the data displayed in the table to focus on recent price action or historical performance.
UI Customization: Fully adjustable table position, size, and transparency.
Disclaimer
This indicator is for educational and research purposes only. It tracks historical price action patterns and does not constitute financial advice. Past performance (success rates) as displayed in the dashboard is not an indicator of future results.
STAX# STAX - MapleStax Candle by Candle Automation
## Overview
STAX is a trend-following indicator that automates the "MapleStax Candle by Candle (CBC)" methodology for futures and equity trading. This system uses a higher timeframe anchor trend combined with lower timeframe execution filters to identify high-probability pullback entries in the direction of the prevailing trend.
## How It Works
### 1. Anchor Trend Detection (10-Minute CBC Flip)
The core of this system is the CBC (Candle by Candle) flip logic on the anchor timeframe (default: 10 minutes):
- **Bullish Flip**: Occurs when a 10m candle closes ABOVE the high of the previous 10m candle
- **Bearish Flip**: Occurs when a 10m candle closes BELOW the low of the previous 10m candle
- Once a flip occurs, the trend remains in that direction until an opposite flip happens
The anchor trend is calculated using `request.security()` with `lookahead=barmerge.lookahead_off` and indexed historical data ` ` to ensure non-repainting behavior. This means signals will not change or disappear after they appear.
### 2. Execution Filters (Current Timeframe)
On your current chart timeframe (recommended: 3 minutes), the indicator applies two key filters:
**EMA Confirmation**:
- For LONG signals: 9-period EMA must be greater than 20-period EMA
- For SHORT signals: 9-period EMA must be less than 20-period EMA
**VWAP Filter** (Strict or Target mode):
- **Strict Mode** (default): Only shows signals when price is on the correct side of VWAP
- LONG signals only above VWAP
- SHORT signals only below VWAP
- **Target Mode**: Shows all valid signals but uses VWAP as the take profit target when price is on the "wrong" side
### 3. Entry Signal Logic
The indicator looks for pullback entries:
- **BUY Signal**: 10m trend is Bullish + EMA 9 > 20 + Current 3m candle is RED (close < open)
- Logic: Wait for a red pullback candle in a bullish trend with bullish EMA alignment
- **SELL Signal**: 10m trend is Bearish + EMA 9 < 20 + Current 3m candle is GREEN (close > open)
- Logic: Wait for a green retracement candle in a bearish trend with bearish EMA alignment
This pullback logic helps you enter after a brief counter-trend move, improving risk/reward compared to chasing breakouts.
### 4. Risk Management
**Stop Loss**: Automatically set at the previous 10-minute candle's low (for longs) or high (for shorts). This represents the last swing point that would invalidate the trend structure.
**Take Profit**:
- When aligned with VWAP: Fixed tick-based target (default: 20 ticks, adjustable)
- When counter to VWAP: Target is VWAP itself, providing a logical profit target
The indicator displays TP and SL levels visually and alerts when they are hit.
### 5. Signal Management
To prevent over-trading, the indicator includes a **cooldown period** (default: 10 bars minimum between signals). This stops signal spam in choppy conditions and forces you to wait for the market to develop before taking another trade.
### 6. Time Session Filters
Two separate trading sessions can be configured with 12-hour clock inputs:
- **Session 1**: Default 9:30 AM - 4:00 PM (New York regular hours)
- **Session 2**: Optional second session for extended hours or different time zones
Signals only appear during enabled sessions, helping you trade during liquid market hours.
## What Makes This Original
This indicator automates a specific methodology (MapleStax CBC) that combines multiple proven concepts:
1. Higher timeframe trend structure (CBC flip logic)
2. Lower timeframe execution timing (EMA filters)
3. Pullback entry strategy (counter-colored candles)
4. Volume-based target selection (VWAP integration)
5. Swing-based stop placement (previous anchor swing points)
The combination of these elements into an automated system with visual feedback and alert functionality is what provides value beyond using these indicators separately.
## How to Use
1. **Choose Your Timeframes**:
- Anchor timeframe: 10 minutes (adjustable) for trend direction
- Execution timeframe: 3-5 minutes recommended for entries
2. **Select VWAP Mode**:
- **Strict Mode**: More conservative, only trades with VWAP bias
- **Target Mode**: More aggressive, uses VWAP as profit target
3. **Configure Sessions**: Enable Session 1 and optionally Session 2 to match your trading hours
4. **Set Risk Parameters**: Adjust take profit ticks based on your instrument and risk tolerance
5. **Watch for Signals**:
- Green "BUY" label below bars = Long entry
- Red "SELL" label above bars = Short entry
- Dashed red line = Stop loss level
- Green "TP ✓" or Red "SL ✗" labels show exit points
6. **Monitor the Status Table**: The table in the top-right shows:
- Current 10m trend direction
- EMA alignment status
- VWAP position
- Active session status
- Current signal state
- Active trade information
7. **Set Alerts**: Use TradingView's alert system with the built-in alert conditions:
- BUY Signal
- SELL Signal
- Take Profit Hit
- Stop Loss Hit
## Best Practices
- **Recommended Timeframes**: 3m execution chart with 10m anchor works well for active trading
- **Instrument Selection**: Works best on liquid futures contracts (ES, NQ, CL, etc.) and major forex pairs
- **Session Trading**: Enable Session 1 for New York hours; avoid low-volume periods
- **Backtest First**: Always backtest the settings on your specific instrument before live trading
- **Use Realistic Parameters**: Default 20-tick TP is conservative; adjust based on instrument volatility
## Limitations and Warnings
**This indicator does NOT**:
- Guarantee profitable trades (past performance does not indicate future results)
- Account for slippage, commissions, or real-world execution challenges
- Work equally well in all market conditions (performs poorly in low-volume, range-bound markets)
- Replace proper risk management and position sizing
- Provide financial advice
**Repainting**: This indicator is designed to be non-repainting. Signals use indexed historical data from the anchor timeframe, meaning they will not change or disappear after they appear. However, the current bar's status will update in real-time until it closes.
**Market Conditions**: This trend-following pullback system performs best in trending markets with clear directional bias. In choppy, range-bound conditions, expect more false signals despite the cooldown filter.
**Stop Loss Execution**: The stop loss levels shown are theoretical. In fast-moving markets, actual fills may occur at worse prices due to slippage.
## Input Parameters
**Anchor Settings**:
- Anchor Timeframe: Higher timeframe for trend detection (default: 10 minutes)
**EMA Settings**:
- Fast EMA: Short-period EMA for execution bias (default: 9)
- Slow EMA: Long-period EMA for execution bias (default: 20)
**VWAP Settings**:
- Strict VWAP Filter: Toggle between strict filtering and target mode
**Signal Management**:
- Min Bars Between Signals: Cooldown period to prevent spam (default: 10 bars)
**Time Filters**:
- Session 1 & 2: Configure up to two trading sessions with start/end times in 12-hour format
**Risk Management**:
- Take Profit (Ticks): Fixed tick target when aligned with VWAP (default: 20)
**Visual Settings**:
- Show Trend Background: Background color based on 10m trend
- Show Stop Loss Lines: Display SL levels on chart
- Show EMAs: Display 9/20 EMAs on chart
- Show VWAP: Display daily VWAP on chart
## Technical Notes
- Uses Pine Script v5
- Non-repainting implementation via `request.security()` with `lookahead_off` and indexed data
- Suitable for alerts and automated trading integration
- Maximum 50 labels and 50 lines to maintain performance
- Status table updates on each bar close
## Credits
This indicator automates the MapleStax Candle by Candle methodology. The CBC flip logic and pullback entry concept are part of the MapleStax trading education system.
---
**Disclaimer**: This indicator is for educational and informational purposes only. It is not financial advice. Trading futures, forex, and equities carries substantial risk of loss. Past performance is not indicative of future results. Always trade with risk capital you can afford to lose and use proper position sizing.
Trader Checklist Panel EditableTrader Checklist Panel — Editable
Trader Checklist Panel is a lightweight visual checklist designed to help traders execute their edge with discipline and consistency.
This indicator provides a clean, non-intrusive panel where you can manually confirm each condition of your trading plan before entering a trade — without coloring the chart background or interfering with price action.
Bitget Pro Sinyal [Optimized v2]11 gösterge onaylı sinyaller yatırım tavsiyesi değildir kendi kullandıgım sinyaller
PaisaPani - Nifty Demo PerformanceThis chart shows a market structure view using the PaisaPani framework.
The table visible on the chart is a DEMO performance representation.
This idea does NOT provide live Buy/Sell signals.
🔒 The complete PaisaPani strategy is Invite-Only.
Shared for educational purposes only.
SMI Histogram State VisualizationStochastic Momentum Index (SMI) – State Histogram
One issue I always had with the standard SMI was how difficult it can be to clearly distinguish EMA crosses, especially when the oscillator is compressed near overbought or oversold levels. Important information is there — it’s just not always easy to read quickly.
This script is my solution to that problem.
By transforming the SMI into a state-based histogram, momentum, exhaustion, and EMA crosses become visually obvious at a glance.
How It Works
The Stochastic Momentum Index (SMI) measures price position relative to the midpoint of its recent high–low range, which makes it:
symmetric around zero
smoother than a classic stochastic
well suited for momentum analysis
Instead of a traditional line oscillator, the SMI is displayed as a color-coded histogram, while an EMA of the SMI is used as a confirmation signal.
Color-Coded Momentum States
The histogram dynamically changes color based on momentum state and EMA position:
🔴 Red – Oversold & Below EMA
Strong bearish momentum, downtrend still intact.
🟠 Orange – Oversold & Above EMA
Bearish momentum weakening, early bullish reversal potential.
🟢 Green – Overbought & Above EMA
Strong bullish momentum, trend continuation.
🟡 Yellow – Overbought & Below EMA
Bullish momentum weakening, early bearish reversal potential.
Faded colors represent neutral or transition phases near the zero line.
Best Use Cases
Quickly identifying EMA crosses inside overbought / oversold zones
Spotting early reversals before price reacts
Confirming momentum continuation
Filtering noise in ranging markets
This indicator is non-repainting and works on all timeframes.
Inputs
%K Length – Lookback window used to define the price range
%D Length – Smoothing applied to the momentum calculation
EMA Length – Confirmation smoothing applied to the SMI
Notes
This indicator is intended as a visual momentum and confirmation tool, not a standalone trading system.
Always use it in confluence with price action, market structure, and proper risk management.
ICT Ultimate + SIGNALS [Entry/Exit/SL/TP] FIXEDKey Fixes and Improvements Made:
🔧 Bugs Fixed:
Fixed indentation errors - The original code had broken indentation causing syntax errors
Fixed Market Structure (BOS/CHoCH) - Logic was corrected to properly detect breaks
Fixed Swing Labels (HH/HL/LH/LL) - Now displays correctly with proper colors
Fixed Signal Generation - Entry signals now trigger properly
Fixed SL/TP Lines - Now display correctly after signals
Fixed Array Handling - Proper bounds checking to prevent errors
Fixed Trade State Management - Proper tracking of active trades
✨ New Features Added:
BSL/SSL (Liquidity) Labels - Shows buy/sell side liquidity levels
Liquidity Sweep Detection - Alerts when liquidity is taken
Displacement Candle Detection - Shows strong momentum candles
Midnight Open Level - Important ICT concept
OTE Zone Visualization - Shows optimal trade entry zone (62-79%)
Enhanced Confluence Table - Shows breakdown of all confluences
Signal Cooldown - Prevents consecutive false signals
Improved Dashboard - More information displayed clearly
Better Alert Messages - More detailed alert text
📊 How to Use:
Copy the entire code to TradingView Pine Editor
Add to chart
Adjust settings in the input menu based on your trading style
Set up alerts for the signals you want to receive
BPR [TFO] - ModifiedThis is a modified version of the original "BPR " indicator. It plots balanced price ranges the same way as the original indictor did. The only additions are a 50% line in the BPR box and an extend right feature.
Tao of Trading Moving Averages (MM)This is the Tao of Trading script with color shifts for Muffin Man's color needs.
Market Open, Premarket High, CloseSimple Indicator that places a line at the current day's premarket high, market open and close.
Multi-Indicator Trend-Following Strategy 1-minute Gold strategyTrend following using many indicators to provide accurate buy and sell signals on the 1-minute gold chart
ABCD Strategy (v6 Ready)//@version=6
indicator("ABCD Strategy v7 – MTF S/R Filter", overlay=true, max_lines_count=300, max_labels_count=300)
//━━━━━━━━━━━━━━━━━━━━━
// INPUTS
//━━━━━━━━━━━━━━━━━━━━━
pivotLen = input.int(5, "Swing Strength", minval=2)
bcMin = input.float(0.618, "BC Min Fib")
bcMax = input.float(0.786, "BC Max Fib")
cdMin = input.float(1.272, "CD Min Extension")
cdMax = input.float(1.618, "CD Max Extension")
htfTF = input.timeframe("240", "Higher Timeframe (S/R)")
srLookback = input.int(200, "HTF S/R Lookback")
srTolerance = input.float(0.002, "S/R Zone Tolerance (0.2%)")
showSR = input.bool(true, "Show HTF S/R Zones")
showTargets = input.bool(true, "Show Targets")
//━━━━━━━━━━━━━━━━━━━━━
// HIGHER TF SUPPORT / RESISTANCE
//━━━━━━━━━━━━━━━━━━━━━
htfHigh = request.security(syminfo.tickerid, htfTF, ta.highest(high, srLookback))
htfLow = request.security(syminfo.tickerid, htfTF, ta.lowest(low, srLookback))
srHighZoneTop = htfHigh * (1 + srTolerance)
srHighZoneBottom = htfHigh * (1 - srTolerance)
srLowZoneTop = htfLow * (1 + srTolerance)
srLowZoneBottom = htfLow * (1 - srTolerance)
//━━━━━━━━━━━━━━━━━━━━━
// DRAW HTF ZONES
//━━━━━━━━━━━━━━━━━━━━━
if showSR
box.new(bar_index - 5, srHighZoneTop, bar_index + 5, srHighZoneBottom,
bgcolor=color.new(color.red, 85), border_color=color.red)
box.new(bar_index - 5, srLowZoneTop, bar_index + 5, srLowZoneBottom,
bgcolor=color.new(color.green, 85), border_color=color.green)
//━━━━━━━━━━━━━━━━━━━━━
// SWING DETECTION
//━━━━━━━━━━━━━━━━━━━━━
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
var float A = na
var float B = na
var float C = na
var float D = na
var int Ab = na
var int Bb = na
var int Cb = na
var int Db = na
if not na(pl)
A := B
Ab := Bb
B := C
Bb := Cb
C := low
Cb := bar_index
if not na(ph)
A := B
Ab := Bb
B := C
Bb := Cb
C := high
Cb := bar_index
//━━━━━━━━━━━━━━━━━━━━━
// ABCD LOGIC
//━━━━━━━━━━━━━━━━━━━━━
ab = math.abs(B - A)
bc = math.abs(C - B)
bcFib = bc / ab
validBC = bcFib >= bcMin and bcFib <= bcMax
bull = C > B
cdMinPrice = bull ? C - bc * cdMin : C + bc * cdMin
cdMaxPrice = bull ? C - bc * cdMax : C + bc * cdMax
inDzone = low <= cdMaxPrice and high >= cdMinPrice
//━━━━━━━━━━━━━━━━━━━━━
// MTF STRUCTURE FILTER
//━━━━━━━━━━━━━━━━━━━━━
nearResistance = close <= srHighZoneTop and close >= srHighZoneBottom
nearSupport = close <= srLowZoneTop and close >= srLowZoneBottom
structureOK =
(bull and nearSupport) or
(not bull and nearResistance)
//━━━━━━━━━━━━━━━━━━━━━
// FINAL D CONFIRMATION
//━━━━━━━━━━━━━━━━━━━━━
if validBC and inDzone and structureOK
D := close
Db := bar_index
//━━━━━━━━━━━━━━━━━━━━━
// TARGETS
//━━━━━━━━━━━━━━━━━━━━━
tp1 = bull ? D + math.abs(D - C) * 0.382 : D - math.abs(D - C) * 0.382
tp2 = bull ? D + math.abs(D - C) * 0.618 : D - math.abs(D - C) * 0.618
//━━━━━━━━━━━━━━━━━━━━━
// DRAW PATTERN
//━━━━━━━━━━━━━━━━━━━━━
if not na(D)
line.new(Ab, A, Bb, B, width=2, color=color.blue)
line.new(Bb, B, Cb, C, width=2, color=color.orange)
line.new(Cb, C, Db, D, width=2, color=color.green)
label.new(Db, D, "D (HTF CONFIRMED)", style=label.style_label_down, color=color.yellow)
if showTargets
line.new(Db, tp1, Db + 12, tp1, color=color.green)
line.new(Db, tp2, Db + 12, tp2, color=color.teal)
alertcondition(validBC and inDzone and structureOK,
"ABCD v7 Confirmed",
"ABCD Pattern confirmed at Higher-Timeframe Support/Resistance — wait for price action.")
Commodity Channel Index// BUY CONDITION
buySignal = direction < 0 and ta.crossover(cci, -100)
// ENTRY PRICE
entryPrice = close
// STOP LOSS AT SUPERTREND
stopLoss = supertrend
// RISK CALCULATION
risk = entryPrice - stopLoss
// TARGET 1:2
target = entryPrice + (risk * 2)
// ALERT
alertcondition(buySignal, title="BUY", message="Supertrend Green + CCI Cross Above -100 | RR 1:2")
// OPTIONAL PLOTS
plotshape(buySignal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plot(stopLoss, title="Stop Loss", color=color.red)
plot(target, title="Target 1:2", color=color.green)






















