Session Liquidity & Sweep DetectorThe indicator is an advanced trading tool designed to give traders a complete visual and analytical overview of major market sessions. By tracking the Asia, London, and New York sessions, this indicator highlights session highs/lows, liquidity sweeps, and advanced A++ patterns to help identify high-probability trade setups.
It combines session analysis, sweep detection, and pattern recognition into a single, customizable indicator. Traders can use it for spotting breakout points, reversal setups, and areas of stop hunts or liquidity grabs.
Key Features:
1. Session Liquidity Boxes:
Automatically draws boxes representing Asia, London, and NY trading sessions on the chart.
Each session box is color-coded and fully customizable (colors, transparency, border width).
Option to display only the most recent session box, reducing chart clutter.
Helps traders visually separate trading sessions and understand session structure.
2. High/Low Sweep Detection:
Detects when price sweeps the high or low of a completed session, indicating liquidity grabs or stop-hunting behavior.
Labels are added to the chart for clear visualization:
AHS: Asia High Swept
ALS: Asia Low Swept
LHS: London High Swept
LLS: London Low Swept
Horizontal lines are drawn at swept levels to track key support/resistance points.
Sweep detection occurs only within the same trading day, preventing false signals.
3. A++ Pattern Detection:
Detects advanced Long/Short A++ patterns based on session sweep behavior:
Long A++ Pattern: Both Asia and London lows are swept, but highs remain intact.
Short A++ Pattern: Both Asia and London highs are swept, but lows remain intact.
Patterns are plotted with customizable labels to highlight potential high-probability setups.
Helps traders identify early directional bias for the trading day.
4. Customizable Visual Settings:
Box colors, sweep line colors, and label colors are fully customizable.
Label sizes can be set to “auto”, “tiny”, “small”, “normal”, “large”, or “huge”.
Sweep line width and box border width are adjustable.
Clear visualization ensures traders can analyze sessions quickly and efficiently.
5. Multi-Session Tracking:
Tracks Asia, London, and New York sessions independently.
Keeps historical session data while dynamically updating the latest session in real-time.
Allows traders to see inter-session liquidity interactions, which are key for breakout and reversal strategies.
6. Optimized for Real-Time Trading:
Updates session highs/lows bar by bar during live trading.
Works on any timeframe, making it suitable for scalping, intraday, and swing trading.
Integrates seamlessly with other indicators like FU Candle Indicator, VWAP, Order Blocks, and more for advanced strategies.
Use Cases:
Liquidity Hunting: Spot where institutional traders may be triggering stop losses or grabbing liquidity.
Breakout Analysis: Identify when price breaks through session highs/lows and confirm trade direction.
Session Pattern Trading: Use A++ patterns to anticipate strong directional moves early in the trading day.
Multi-Session Strategies: Analyze relationships between Asia, London, and NY sessions to find high-probability entries.
Scalping & Day Trading: Visualize key levels for quick trade decisions.
Ideal Users:
Forex, crypto, and futures traders who want a session-based liquidity and sweep analysis.
Traders who use high-probability patterns and breakout strategies.
Scalpers, intraday traders, and swing traders looking for clear visual cues and actionable signals.
Anyone seeking a comprehensive session overview for smarter trading decisions.
This indicator essentially combines session boxes, liquidity sweep labels (AHS, ALS, LHS, LLS), horizontal lines for swept levels, and A++ pattern detection to give traders a full view of market structure, liquidity, and potential directional bias.
Utilitas Pine
Previous Day SweepThis indicator automatically detects and plots the highs and lows of previous trading days and tracks their breakouts in real-time. It allows traders to visualize key support and resistance levels from the last N days, highlighting breakouts with triangle markers.
Key Features:
Displays highs and lows of up to 20 previous days (configurable).
Highlights breakouts above previous highs and below previous lows.
Tracks breakouts for both the most recent day and older days.
Previous day levels are plotted with customizable colors, transparency, and line width.
Lines automatically extend until broken or until the current bar.
Helps identify liquidity sweeps, trend shifts, and potential breakout points.
Ideal For:
Day traders, swing traders, and algorithmic traders looking to monitor key daily levels and breakout points.
iFVGs & Breakout DetectorThis indicator by Quantel enhances the classic Fair Value Gap (FVG) and Inversion FVG concept with automated detection, visualization, and breakout tracking.
Plots Bullish/Bearish FVGs and Inversion FVGs with customizable mitigation levels (Proximal, 50% OB, Distal).
Applies an advanced filtering system (Aggressive → Very Defensive) to refine valid zones.
Highlights potential trade opportunities when price decisively breaks an FVG boundary using ATR-based confirmation.
Displays visual breakout triangles to mark bullish or bearish breakouts.
Includes smart color themes (Light/Dark/Off) and full alert integration for automated trading or notifications.
With its combination of institutional concepts and robust filtering, this tool helps traders identify high-probability supply/demand imbalances, monitor valid trading zones, and catch breakout confirmations in real time.
ICT Killzones & Pivots indicatorIt marks out key trading sessions (Asia, London, New York AM, NY Lunch, NY PM) by drawing:
Killzone boxes (high/low of session)
Pivot lines (session highs and lows)
Labels (like LO.H, NYAM.L, etc.)
Day/Week/Month opens and separators
Custom timestamp markers
Here’s what’s happening in the code:
🔑 Key Features:
Configurable Killzones
Asia: 20:00 – 00:00 GMT-4
London: 02:00 – 05:00 GMT-4
NY AM: 09:30 – 11:00 GMT-4
NY Lunch: 12:00 – 13:00 GMT-4
NY PM: 13:30 – 16:00 GMT-4
Each session can show:
Colored boxes (range of session)
Pivot high/low lines
Labels like AS.H, LO.L
Alerts when levels break
Drawing Limits
max_days input controls how many past sessions are shown.
Prevents chart clutter.
Opening Price Lines
You can mark important open levels: true day open (00:00), 06:00, 10:00, 14:00.
Useful for ICT concepts like “open drive.”
Day/Week/Month Opens
Option to plot open price levels with labels (D.OPEN, W.OPEN, M.OPEN).
Can also show separators for each new day/week/month.
Alerts
Triggers when session highs or lows are broken.
Example: “Broke LO.H” if London high breaks.
Custom Timezones
Killzones are adjusted using the gmt_tz setting.
Default is GMT-4 (New York).
Cutoff Time
After a set time (default 12:00), extensions of session lines stop updating.
⚡ In practice:
Boxes highlight accumulation ranges (ICT killzones).
Pivot lines help track liquidity grabs (session high/low breaks).
Labels + alerts keep you notified of important market structure events.
Combined with ICT concepts, you’d look for setups like:
London killzone sweep of Asia range.
NY session taking liquidity above London high.
Liquidity Hunt IndicatorThis indicator automatically detects liquidity pools formed by swing highs and lows using fractal logic. It draws potential buy-side and sell-side liquidity levels (top/bottom lines) and dynamically updates them as price evolves.
White lines = pending liquidity levels (untested).
Red lines = liquidity taken from above (buy-side liquidity sweep).
Green lines = liquidity taken from below (sell-side liquidity sweep).
Alerts trigger when price breaks a liquidity line.
This tool helps traders track where liquidity might be resting and visualize when price sweeps it — useful for smart money concepts (SMC), ICT-style trading, and liquidity-based strategies.
NR4/NR7 Volatility Squeeze & BreakoutsNR4/NR7 Volatility Squeeze & Breakouts
Concept
Markets often move in cycles of contraction → expansion.
The NR4 and NR7 patterns are well-known volatility contraction signals:
• NR4 : The current bar has the narrowest range (high–low) of the last 4 bars.
• NR7 : The current bar has the narrowest range of the last 7 bars.
• When both conditions align, it signals a strong volatility squeeze.
Such bars often precede s harp breakout moves , making them valuable for breakout and risk-framed trading setups.
How It Works
This script detects NR4 and NR7 bars in real time and adds several features for practical trading use:
Bar Highlighting:
• Teal = NR4, Purple = NR7, Orange = Both.
Breakout Levels:
• The High and Low of the most recent NR bar are projected forward as breakout bands.
Breakout Signals:
• Optional markers when price crosses above/below the NR High/Low.
• Configurable “close confirmation” and cooldown period to avoid duplicate signals.
SMA Filter (adjustable, default 20):
• Plotted on the chart to help traders frame bias and trend context.
Alerts:
• “NR Bar Formed”
• “Bullish Breakout”
• “Bearish Breakout”
How to Use
1. Identify Contraction:
• Watch for NR4/NR7 colored bars.
2. Plan Expansion:
• Use the High/Low of the bar as breakout reference.
3. Add Filters:
• SMA slope/position can add directional context.
• Combine with volume, VWAP, or support/resistance for stronger signals.
4. Risk Management:
• Many traders use the opposite side of the NR bar as stop placement.
Why It’s Useful
Unlike generic breakout systems, this script:
• Focuses on specific, researched volatility patterns (NR4/NR7), not just random breakouts.
• Provides a visual and systematic framework for detecting contraction → expansion phases.
• Integrates both classic price-action logic (narrow ranges) and a trend filter (SMA).
• Offers flexible alerts and cooldown so traders can adapt it to different styles (scalping, swing, intraday).
Important
This is an educational tool. It does not guarantee profitable trades. Always combine with your own market analysis and risk management.
10 AM Reversal/Continuation Zone BY DAN GESPlots the high and low between 9.30 - 10:00am ET
Colours the zone between those two levels.
Highlights when price breaks above or below that zone after 10:00am
Goldbach Time Indicator🔧 Key Fixes Applied:
1. Time Validation & Bounds Checking:
Hour/Minute Bounds: Ensures hours stay 0-23, minutes stay 0-59
Edge Case Handling: Prevents invalid time calculations from causing missing data
UTC Conversion Safety: Better handling of timezone edge cases
2. Enhanced Value Validation:
NA Checking: Validates all calculated values before using them
Goldbach Detection: Only flags valid, non-NA values as Goldbach hits
Plot Safety: Prevents plotting invalid or NA values that could cause gaps
3. Improved Plot Logic:
Core Level Colors: Blue for core levels (29,35,71,77), yellow/lime/orange for regular hits
Debug Mode Enhanced: Shows all calculations with gray dots when enabled
Better Filtering: Only plots positive, valid values for minus calculations
4. Background vs Dots Issue:
The large green/blue background you see suggests the indicator is detecting Goldbach times correctly, but the dots weren't plotting due to validation issues. This should now be fixed.
Index Position Size Calculator for [US30 / US100 / SP500]What it does
This tool helps you size positions consistently for index trades on US30 (Dow Jones), NAS100 (Nasdaq-100), and SP500 (S&P 500). Enter your account balance, risk %, and your planned Entry / Stop-Loss / Target and the script calculates:
• Position Size (rounded to your lot/contract step)
• Risk-to-Reward (R/R)
• Potential P/L in USD based on your inputs
• Visual Entry / SL / TP lines with green/red zones and concise labels
Supported contract styles
Choose a preset for common products (e.g., CFD $1/pt, YM/NQ/ES futures, MYM/MNQ/MES micros) or override the economics yourself. You remain in control of the two key levers:
• $/point — how many dollars you gain/lose per 1 index point per contract/lot
• Point size — how many price units equal 1 index point on your chart (often 1.0, but some brokers use 0.1 or 0.5)
Inputs
• Account Balance ($) and Risk % per trade
• Index: US30 / NAS100 / SP500
• Contract: CFD / Futures (YM, NQ, ES) / Micros (MYM, MNQ, MES)
• $/point: auto from Contract or manual override
• Point size: auto from Index or manual override
• Position size step: rounding (e.g., 1 for futures, 0.01 for CFDs)
• Entry / SL / TP: typed values (snapped to tick), with on-chart zones and labels
• Display toggles for lines and labels
How the math works
• StopPoints = |Entry − SL| ÷ PointSize
• ProfitPoints = |TP − Entry| ÷ PointSize
• Position Size = (AccountBalance × Risk%) ÷ (StopPoints × $/point)
• R/R = ProfitPoints ÷ StopPoints
• Potential P/L = PositionSize × Points × $/point
How to use (quick start)
1. Select Index and Contract.
2. Confirm $/point and Point size match your broker’s specs.
3. Enter Entry / SL / TP for the trade idea.
4. Read the Position Size, R/R, and Potential P/L in the info box.
5. Adjust for fees, spreads, and slippage as needed.
Notes & limitations
• Broker symbols can vary. Always verify $/point and Point size for your instrument before risking capital.
• The script does not place orders and does not generate trade signals; it’s a sizing/visualization tool.
• Results can differ across brokers due to pricing, spreads, minimum lot sizes, and execution rules.
• Use on the intended indices; you’ll see a reminder if you load it elsewhere.
Changelog highlights
• Pine v6, constant-safe inputs, tick-snapping, global fills (no local-scope errors).
• Robust label handling and optional minimal chart markers.
Disclaimer
This script is provided for educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security or derivative. Trading involves risk, including the possible loss of principal. Always do your own research, verify contract specifications with your broker, and consider testing in a demo environment before trading live.
Apex Edge - London Open Session# Apex Edge - London Open Session Trading System
## Overview
The London Open Session indicator captures institutional price action during the first hour of the London forex session (8:00-9:00 AM GMT) and identifies high-probability breakout and retest opportunities. This system tracks the session's high/low range and generates precise entry signals when price breaks or retests these key institutional levels.
## Core Strategy
**Session Tracking**: Automatically identifies and marks the London Open session boundaries, creating a trading zone from the first hour's price range.
**Dual Entry Logic**:
- **Breakout Entries**: Triggers when price closes beyond the session high/low and continues in that direction
- **Retest Entries**: Activates when price returns to test the broken level as new support/resistance
**Performance Analytics**: Built-in win rate tracking displays real-time performance statistics over user-defined lookback periods, enabling data-driven optimization for each currency pair.
## Key Features
### Automated Zone Detection
- Precise London session timing with timezone offset controls
- Visual session boundaries with customizable colours
- Automatic high/low range calculation and display
### Smart Entry System
- Breakout confirmation requiring candle close beyond zone
- Retest detection with configurable pip distance tolerance
- Separate risk/reward ratios for breakout vs retest entries
- Visual entry arrows with clear trade direction labels
### Performance HUD
- Real-time win rate calculation over customizable periods (7-365 days)
- Total trades tracking with win/loss breakdown
- Average risk-reward ratio display
- Color-coded performance metrics (green >70%, yellow >50%, red <50%)
### PineConnector Integration
- Direct MT4/MT5 execution via PineConnector alerts
- Proper forex pip calculations for all currency pairs
- Customizable risk percentage per trade
- Symbol override capability for broker compatibility
- Automatic SL/TP level calculation in pips
## Critical Usage Requirements
### Pair-Specific Optimization
Each currency pair requires individual optimization due to varying volatility characteristics, institutional participation levels, and typical price ranges during London hours. The performance HUD is essential for identifying optimal settings before live trading.
**Recommended Testing Process**:
1. Apply indicator to desired currency pair and timeframe
2. Experiment with session timing - while 8:00-9:00 AM GMT is standard, some pairs may show improved performance with alternative hourly windows (e.g., 7:00-8:00 AM or 9:00-10:00 AM)
3. Adjust Stop Loss distances, Risk/Reward ratios, and Retest distances
4. Monitor win rate over 30+ day periods using the performance HUD
5. Only proceed with live alerts once consistent 60%+ win rates are achieved
6. Create separate optimized chart setups for each profitable pair/timeframe combination
### Timeframe Specifications
This indicator is specifically designed and tested for:
- **1-minute charts**: Optimal for capturing immediate institutional reactions
- **5-minute charts**: Balanced approach between noise reduction and opportunity frequency
Higher timeframes generally produce inferior results due to increased noise and reduced institutional edge during the London session window.
## Settings Configuration
### Session Timing
- **London Open/Close Hours**: Adjust for your chart's timezone
- **Rectangle End Time**: Set to 4:30 PM to stop signals before NY session close
- **Timezone Offset**: Ensure accurate London session capture
### Entry Parameters
- **Retest Distance**: 3-8 pips depending on pair volatility
- **Stop Loss Pips**: Separate settings for breakouts (10-15 pips) and retests (8-12 pips)
- **Risk/Reward Ratios**: Independent ratios for different entry types
### PineConnector Setup
- **License ID**: Your PineConnector license key
- **Symbol Override**: MT4/MT5 symbol names if different from TradingView
- **Risk Percentage**: Position size as percentage of account balance
- **Prefix/Comment**: Organize trades in terminal
## Manual Trading Limitations
Without PineConnector automation, traders face significant practical challenges:
**Settings Management**: Each currency pair requires different optimized parameters. Switching between charts means manually adjusting multiple settings each time, creating potential for errors and missed opportunities.
**Timing Sensitivity**: London Open signals can occur rapidly during high-volatility periods. Manual execution may result in slippage or missed entries.
**Multi-Pair Monitoring**: Tracking 4-11 currency pairs simultaneously while manually adjusting settings for each switch becomes impractical for most traders.
**Parameter Consistency**: Risk of using suboptimal settings when quickly switching between pairs, potentially compromising the careful optimization work.
## Recommended Workflow
1. **Historical Testing**: Use win rate HUD to identify profitable pairs and optimal parameters
2. **Demo Automation**: Test PineConnector alerts on demo accounts with optimized settings
3. **Live Implementation**: Deploy alerts only on proven profitable pair/timeframe combinations
4. **Ongoing Monitoring**: Regular review of performance metrics to maintain edge
## Risk Disclaimer
This indicator provides analysis tools and automation capabilities but does not guarantee profitable trading outcomes. Past performance does not predict future results. Users should thoroughly backtest and demo trade before risking live capital. The London session strategy works best during specific market conditions and may underperform during low volatility or unusual market environments.
## Support Requirements
Successful implementation requires:
- Basic understanding of London session market dynamics
- PineConnector subscription for automation features
- Patience for proper optimization process
- Realistic expectations about win rates and drawdown periods
This system is designed for serious traders willing to invest time in proper optimization and risk management rather than plug-and-play solutions.
RSI with TRENDLINEthis indicator calculate and draw trendline on rsi ,this is helpfull for those who tred with rsi
CM Indicator About Indicator:-
1) This is best Indicator for trend identification.
2) This is based on 42 EMA with Upper Band and Lower bands for trend identification.
3) This should be used for Line Bar chart only.
4) Line bar chart should be used at 1 hour for 15 line breaks.
How to Use:-
1) To go with trend is best use of this indicator.
2) This is for stocks and options not for index. Indicator used for Stocks at one hour and options for 10-15 minutes line break.
3) There will be 5% profitability defined for each entry, 3 entries with profit are best posible in same continuous trend 4 and 5th entry is in riskier zone in continuous trend.
4) Loss will only happen if there is trend reversal.
5) Loss could only be one trade of profit out of three profitable trades.
6) Back tested on 200 stocks and 100 options.
KML ALGO V6 – Elite Trading Bot🚀 KML ALGO - Professional Trading Bot by Ahmad Shoaib Kamal
💎 PREMIUM FEATURES:
• Advanced ATR Trailing Stop Algorithm
• Multi-Filter Smart System (RSI, MACD, Stochastic, Volume, Trend)
• Intelligent Scoring System for High-Quality Signals
• Universal: Works on ALL Markets & Timeframes
• Live Information Dashboard
• Professional Alert System
⚡️ WHAT MAKES IT SPECIAL:
✅ Eliminates False Signals with 5-Filter Validation
✅ Adaptive to Market Conditions
✅ Clean Visual Interface with Color-Coded Signals
✅ Real-time Performance Metrics
✅ Fully Customizable Parameters
✅ Works on Crypto, Forex, Stocks, Indices...
🎯 PERFECT FOR:
• Day Traders seeking precise entries/exits
• Swing Traders looking for trend confirmation
• Automated Trading Systems
• Professional Portfolio Management
⚙️ CUSTOMIZABLE SETTINGS:
• Key Value (Signal Sensitivity)
• ATR Period Configuration
• Enable/Disable Any Filter
• Fine-tune All Parameters
• Heikin Ashi Support
🎨 PROFESSIONAL DISPLAY:
• Dynamic Trailing Stop Line
• Clear BUY/SELL Labels
• Weak Signal Indicators
• Live Stats Table
• Smart Alerts
⭐️ DEVELOPED BY: Ahmad Shoaib Kamal
🔥 BATTLE-TESTED ALGORITHM
💰 INVITE-ONLY ACCESS
👉 “Exclusive Access – Apply Now to Unlock Premium Features”
Perfect for Crypto, Forex, Stocks & Indices traders seeking high-accuracy signals with ATR, RSI, MACD, Stochastic, Volume & Trend analysis.
Auto Daily High/Low/50%This indicator automatically plots the current daily high and low, as well as the midrange.
Multi-Session Opening RangesThe Multi-Session Opening Ranges indicator plots the Opening Range (OR) levels for three major trading sessions: Asia, London, and New York. It displays the high (ORH), low (ORL), and midline of each session's opening range, helping traders identify key price levels for potential breakouts, reversals, or support/resistance zones.
This indicator is highly customizable, allowing users to tailor the appearance and behavior of each session independently.
Features
Multi-Session Support: Visualizes Opening Ranges for Asia, London, and New York sessions, with customizable session times and timezones.
Customizable Lines: Adjust the color, style (solid, dashed, dotted), and width of ORH, ORL, and midline for each session.
Offset Control: Set a custom offset (in bars) for lines and labels to position them away from price action for better visibility.
Fill Customization: Choose the fill color for the area between ORH and ORL for each session.
Historical Data Option: Toggle the display of historical OR levels to focus on current session data or analyze past ranges.
Timezone Flexibility: Select from a wide range of timezones to align session times with your trading needs.
Label Customization: Adjust the size of labels (tiny, small, normal, large, huge) for clarity on any chart.
How It Works
The indicator identifies the high and low prices during the user-defined opening range period for each session (default: 5 minutes). It then draws:
ORH (Opening Range High): The highest price during the session's opening range.
ORL (Opening Range Low): The lowest price during the session's opening range.
Midline: The average of ORH and ORL, plotted as a dashed line by default.
Filled Area: A semi-transparent fill between ORH and ORL to highlight the range.
Lines and labels extend until the start of the next session or can be offset by a user-specified number of bars for better chart readability. The indicator supports historical data display for analyzing past session ranges.
Inputs
Display:
Show Historical Data: Enable/disable historical OR levels.
Timezone: Select the timezone for session calculations (e.g., UTC-4, UTC+1, etc.).
Asia/London/New York Sessions:
Show Session: Enable/disable the session.
Session Time: Define the start and end time for the opening range (e.g., "0930-0935:1234567" for 9:30–9:35 AM, all days).
Asia/London/New York Style:
ORH/ORL/Midline Color: Set the color for each line.
ORH/ORL/Midline Style: Choose solid, dashed, or dotted styles.
ORH/ORL/Midline Width: Adjust line thickness (1–5).
OR Fill Color: Customize the fill color for the OR area.
Lines/Labels Offset: Set the offset (in bars, -50 to 50) to shift lines and labels relative to price action.
General Style:
Label Size: Set the size of ORH and ORL labels (tiny, small, normal, large, huge).
Usage
Add the indicator to your chart.
Configure session times to match your trading instrument and timezone.
Customize colors, line styles, widths, and offsets for each session to suit your chart preferences.
Use the ORH, ORL, and midline levels to identify key price zones for trading strategies, such as breakouts or reversals.
Notes
Ensure session times do not overlap to avoid conflicts in visualization.
Large offsets may place lines/labels outside the visible chart area; adjust as needed.
The indicator is optimized for intraday timeframes but works on any timeframe.
pinecon testerThe Pine Editor is moving from the bottom panel to the side panel. This change will happen in phases over the following weeks.
By default, the new editor view overlays on the right side of the screen. For wider screens, a split-view mode is available, which automatically adjusts the chart’s width to keep it visible alongside the editor. With this new vertical orientation, users can easily edit code and view other tabs such as the Strategy Tester or Replay Trading at the same time.
Basing Candles"The script identifies Basing Candles and plots a circle (white or any chosen color) at the midpoint of the candle’s body when its body is smaller than or equal to half of the candle’s total range."
"السكربت يحدد شموع Basing Candles ويرسم دائرة بيضاء أو أي لون تختاره في منتصف جسمها عندما يكون جسم الشمعة أصغر أو يساوي نصف طولها."
PRO - UPTRADE🔥 Anyone can start trading easily! For traders who want to take it more seriously, the PRO Package gives you full access to stocks, crypto, and forex, complete with BUY/SELL signals, multi-timeframe analysis, and automatic discussion threads based on each asset (stocks, crypto, or forex). 🚀 With PRO, you can maximize profit opportunities across markets
BoredYeti - Futures Tick ValueA simple utility that displays the tick size and dollar value per tick for major futures contracts.
🔹 Automatically detects the selected futures symbol
🔹 No manual input required
🔹 Clean, professional table display with contract ticker, tick size, and $ value
For futures traders who want instant reference to contract specs directly on their charts.
Credit Spread Alpha SignalCredit Spread Alpha Signal: Complete Description
Introduction and Purpose
The Credit Spread Alpha Signal is a custom indicator developed for TradingView, designed to monitor the credit spread between High Yield (HY) bond yields and the 10-Year US Treasury yield (US10Y). This indicator serves as an advanced macroeconomic tool for traders and investors, helping to identify shifts in risk sentiment, monetary policy adjustments, or financial stress in the economy. It combines credit market data with statistical analysis to generate inverted buy and sell signals, where wider spreads (deteriorated conditions) are seen as buy opportunities (green), and tight spreads (risk-on) as sell opportunities (red).
The script is original, inspired by macroeconomic concepts, and visualizes data intuitively with histograms, background colors, and signal arrows. It is particularly useful for portfolio traders seeking confirmation signals or early warnings, integrating seamlessly into charts of stocks, bonds, or crypto assets.
Key Concepts
- HY Spread : Calculated as the difference between the High Yield Corporate Effective Yield (symbol: BAMLH0A0HYM2EY) and the US10Y Yield. Wider spreads indicate higher credit risk and economic deterioration (buy opportunity in the inverted logic). Tight spreads reflect market optimism (risk-on, sell opportunity).
- Inverted Signal Logic : Unlike traditional interpretation, here widening spreads (stress) trigger green and buy arrows (↑ below the chart), suggesting entry into long positions during panics. Compressing spreads trigger red and sell arrows (↓ above the chart), indicating exit during optimism peaks.
- Visual Highlights : Green for spread > +2.2σ (financial stress, buy); Red for spread < low threshold (risk-on, sell); Optional orange for recession risk (inverted curve + high spread, strong buy).
The indicator uses statistics like simple moving average (SMA) and standard deviation for dynamic thresholds, making it adaptable to different market periods.
How It Works: Internal Calculations
1. Data Sources : Uses `request.security` to fetch daily data ("D") from US10Y, US02Y (for inverted curve), and HY Yield.
2. Spread Calculation : `spread_hy = hy_yield - us10y`.
3. Statistics :
- Average (SMA) of the spread over the last `sma_length` days (default: 120).
- Standard deviation (stdev) over the same period.
- High threshold: `avg_spread_hy + std_mult * std_spread_hy` (default: multiplier 2.2).
- Low threshold: Editable value (default: 1.5%).
4. Conditions :
- High stress (green/buy): `spread_hy > high_threshold`.
- Compression (red/sell): `spread_hy < low_threshold`.
- Recession risk (orange/strong buy, optional): Inverted curve (`us10y < us2y`) + spread > `recession_spread_threshold`.
5. Crossings for Signals :
- Buy (green ↑ below): Crossover above high threshold (`ta.crossover`).
- Sell (red ↓ above): Crossunder below low threshold (`ta.crossunder`).
These calculations are processed bar by bar, ensuring real-time updates.
Visual Elements
- Histogram : Plots the spread as columns (`plot.style_columns`), dynamically colored: Light green (90% transparency) for stress/buy; Light red (90%) for compression/sell; Gray for neutral; Orange for recession.
- Reference Line : Horizontal red line at zero for benchmark.
- Background Coloring : Applies color to the main chart (overlay=true via force_overlay): Light green for buy, Light red for sell, Orange for recession, no color for neutral.
- Signal Arrows : ↑ Green below the bar for buy (widening_cross); ↓ Red above the bar for sell (compressed_cross).
- Floating Legend : Label in the lower panel explaining thresholds and conditions, dynamically updated with editable values.
Editable Settings (Inputs)
- SMA Period (days) : Default 120; adjusts the horizon for average and standard deviation.
- Standard Deviation Multiplier : Default 2.2; sets sensitivity of the high threshold (e.g., 2.2σ for moderate alerts).
- Low Threshold for Compression (%) : Default 1.5; level to detect risk-on/sell.
- Enable Recession Risk? : Default false; activates combined condition of inverted curve + high spread.
- Spread Threshold for Recession (%) : Default 2.0; level for recession (visible if enabled).
These inputs allow customization via the TradingView interface, without editing the code.
Integrated Alerts
The indicator includes alert conditions (`alertcondition`) for notifications in TradingView:
- "ALERT: HY Spread High": Spread exceeds threshold - financial stress (Buy).
- "ALERT: HY Spread Compressed": Spread compressed - risk-on conditions (Sell).
- "ALERT: HY Spread Widening (Buy)": Crossover above - buy opportunity in stress.
- "ALERT: HY Spread Compressed (Sell)": Crossunder below - sell opportunity in risk-on.
- "ALERT: Recession Risk (Strong Buy)": Inverted curve + high spread - high recession risk, consider buy (if enabled).
Set up alerts for email, SMS, or webhook notifications.
Usage Tips and Considerations
- Recommended Timeframe : Daily ("D"), but works on others; data is forced to daily for consistency.
- Practical Application : Add to charts of indices like SPY or QQQ to correlate with market moves. Test on historical periods (e.g., 2020 for widening, 2021 for compressing) to validate signals.
- Limitations : Relies on external data (US10Y, HY Yield), which may have delays; spreads are typically positive. Not financial advice – use with complementary analysis.
- Advanced Customization : Adjust thresholds for volatile markets; enable recession for more robust macro signals.
This indicator transforms credit data into actionable alpha, helping navigate economic cycles with visual precision. For support or modifications, refer to the source code or TradingView community.
Mucip + Yağız AL BUY İndikatörü v3This is the strengthened version of version 2 with an additional condition. It does not provide definitive results. It is the indicator version of the strategy I use to detect potential reversal points. It will continue to be developed. It should be used in different timeframes and with additional confirmations.
Script Info BannerThe script includes a small template displaying the username, script name, and date of analysis. This feature is implemented to establish credibility and prevent unauthorized use of the analysis.
Futures Tick Value [Epic Edge Trading]A simple utility that displays the tick size and dollar value per tick for major futures contracts.
🔹 Automatically detects the selected futures symbol
🔹 No manual input required
🔹 Clean, professional table display with contract ticker, tick size, and $ value
For futures traders who want instant reference to contract specs directly on their charts.