AI Trading Signals - Crypto, Stocks & Forex🧠 AI Trading Signals – Layered Confirmation System for Crypto, Stocks & Forex
The AI Trading Signals Indicator is a proprietary, closed-source script that helps traders identify structured trade setups by combining trend analysis, momentum filtering, and breakout confirmation across multiple timeframes.
This system is designed to eliminate guesswork by layering multiple validated conditions into one modular framework, helping traders adapt to a wide range of market environments.
Multi-layer trend bias detection
Momentum exhaustion and continuation filtering
Breakout zone mapping and structure validation
Bitcoin macro cycle tracking
Multi-timeframe signal confirmation (optional)
🔍 How It Works (Core Logic Overview)
Signals are only generated when multiple technical layers align:
EMA stacking (20/50/200) defines the primary directional bias
RSI combined with VWAP detects momentum exhaustion or continuation
Trend channel bands map dynamic support/resistance breakout zones
LC (Long Continuation) and SC (Short Continuation) signals validate breakout structure using price action and momentum shifts
BTC macro cycle detection based on 111-Day and 350-Day moving averages identifies longer-term tops and bottoms
Optional Multi-Timeframe filtering ensures entries on lower timeframes (1m/3m/15m) only trigger if the higher timeframe (15m/45m/4H/1D) bias confirms
No signals are based on a single condition — all trade triggers require cross-confirmation between trend, momentum, and price structure.
🎯 Strategy Modes
Users can choose a strategy that aligns with their trading goals directly from the Inputs tab.
Buy & Sell Confirmation Mode
Long Positions Only Mode
Short Positions Only Mode
Breakout Continuation Mode (LC/SC logic)
BTC Macro Cycle Mode (Bull/Bear Seasons, BTC Top Detection)
⚙️ Customization & Features
The system is modular, allowing users to configure their chart and alerts to match their style.
Toggle specific signals: Buy, Sell, TP, SL, LC, SC, Exit Long, Exit Short
Enable Multi-Timeframe Signal Dashboard (visual tracker from 3m to 1D)
Intraday Breakout Feature: Dynamic high/low levels from the largest 15m candle
Visual filtering for cleaner, non-cluttered charts
Adjustable Take Profit and Stop Loss levels based on asset behavior
🧠 What Makes This Script Unique
Unlike simple indicator mashups, the AI Trading Signals system:
Requires multiple layers of condition validation before confirming signals
Integrates directional bias + momentum exhaustion + breakout structure
Offers real-time intraday breakout levels with dynamic TP/SL handling
Uses proprietary Bitcoin macro cycle detection unavailable in public libraries
Built for real-world usability with user-centered modular design
This tool is designed for discretionary traders who want confirmation-based decision making , not raw signal automation.
📌 How to Use It:
Use this system to layer signals for higher-probability trade setups. Select a strategy mode, customize your chart view, and align multiple confirmations where possible.
Select your desired strategy mode
Enable or disable visual layers in the Style tab
Optionally use Multi-Timeframe filtering for more precise entries
Set alerts based on your strategy (Buy, Sell, TP, SL, LC, SC, BTC cycle shifts)
Use the Intraday Breakout levels to track daily momentum shifts
For best results, use multiple signal layers together — trend bias, momentum confirmation, and breakout structure — to increase trade confidence and filter weaker setups.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice or imply guaranteed results. Trading involves significant risk — use at your own discretion.
Candlestick analysis
Most Volume Candle LevelsThe script finds the candlestick with the maximum volume in the specified period (20 bars by default).
Draws levels on high and low of this candlestick.
You can set the color of the lines (yellow by default).
Relative Volume CandlesVisualizes candlesticks with transparency based on volume relative to a moving average. Higher-than-average volume makes candles more opaque, while lower volume increases transparency—helping you spot significant price movements at a glance!
Features:
Customizable up/down candle colors (default: green/red)
Adjustable lookback period for volume averaging (default: 21)
Fine-tune transparency with base transparency (default: 80) and scale (default: 2.0)
Overlay directly on your chart for seamless analysis
4H CRT Trendlines OnlyThis TradingView indicator plots 4-hour CRT (Central Range Time) trendlines based on specific session times (1AM, 5AM, 9AM, 1PM, 5PM, 9PM).
It also analyzes daily market bias to detect potential reversals or continuations at the start of each trading day.
Developed and maintained by Faisal Ali Salad.
Contact: faysalali2021@gmail.com | WhatsApp: +252 613422773.
Protected Script — source code is hidden to protect intellectual property.
Suitable for traders looking for accurate session levels and daily bias identification.
Weekday Colors with Time Highlighting by NabojeetThis script is a Pine Script (version 6) indicator called "Weekday Colors with Time Highlighting" designed for TradingView charts. It has several key functions:
1. **Weekday Color Coding**:
- Assigns different background colors to each trading day (Monday through Friday)
- Allows users to customize the color for each day
- Includes toggles to enable/disable colors for specific days
2. **Time Range Highlighting**:
- Highlights a specific time period (e.g., 18:15-18:30) on every trading day
- Uses a custom color that can be adjusted by the user
- The time range is specified in HHMM-HHMM format
3. **High/Low Line Drawing**:
- Automatically identifies the highest high and lowest low points within the specified time range
- Draws horizontal lines at these levels when the time period ends
- Lines extend forward in time to serve as support/resistance references
- Users can customize the line color, width, and style (solid, dotted, or dashed)
The script is organized into logical sections with input parameters grouped by function (Weekday Colors, Weekday Display, Time Highlighting, and Horizontal Lines). Each section's inputs are customizable through the indicator settings panel.
This indicator would be particularly useful for traders who:
- Want visual distinction between different trading days
- Focus on specific time periods each day (like market opens, closes, or specific sessions)
- Use intraday support/resistance levels from key time periods
- Want to quickly identify session highs and lows
The implementation resets tracking variables at the beginning of each new time range and draws the lines once the time period ends, ensuring accurate high/low marking for each day's specified time window.
Author - Nabojeet
Session Times + Strenght M7This Script Aims to Define Session Times, and Rank those. It can help to adjust your Strategy to Higher Volatility, if you choose to use the Session Volatility and Strenght Index from 1-10. Your timezone on Trading View should be NY. You can customize the Following in Settings: Weight of Volatility & Narrative Regarding the ranking + Transparency of the Lines. SP:SPX FX:EURUSD OANDA:EURUSD CAPITALCOM:USDJPY AMEX:SPY NASDAQ:QQQ TVC:DXY CAPITALCOM:USDJPY CME_MINI:NQ1! OANDA:XAUUSD FX:GBPUSD
Professional Candlestick + QQE Confirm v1.0Professional Candlestick + QQE Confirm v1.0
This indicator combines professional candlestick pattern detection with advanced momentum confirmation for ultra-high probability signals.
Features:
📜 Detects major candlestick patterns: Hammer, Shooting Star, Bullish/Bearish Engulfing, Morning Star, Evening Star, Doji.
⚡ Includes QQE (Quantitative Qualitative Estimation) Buy/Sell confirmation.
🔧 Optional extra confirmations: RSI filter, MACD histogram filter, VWAP filter.
🎯 Only shows signals when both pattern and momentum agree (optional settings).
📈 Perfect for traders looking for reliable reversal setups and momentum-confirmed entries.
🎨 Clean shape plotting with success rate percentages shown on chart.
🔔 Ready-made alert conditions for all buy/sell setups.
Customization Options:
Turn QQE confirmation ON or OFF.
Customize RSI, MACD, VWAP confirmations independently.
Fine-tune your filters based on market conditions and personal strategy.
Best used on:
Higher timeframes (15min, 1H, 4H, Daily) for more reliable signals.
Disclaimer:
This tool is for educational purposes only. Always use proper risk management and conduct your own analysis before trading.
Developed by Keyvan 🚀
OuterBar [DTMM]OuterBar Indicator – Technical Overview
The OuterBar Indicator is a technical analysis tool for TradingView that detects and visualizes "Outer Bars" based on price action.
Core Concept:
An Outer Bar is identified when a candle's closing price exceeds the high or low of the previously confirmed Outer Bar. Positive Outer Bars (close above high) and negative Outer Bars (close below low) are automatically detected.
Features:
Automatic detection of Outer Bars and optional marking of Inner Bars
Visual price range analysis with customizable lines and midpoints
Colored zone visualization for better structural recognition
Extensive customization options for colors, transparency, and number of Outer Bars retained
Applications:
Identifying potential trend reversals or continuation points
Recognizing key support and resistance zones
Analyzing price impulses across different timeframes
Unique Strengths:
Clear visual representation through color-coded candles and zones
Historical analysis support to detect long-term patterns
Flexible adaptation to various trading strategies and markets
The OuterBar Indicator provides a structured view of market price action by focusing on significant breakouts from prior trading ranges, helping traders recognize shifts in momentum and trend direction.
Tango Rocket velas 1.3Tango Rocket Indicator:
Daily Volatility Range Projection
This indicator identifies the 3 largest-bodied candles from the last N daily bars and calculates a projected price range centered on the current day’s opening price. The projected channel is displayed for the current day and past days, helping visualize potential daily movement and historical volatility patterns.
FXTDPR Dual Timeframe High-Low BoxesThe "Dual Timeframe High-Low Boxes" indicator is designed to visualize price ranges and key levels across two user-defined timeframes (default: 15-minute and 4-hour) on the same chart. It draws rectangular boxes representing the high and low price levels within each timeframe, along with a horizontal line indicating the opening price of the timeframe. Labels are added to mark the opening price with bilingual text (English/Turkish). The indicator is highly customizable, allowing users to adjust timeframes, colors, transparency, line styles, and display options.
// Key Features:
// 1. **Dual Timeframe Support**: Simultaneously displays boxes for two timeframes (e.g., 15M and 4H), enabling analysis of both short-term and long-term price movements.
// 2. **High-Low Boxes**: Each box represents the highest and lowest prices within the selected timeframe, dynamically updating as new highs or lows occur.
// 3. **Opening Price Line**: A horizontal line is drawn at the opening price of each timeframe, fixed from the start to the end of the timeframe period.
// 4. **Bilingual Labels**: Labels display the timeframe and opening price in both English and Turkish (e.g., "15M Open Price / Açılış Fiyatı") for enhanced accessibility.
// 5. **Customizable Display**: Users can choose to display boxes for both timeframes, only Timeframe 1, or only Timeframe 2 via the "Display Timeframes" setting.
// 6. **Color and Style Customization**: Separate settings for bullish/bearish box colors, opening price line color, line style (solid, dashed, dotted), and label text color for each timeframe.
// 7. **Transparency Control**: Adjustable transparency for boxes to prevent chart clutter.
// 8. **Performance Optimization**: Limits the number of displayed boxes to 500 (via max_boxes_count) to ensure smooth performance.
// 9. **Accurate Timing**: Boxes start precisely at the beginning of each timeframe’s candle (e.g., 16:45 for 15M, 00:00 for 4H), ensuring alignment with the selected timeframe.
// 10. **No Input Confirmation**: The indicator starts with default settings (15M and 4H, both displayed) without requiring user confirmation, streamlining the setup process.
// How It Works:
// - The indicator uses request.security() to fetch time data for the user-defined timeframes and detects new timeframe periods using ta.change().
// - For each timeframe, it initializes a box at the start of the period, setting the initial high, low, and open prices.
// - As new candles form within the timeframe, the box’s high and low boundaries are updated to reflect the highest and lowest prices.
// - The box color changes based on whether the closing price is above (bullish) or below (bearish) the opening price.
// - A fixed horizontal line is drawn at the opening price, spanning the timeframe’s duration, with a label at the end of the box indicating the timeframe and opening price.
// - Users can toggle between displaying both timeframes or a single timeframe, with all settings (colors, styles, transparency) applied independently for each timeframe.
// Usage:
// - Add the indicator to your chart, and it will automatically display 15M and 4H boxes with default settings.
// - Use the settings menu to customize timeframes, colors, line styles, transparency, or to select which timeframes to display.
// - Ideal for identifying support/resistance levels, breakout opportunities, or trend analysis across multiple timeframes.
// Notes:
// - For optimal performance, use a chart timeframe equal to or lower than the smaller selected timeframe (e.g., 15M chart for 15M and 4H boxes).
// - The indicator is designed for flexibility, supporting timeframes from 1 minute to monthly periods.
// - To avoid chart clutter, adjust transparency settings or reduce max_boxes_count for long historical data.
GCM Supreme Trading System Pro (With Golden Zone)Okay, bro! Here are some notes on your "GCM Supreme Trading System Pro (Dashboard + RSI)" indicator based on the Pine Script code you provided. Think of this as a breakdown of its components, logic, and how you might use it, along with some things to consider.
GCM Supreme Trading System Pro (Dashboard + RSI) - Notes
Overall Concept:
This indicator aims to provide an "all-in-one" visual dashboard and signal system by combining several technical analysis concepts:
Short-Term Trend: Using a fast EMA.
Volatility/Channel: High/Low plot with fill.
Sentiment: Background color based on price vs. EMA.
Price Structure/Pattern: Highlighting potential AMD phases.
Key Price Level: Previous day's specific Fibonacci zone (Golden Zone).
Momentum: RSI Overbought/Oversold status.
Volume Analysis: Identifying volume spikes.
Risk Assessment: Based on ATR volatility.
Signal Generation: Based on EMA direction change confirmed by candle color.
Centralized Summary: A dashboard showing the status of key components.
Key Components & How They Work:
Trend EMA (Length: 3 by default):
What: A very fast Exponential Moving Average of the specified source (close by default).
How: Plots the EMA line. Colors the line green if the EMA is moving up, red if moving down, gray if flat.
Usage: Provides a very quick view of the immediate price direction and momentum.
High/Low Channel Lines & Fill:
What: Plots the current bar's high and low.
How: The area between the high and low is filled. The fill color changes based on whether the Trend EMA is moving up (green fill), down (red fill), or is neutral (gray fill).
Usage: Visualizes the recent price range/volatility and ties it to the immediate trend direction.
Sentiment Background:
What: Colors the chart background.
How: Background is lightly colored green if the close is above the Trend EMA, and red if the close is below the Trend EMA.
Usage: Reinforces the current short-term bias based on price's position relative to the fast EMA.
AMD Pattern Candles:
What: Highlights specific candle patterns often associated with Accumulation, Manipulation, and Distribution phases.
How:
Accumulation (Aqua): Previous candle was Red, current candle is Green (Red -> Green).
Manipulation (Yellow): Previous candle was Green, current candle is Red (Green -> Red).
Distribution (Fuchsia): Two consecutive Red candles where the candle before the first Red was Not Red (Not Red -> Red -> Red).
Usage: Helps visually spot potential shifts in market behavior according to the AMD concept.
Previous Day's Fib Golden Zone (0.55-0.66):
What: Calculates a specific Fibonacci zone (between 55% and 66%) based on the previous day's range (High-Low).
How: Plots a horizontal box on the chart covering the calculated zone level. Uses the previous day's range direction (Green/Red candle) to determine if the zone is calculated up from the low (Green day) or down from the high (Red day).
Usage: Identifies a potential key retracement or support/resistance zone from the previous day's price action that may be relevant for the current day.
RSI (Relative Strength Index):
What: A classic momentum oscillator.
How: Calculates the RSI value based on the specified length and source. The dashboard shows the current value and flags it as Overbought (> OB level), Oversold (< OS level), or Neutral.
Usage: Provides context on momentum extremes. High RSI suggests strong upward momentum (potentially overextended), low RSI suggests strong downward momentum (potentially oversold).
Volume Spike Confirmation:
What: Compares current volume to its Moving Average.
How: Calculates a simple moving average of volume. Identifies a "Spike" if the current volume is significantly higher (multiplied by a factor) than the MA.
Usage: Provides a contextual check for increased activity accompanying price moves. (Note: In the current script, this is calculated and shown on the dashboard but not directly used in the signal label logic, though it could be added).
Risk Assessment (ATR):
What: Uses the Average True Range.
How: Calculates the ATR for the specified length. Compares the current ATR to a longer-term average ATR. Flags "High Risk" if the current ATR is significantly higher than the average.
Usage: Gives an indication of current volatility relative to recent history, which can inform stop-loss placement or position sizing.
Signals (Buy/Sell Labels):
What: Plots "BUY" or "SELL" labels on the chart.
How:
BUY Signal: Triggers when the Trend EMA starts moving Up on the previous bar AND the current bar is Green (close > open).
SELL Signal: Triggers when the Trend EMA starts moving Down on the previous bar AND the current bar is Red (close < open).
Usage: These are your potential entry triggers. They indicate that the fast EMA trend has just changed direction and the current candle is confirming that move with its color.
Dashboard:
What: A 2x5 table displayed on the chart (bottom right by default).
How: Shows the current status of:
Trend (Bull/Bear/Neutral)
Volume (Spike/Normal)
Last Signal (🟢 BUY, 🔴 SELL, or None)
Risk (High/Normal based on ATR)
RSI (Overbought/Oversold/Neutral + Current Value)
Usage: Provides a quick, centralized summary of multiple indicator components without having to visually check every detail on the chart or separate panes.
How to Potentially Use It (Example Interpretation):
Look for a BUY signal (Green label) when:
The dashboard shows "🟢 BUY" as the Last Signal.
Consider additional confirmation: Is Volume status "Spike"? Is Risk "Normal"? Is RSI not "Overbought" (or perhaps just coming out of "Oversold" territory)? Is the price above/interacting positively with the Golden Zone?
Look for a SELL signal (Red label) when:
The dashboard shows "🔴 SELL" as the Last Signal.
Consider additional confirmation: Is Volume status "Spike"? Is Risk "Normal"? Is RSI not "Oversold" (or perhaps just coming out of "Overbought" territory)? Is the price below/interacting negatively with the Golden Zone?
Use the Sentiment Background and High/Low Channel Fill to quickly see the immediate trend and volatility context.
Watch AMD candles around key levels (like the Golden Zone or signal triggers) for potential pattern confirmation.
Check the Dashboard frequently for a summary of all these factors, even without a specific signal.
Strengths & Potential Benefits:
Comprehensive View: Integrates multiple popular trading concepts into a single indicator.
Visual Clarity: Uses colors, fills, labels, and a dashboard for easy interpretation.
Customizable: Inputs allow tuning the sensitivity of the EMA, Volume, ATR, and RSI to different assets/timeframes.
Dashboard Efficiency: Saves time by consolidating key status points.
Non-Repainting Signals: The buy/sell labels trigger and stay based on closed bar data.
Important Considerations & Limitations:
Fast EMA Sensitivity: An EMA length of 3 is very fast and prone to whipsaws, especially in choppy or ranging markets. Signals based solely on this could be frequent and unreliable in non-trending conditions.
Signal Logic: The core signal is only based on EMA direction change + candle color. While simple, it might miss opportunities or generate signals without broader market confirmation (like strong volume, favorable RSI position, or reaction at key levels). The dashboard provides these other factors as context, but they aren't required for the signal label in the current code.
Golden Zone Reliance: The previous day's Fib zone is just one potential level. It won't always be respected, and its relevance might vary significantly across different markets and timeframes.
AMD Patterns: The defined AMD patterns are specific. The market's "real" accumulation/manipulation/distribution might manifest in more complex ways.
Dashboard as Summary, Not Signal: Remember the dashboard shows the current status of all components on the last bar, but the BUY/SELL signal labels are based on a specific historical event (previous bar's EMA turn). You need to look at both: the label for the trigger, and the dashboard for the confluence of other factors right now.
Not a Standalone System: While called a "Trading System," no single indicator guarantees profitability. This tool provides signals and context, but requires a robust trading plan including stop losses, profit targets, position sizing, and potentially confluence with other analysis methods.
Timeframe Dependency: The ideal settings (EMA length, RSI length, etc.) will likely differ significantly between timeframes (e.g., 1-minute vs. 4-hour). Testing and optimization are crucial.
In Summary:
The "GCM Supreme Trading System Pro (Dashboard + RSI)" is a well-designed indicator that consolidates several useful analysis tools into a single view. Its strength lies in providing quick visual context and a clear signal trigger based on short-term trend shifts. However, like any indicator, it's not perfect. Its effectiveness will largely depend on the market conditions, the chosen settings, and how it's integrated into a comprehensive trading strategy, using the dashboard components as essential confirmation and risk assessment tools alongside the primary signal labels.
Micro Gaps DetectorSimple Micro Gap Indicator: A Technical Analysis Tool
The Simple Micro Gap Indicator is a specialized momentum indicator designed to identify and analyze micro gaps between consecutive candlesticks in financial charts. Unlike traditional gap analysis that focuses on larger price gaps, this indicator specifically targets smaller, less noticeable spaces between candles.
Key Features:
Detects minimal price disparities between consecutive candlesticks
Helps identify potential short-term momentum shifts
Useful for high-frequency trading and scalping strategies
Functions as a momentum indicator for short-term price movements
SMC Entry Signals MTF v2📘 User Guide for the SMC Entry Signals MTF v2 Indicator
🎯 Purpose of the Indicator
This indicator is designed to identify reversal entry points based on Smart Money Concepts (SMC) and candlestick confirmation. It’s especially useful for traders who use:
Imbalance zones, order blocks, breaker blocks
Liquidity grabs
Multi-timeframe confirmation (MTF)
📈 How to Use the Signals on the Chart
✅ LONG Signal (green triangle below the candle):
Conditions:
Price is in a discount zone (below the FIB 50% level)
A bullish engulfing candle appears
A bullish Order Block (OB) or Breaker Block is detected
There’s an upward imbalance
A bullish OB is confirmed on the higher timeframe
➡️ How to act:
Consider entering long on the current or next candle.
Place your stop-loss below the OB or the nearest swing low.
Take profit at the nearest liquidity zone or premium area (above FIB 50%).
🔻 SHORT Signal (red triangle above the candle):
Conditions:
Price is in a premium zone (above FIB 50%)
A bearish engulfing candle appears
A bearish OB or Breaker Block is detected
There’s a downward imbalance
A bearish OB is confirmed on the higher timeframe
➡️ How to act:
Consider short entry after the signal.
Place your stop-loss above the OB or swing high.
Target the discount zone or the next liquidity pocket.
⚙️ Recommended Settings by Trading Style
Trading Style Suggested Settings Notes
Intraday (1–15m) fibLookback = 20–50, obLookback = 5–10, htf_tf = 1H/4H Fast signals. Use Discount/Premium + Engulfing.
Swing/Position (1H–1D) fibLookback = 50–100, obLookback = 10–20, htf_tf = 1D/1W Higher trust in MTF confirmation. Ideal with fundamentals.
Scalping (1m) fibLookback = 10–20, obLookback = 3–5, htf_tf = 15m/1H Remove Breaker and MTF for quick reaction trades.
🧠 Best Practices for Traders
Trend Filtering:
Use EMAs or volume to confirm the current trend.
Take longs only in uptrends, shorts in downtrends.
Liquidity Zones:
Use this indicator after liquidity grabs.
OBs and Breakers often appear right after stop hunts.
Combine with Manual Zones:
This works best when paired with manually drawn OBs and key levels.
Backtest the Signals:
Use Bar Replay mode on TradingView to test past signals.
🧪 Example Trade Setup
Example on BTCUSDT 15m:
Price drops into the discount zone.
A green triangle appears (bullish engulfing + OB + imbalance + HTF OB).
You enter long, stop below the OB, target the premium zone.
🎯 This type of setup often gives a risk/reward ratio of 1:2 or better — profitable even with a 40% win rate.
⏰ Alerts & Automation
Enable alerts:
"SMC Long Entry" — fires when a long signal appears.
"SMC Short Entry" — fires when a short signal appears.
You can integrate this with bots via webhook, like:
TradingConnector, 3Commas, Alertatron, etc.
✅ What This Indicator Gives You
High-probability entries using SMC logic
Customizable filters for entry logic
Multi-timeframe confirmation for stronger setups
Suitable for both intraday and swing trading
ADR% Extension Levels from SMA 50I created this indicator inspired by RealSimpleAriel (a swing trader I recommend following on X) who does not buy stocks extended beyond 4 ADR% from the 50 SMA and uses extensions from the 50 SMA at 7-8-9-10-11-12-13 ADR% to take profits with a 20% position trimming.
RealSimpleAriel's strategy (as I understood it):
-> Focuses on leading stocks from leading groups and industries, i.e., those that have grown the most in the last 1-3-6 months (see on Finviz groups and then select sector-industry).
-> Targets stocks with the best technical setup for a breakout, above the 200 SMA in a bear market and above both the 50 SMA and 200 SMA in a bull market, selecting those with growing Earnings and Sales.
-> Buys stocks on breakout with a stop loss set at the day's low of the breakout and ensures they are not extended beyond 4 ADR% from the 50 SMA.
-> 3-5 day momentum burst: After a breakout, takes profits by selling 1/2 or 1/3 of the position after a 3-5 day upward move.
-> 20% trimming on extension from the 50 SMA: At 7 ADR% (ADR% calculated over 20 days) extension from the 50 SMA, takes profits by selling 20% of the remaining position. Continues to trim 20% of the remaining position based on the stock price extension from the 50 SMA, calculated using the 20-period ADR%, thus trimming 20% at 8-9-10-11 ADR% extension from the 50 SMA. Upon reaching 12-13 ADR% extension from the 50 SMA, considers the stock overextended, closes the remaining position, and evaluates a short.
-> Trailing stop with ascending SMA: Uses a chosen SMA (10, 20, or 50) as the definitive stop loss for the position, depending on the stock's movement speed (preferring larger SMAs for slower-moving stocks or for long-term theses). If the stock's closing price falls below the chosen SMA, the entire position is closed.
In summary:
-->Buy a breakout using the day's low of the breakout as the stop loss (this stop loss is the most critical).
--> Do not buy stocks extended beyond 4 ADR% from the 50 SMA.
--> Sell 1/2 or 1/3 of the position after 3-5 days of upward movement.
--> Trim 20% of the position at each 7-8-9-10-11-12-13 ADR% extension from the 50 SMA.
--> Close the entire position if the breakout fails and the day's low of the breakout is reached.
--> Close the entire position if the price, during the rise, falls below a chosen SMA (10, 20, or 50, depending on your preference).
--> Definitively close the position if it reaches 12-13 ADR% extension from the 50 SMA.
I used Grok from X to create this indicator. I am not a programmer, but based on the ADR% I use, it works.
Below is Grok from X's description of the indicator:
Script Description
The script is a custom indicator for TradingView that displays extension levels based on ADR% relative to the 50-period Simple Moving Average (SMA). Below is a detailed description of its features, structure, and behavior:
1. Purpose of the Indicator
Name: "ADR% Extension Levels from SMA 50".
Objective: Draw horizontal blue lines above and below the 50-period SMA, corresponding to specific ADR% multiples (4, 7, 8, 9, 10, 11, 12, 13). These levels represent potential price extension zones based on the average daily percentage volatility.
Overlay: The indicator is overlaid on the price chart (overlay=true), so the lines and SMA appear directly on the price graph.
2. Configurable Inputs
The indicator allows users to customize parameters through TradingView settings:
SMA Length (smaLength):
Default: 50 periods.
Description: Specifies the number of periods for calculating the Simple Moving Average (SMA). The 50-period SMA serves as the reference point for extension levels.
Constraint: Minimum 1 period.
ADR% Length (adrLength):
Default: 20 periods.
Description: Specifies the number of days to calculate the moving average of the daily high/low ratio, used to determine ADR%.
Constraint: Minimum 1 period.
Scale Factor (scaleFactor):
Default: 1.0.
Description: An optional multiplier to adjust the distance of extension levels from the SMA. Useful if levels are too close or too far due to an overly small or large ADR%.
Constraint: Minimum 0.1, increments of 0.1.
Tooltip: "Adjust if levels are too close or far from SMA".
3. Main Calculations
50-period SMA:
Calculated with ta.sma(close, smaLength) using the closing price (close).
Serves as the central line around which extension levels are drawn.
ADR% (Average Daily Range Percentage):
Formula: 100 * (ta.sma(dhigh / dlow, adrLength) - 1).
Details:
dhigh and dlow are the daily high and low prices, obtained via request.security(syminfo.tickerid, "D", high/low) to ensure data is daily-based, regardless of the chart's timeframe.
The dhigh / dlow ratio represents the daily percentage change.
The simple moving average (ta.sma) of this ratio over 20 days (adrLength) is subtracted by 1 and multiplied by 100 to obtain ADR% as a percentage.
The result is multiplied by scaleFactor for manual adjustments.
Extension Levels:
Defined as ADR% multiples: 4, 7, 8, 9, 10, 11, 12, 13.
Stored in an array (levels) for easy iteration.
For each level, prices above and below the SMA are calculated as:
Above: sma50 * (1 + (level * adrPercent / 100))
Below: sma50 * (1 - (level * adrPercent / 100))
These represent price levels corresponding to a percentage change from the SMA equal to level * ADR%.
4. Visualization
Horizontal Blue Lines:
For each level (4, 7, 8, 9, 10, 11, 12, 13 ADR%), two lines are drawn:
One above the SMA (e.g., +4 ADR%).
One below the SMA (e.g., -4 ADR%).
Color: Blue (color.blue).
Style: Solid (style=line.style_solid).
Management:
Each level has dedicated variables for upper and lower lines (e.g., upperLine1, lowerLine1 for 4 ADR%).
Previous lines are deleted with line.delete before drawing new ones to avoid overlaps.
Lines are updated at each bar with line.new(bar_index , level, bar_index, level), covering the range from the previous bar to the current one.
Labels:
Displayed only on the last bar (barstate.islast) to avoid clutter.
For each level, two labels:
Above: E.g., "4 ADR%", positioned above the upper line (style=label.style_label_down).
Below: E.g., "-4 ADR%", positioned below the lower line (style=label.style_label_up).
Color: Blue background, white text.
50-period SMA:
Drawn as a gray line (color.gray) for visual reference.
Diagnostics:
ADR% Plot: ADR% is plotted in the status line (orange, histogram style) to verify the value.
ADR% Label: A label on the last bar near the SMA shows the exact ADR% value (e.g., "ADR%: 2.34%"), with a gray background and white text.
5. Behavior
Dynamic Updating:
Lines update with each new bar to reflect new SMA 50 and ADR% values.
Since ADR% uses daily data ("D"), it remains constant within the same day but changes day-to-day.
Visibility Across All Bars:
Lines are drawn on every bar, not just the last one, ensuring visibility on historical data as well.
Adaptability:
The scaleFactor allows level adjustments if ADR% is too small (e.g., for low-volatility symbols) or too large (e.g., for cryptocurrencies).
Compatibility:
Works on any timeframe since ADR% is calculated from daily data.
Suitable for symbols with varying volatility (e.g., stocks, forex, cryptocurrencies).
6. Intended Use
Technical Analysis: Extension levels represent significant price zones based on average daily volatility. They can be used to:
Identify potential price targets (e.g., take profit at +7 ADR%).
Assess support/resistance zones (e.g., -4 ADR% as support).
Measure price extension relative to the 50 SMA.
Trading: Useful for strategies based on breakouts or mean reversion, where ADR% levels indicate reversal or continuation points.
Debugging: Labels and ADR% plot help verify that values align with the symbol’s volatility.
7. Limitations
Dependence on Daily Data: ADR% is based on daily dhigh/dlow, so it may not reflect intraday volatility on short timeframes (e.g., 1 minute).
Extreme ADR% Values: For low-volatility symbols (e.g., bonds) or high-volatility symbols (e.g., meme stocks), ADR% may require adjustments via scaleFactor.
Graphical Load: Drawing 16 lines (8 upper, 8 lower) on every bar may slow the chart for very long historical periods, though line management is optimized.
ADR% Formula: The formula 100 * (sma(dhigh/dlow, Length) - 1) may produce different values compared to other ADR% definitions (e.g., (high - low) / close * 100), so users should be aware of the context.
8. Visual Example
On a chart of a stock like TSLA (daily timeframe):
The 50 SMA is a gray line tracking the average trend.
Assuming an ADR% of 3%:
At +4 ADR% (12%), a blue line appears at sma50 * 1.12.
At -4 ADR% (-12%), a blue line appears at sma50 * 0.88.
Other lines appear at ±7, ±8, ±9, ±10, ±11, ±12, ±13 ADR%.
On the last bar, labels show "4 ADR%", "-4 ADR%", etc., and a gray label shows "ADR%: 3.00%".
ADR% is visible in the status line as an orange histogram.
9. Code: Technical Structure
Language: Pine Script @version=5.
Inputs: Three configurable parameters (smaLength, adrLength, scaleFactor).
Calculations:
SMA: ta.sma(close, smaLength).
ADR%: 100 * (ta.sma(dhigh / dlow, adrLength) - 1) * scaleFactor.
Levels: sma50 * (1 ± (level * adrPercent / 100)).
Graphics:
Lines: Created with line.new, deleted with line.delete to avoid overlaps.
Labels: Created with label.new only on the last bar.
Plots: plot(sma50) for the SMA, plot(adrPercent) for debugging.
Optimization: Uses dedicated variables for each line (e.g., upperLine1, lowerLine1) for clear management and to respect TradingView’s graphical object limits.
10. Possible Improvements
Option to show lines only on the last bar: Would reduce visual clutter.
Customizable line styles: Allow users to choose color or style (e.g., dashed).
Alert for anomalous ADR%: A message if ADR% is too small or large.
Dynamic levels: Allow users to specify ADR% multiples via input.
Optimization for short timeframes: Adapt ADR% for intraday timeframes.
Conclusion
The script creates a visual indicator that helps traders identify price extension levels based on daily volatility (ADR%) relative to the 50 SMA. It is robust, configurable, and includes debugging tools (ADR% plot and labels) to verify values. The ADR% formula based on dhigh/dlow
Aggregate PDH High Break Alert**Aggregate PDH High Break Alert**
**Overview**
The “Aggregate PDH High Break Alert” is a lightweight Pine Script v6 indicator designed to instantly notify you when today’s price breaks above any prior-day high in a user-defined lookback window. Instead of manually scanning dozens of daily highs, this script automatically loops through the last _N_ days (up to 100) and fires a single-bar alert the moment price eclipses a specific day’s high.
**Key Features**
- **Dynamic Lookback**: Choose any lookback period from 1 to 100 days via a single `High-Break Lookback` input.
- **Single Security Call**: Efficiently retrieves the entire daily-high series in one call to avoid TradingView’s 40-call security limit.
- **Automatic Looping**: Internally loops through each prior-day high, so there’s no need to manually code dozens of lines.
- **Custom Alerts**: Generates a clear, formatted alert message—e.g. “Crossed high from 7 day(s) ago”—for each breakout.
- **Lightweight & Maintainable**: Compact codebase (<15 lines) makes tweaking and debugging a breeze.
**Inputs**
- **High-Break Lookback (days)**: Number of past days to monitor for high breaks. Valid range: 1–100.
**How to Use**
1. **Add to Chart**: Open TradingView, click “Indicators,” then “Create,” and paste in the code.
2. **Configure Lookback**: In the script’s settings, set your desired lookback window (e.g., 20 for the past 20 days).
3. **Enable Alerts**: Right-click the indicator’s name on your chart, select “Add Alert on Aggregate PDH High Break Alert,” and choose “Once per bar close.”
4. **Receive Notifications**: Whenever price crosses above any of the specified prior-day highs, you’ll get an on-screen and/or mobile push alert with the exact number of days ago.
**Use Cases**
- **Trend Confirmation**: Confirm fresh bullish momentum when today’s high outpaces any of the last _N_ days.
- **Breakout Trading**: Automate entries off multi-day highs without manual chart scanning.
- **System Integration**: Integrate with alerts to trigger orders in third-party bots or webhook receivers.
**Disclaimer**
Breakouts alone do not guarantee sustained moves. Combine with your preferred risk management, volume filters, and other indicators for higher-probability setups. Use on markets and timeframes where daily breakout behavior aligns with your strategy.
4H High-Low BoxesThis indicator dynamically plots high-low boxes based on the most recent 4-hour candle, providing visual markers for key price levels and trends. The box is updated in real-time to reflect the highest and lowest points of the current 4-hour candle, and its color changes based on the market's direction.
Key Features:
Dynamic Boxes: The indicator automatically adjusts to the 4-hour candle's high, low, and open price, creating a box that updates with price action.
Color-Coding: The box color changes based on the price direction. A green box indicates bullish market sentiment (price is above the 4H open), while a red box indicates bearish sentiment (price is below the 4H open).
Accurate Timeframe Representation: It works across any intraday timeframe (e.g., 5-minute, 15-minute, 1-hour), providing consistent, visually relevant markers for trading decisions.
Real-Time Updates: The box is adjusted dynamically as price evolves, ensuring it accurately represents the 4-hour price range during live trading.
Customizable Settings: Tailor the visual aspects of the box, including border color, background transparency, and other parameters.
Trading Strategy Ideas:
Rejection at High/Low: Look for price rejection at the 4H high/low for potential reversal signals.
Breakout Strategy: Trade breakouts above the 4H high or below the 4H low for momentum trades.
Mean Reversion: Enter when price moves away from the 4H open, expecting it to return to the open price.
This indicator can be used as a standalone tool or combined with other technical indicators to improve entry and exit points. Perfect for swing traders and those using price action to identify key support and resistance levels.
HAPPY TRADING
Daily Percent Change LabelDaily Percent Change Label
Overview
This Pine Script displays the percentage change from the previous day's closing price as a text label near the current price level on the chart. It works seamlessly across any timeframe (daily, hourly, minute charts) by referencing the daily chart's previous close, making it perfect for traders tracking daily performance.
The label is displayed with a semi-transparent background (green for positive changes, red for negative changes) and white text, ensuring a clean and readable appearance.
Features
Accurate Daily Percent Change: Calculates the percentage change based on the previous day's closing price, even on intraday timeframes (e.g., 1-hour, 5-minute).
Dynamic Label: Shows the percentage change as a label aligned with the current price, updating in real-time.
Color-Coded Background: Semi-transparent green background for positive changes and red for negative changes.
Customizable: Adjust label position, size, color, and style to fit your preferences.
Minimal Impact: No additional plots or graphs, keeping the chart uncluttered.
How to Use
Add the Script:
Copy and paste the script into the Pine Editor in TradingView.
Click "Add to Chart" to apply it.
Check the Output:
A text label (e.g., "+2.34%" or "-1.56%") appears near the current price with a semi-transparent background.
The label is colored green (positive) or red (negative) and updates in real-time.
Switch Timeframes:
Works on any timeframe. The percentage change is always calculated relative to the previous day's close.
Customization Options
Modify the label.new function to customize the label:
Label Position:
Change style=label.style_label_left to label.style_label_right or label.style_label_down to adjust label placement.
Adjust bar_index with an offset (e.g., bar_index + 1) to move the label horizontally.
Text Color:
Modify textcolor=color.white to another color (e.g., color.rgb(255, 255, 0) for yellow).
Background Color:
Adjust color=percent_change >= 0 ? color.new(color.green, 50) : color.new(color.red, 50) to change transparency (e.g., color.new(color.green, 0) for no transparency).
Text Size:
Change size=size.normal to size.small or size.large for smaller or larger text.
Code Details
Timeframe Handling: Uses request.security with the "D" timeframe to fetch the previous day's closing price, ensuring accuracy on intraday charts.
Performance: Updates only on the last bar (barstate.islast) for optimal performance.
Dynamic Styling: Background color changes based on the direction of the price change.
Notes
The label is positioned near the current price for easy reference. To move it closer to the Y-axis, adjust the bar_index offset.
For different reference points (e.g., weekly close), modify the request.security timeframe (e.g., "W" for weekly).
Ensure the script is copied correctly without extra spaces or characters. Use a plain text editor (e.g., Notepad) for copying.
Feedback
Please share your feedback or customizations in the comments! If you find this script helpful, give it a thumbs-up or let others know how you're using it. Happy trading!
Highlight Large Candles// 🔍 Highlight Large Candles Indicator
// 🇬🇧 This indicator highlights candles where the full candle size (high - low) exceeds a user-defined percentage of the opening price (e.g., 1%).
// 🟠 When detected, the candle is colored orange and a label appears showing:
// - Body size
// - Upper wick size
// - Lower wick size
// - Open → Close distance (in price and %)
//
// 🔧 The minimum candle size threshold can be customized in the Settings.
// Ideal for identifying strong momentum or breakout candles.
StupidTrader Money GlitchStupidTrader Money Glitch
This indicator identifies high-probability buy setups by combining key technical concepts. It detects a reclaimed demand zone (a significant low that was broken and reclaimed), confirms bullish market structure breaks (MSB), ensures the price is above the 9 and 21 EMAs, and looks for volume spikes or trends.
Key Features:
Plots a demand zone (blue box) based on a reclaimed low.
Signals long entries (green triangles) when conditions align: reclaimed demand zone, MSB, price above EMAs, and volume confirmation.
Includes EMA 9 (blue) and EMA 21 (aqua) for trend confirmation.
How to Use:
Add the indicator to your chart and look for green triangles below candles as buy signals. Ensure the price interacts with the demand zone, breaks market structure, and shows volume confirmation. Works best on daily or higher timeframes for assets like ONDO, BTC, and more.
Settings:
Short EMA Length: 9
Mid EMA Length: 21
Pivot Lookback for Demand Zone: 5
Zone Lookback for Demand: 90
Volume Lookback: 20
OA - Price Magnet Zones Price Magnet Zones Indicator
Overview
The Price Magnet Zones indicator identifies special price levels that have a high statistical probability of being revisited by price in the future.
It works by detecting candles with specific formation characteristics - those without top or bottom wicks - which often signify important market levels that price tends to return to.
Key Features
Automated Detection: Identifies special candle formations automatically and draws horizontal lines at these levels
Dynamic Management Removes lines once price touches them or when they exceed the lookback period
Statistical Analysis: Tracks touch rates and average time until price returns to these levels
Clean Visual Interface: Shows only untouched levels for a clear chart view
How It Works
The indicator detects two specific types of candle formations:
Bullish Levels: Candles with no bottom wick (open = low) that close higher
Bearish Levels: Candles with no top wick (open = high) that close lowe
These formations often represent hidden liquidity zones or order blocks where price tends to return. The indicator draws horizontal lines at these levels and tracks whether price revisits them.
Statistics Tracking
The indicator maintains comprehensive statistics about the detected levels:
Total Levels: Number of bullish, bearish, and total levels detected
Touched Levels: Number of levels that price has returned to touch
Touch Rate: Percentage of levels that have been touched by price
Average Touch Time: Average number of bars until price touches each level type
Trading Applications
These hidden levels can be valuable for:
Identifying potential support and resistance zones
Finding entry and exit points for trades
Setting stop loss levels
Determining price targets
Confirming other technical signals
Settings
Max Bars to Track: Maximum number of bars to keep tracking a level (default: 500)
Line Thickness: Visual thickness of the horizontal lines (1-4)
Line Color: Color of the horizontal lines
Min Candles Before Check: Number of candles to wait before including touches in statistics (default: 3)
Show Statistics: Toggle statistics table display
Usage Tips
The statistics only count touches that occur after the specified minimum number of candles have passed, providing more meaningful data
Higher touch rates indicate stronger magnetic properties of these levels
The average touch time can help with timing expectations for trades
These levels work across various timeframes and markets
For best results, use alongside other technical analysis tools
This indicator does not provide trading signals but offers valuable insights into hidden market structure that can enhance your trading strategy.
Swing Highs and Lows between two InstrumentsThis Indicator will show you common Swing Points between two different trading symbols.
You can also use it to display the Swing Points of the current symbol or another symbol only.
When applying the Indicator to your chart it will ask you to put in a symbol. This symbol is used to find common Swing Points against the symbol that you have on your screen. Should you decide not to choose any symbol the indicator will instead mark all Swing Points for the current symbol.
Settings
Symbol: Choose any symbol that you want to compare to the selected symbol on your screen.
Sensitivity: The sensitivity defines how many candles left and right of a Swing Point have to be below (Swing High) or above (Swing Low) in order for the Indicator to mark it. A lower sensitivity will give a lot more Swing points, whereas a higher sensitivity will show less, but more important Swing Points.
Equal Highs Permissible: When calculating where a Swing Point is you can decide how you want equal highs and equal lows to be handled. The default is set to "yes" which means equal highs will be counted as if they were below (Swing High) or above (Swing Low). Choosing "no" will alter the indicators behaviour and only mark a Swing Point if all values within the sensitivity are below (Swing High) or above (Swing Low). As equal highs/lows are not below/above the Swing Point, but at the same level it will not mark the Swing Point.
Options:
You can choose to display Swing Highs and Lows for each symbol individually as well as Common Swing Points, which is the default. If you choose to display different Swing Points at the same time the visual order of importance is the following: common Swing Points > current symbol Swing Points > second symbol Swing Points.
You can also change the symbols and colors that mark the Swing Points or restrict the timeframes that the Indicator works on.
Session Open Lines [iFarsheed]Overview:
The "Session Open Lines " indicator is mainly designed for Al Brooks Price Action traders using 5-minute charts, particularly during the NYSE session. It marks Tokyo, London, and NYSE session open/close times with dashed lines and optional labels to help you analyze session-based price movements.
Features:
Session Marking:
Draws dashed lines to indicate the open and close times of Tokyo, London, and NYSE sessions.
NYSE session can be split into two or three parts for detailed analysis (e.g., Morning/Afternoon or Open/Middle/Close).
Optional Labels:
Displays labels (e.g., "Tokyo Open", "NYSE Close") below the chart to clearly identify session boundaries.
Labels can be toggled on or off for a cleaner chart view.
Customizable Display:
Choose which sessions to display and customize line colors to match your chart setup
How to Use:
Customize Settings:
Enable or disable specific sessions (Tokyo, London, NYSE) based on your trading focus.
Adjust line colors to ensure visibility against your chart background.
Toggle session labels on or off depending on your chart type (e.g., disable for RTH charts)
Analyze Session Boundaries:
Use the dashed lines to identify session open/close times and analyze price action around these key moments.
For NYSE session, split into two or three parts to break down the session into manageable segments for deeper analysis.
Informed Decision Making:
Leverage session boundaries to spot potential price action setups, such as breakouts or reversals, especially during the NYSE session
Important Note:
Due to Pine Script limitations (max 500 lines), if all sessions are enabled, lines are drawn for the past 5 days. Selecting fewer sessions allows more days to be displayed.
Lines are drawn only up to the current time; future session lines (e.g., NYSE Close) won't appear until the session ends.
For RTH charts, use only the NYSE session. It’s recommended to disable labels in RTH mode, as NYSE Open and Close lines are close together and labels may overlap.
Future Updates:
This indicator is just the beginning! Exciting new features are on the way to make your price action analysis even more powerful—stay tuned for updates!
If you have any suggestions or feedback, please share them in the comments section.
Happy Price Action Trading!
-iFarsheed-
Key Levels (4H and Daily)Key Levels (4H and Daily)
This indicator highlights important key price levels derived from the 4-hour (4H) and daily (D) timeframes, providing traders with critical support and resistance areas. The levels are calculated using the highest highs and lowest lows over a customizable lookback period, offering a dynamic view of significant price points that could influence market movement.
Key Features:
Key Levels for 4H and Daily Timeframes:
The indicator calculates and displays the highest high and lowest low over a user-defined period for both the 4-hour and daily timeframes. This helps traders identify key support and resistance levels that could dictate the market's behavior.
Customizable Lookback Period:
Traders can adjust the lookback period (in days) for both the 4-hour and daily timeframes to reflect different market conditions. This flexibility ensures the levels are tailored to your preferred trading style and market conditions.
Horizontal Lines:
The indicator plots horizontal lines at the high and low levels for both timeframes. These levels serve as dynamic support and resistance areas and help traders monitor price action near these critical points.
Real-Time Updates:
The lines adjust automatically with each new bar, providing up-to-date key levels based on the most recent price action and trading session.
Alert Conditions:
Alerts are built-in to notify traders when the price breaks above or below these key levels. Traders can set up notifications to stay informed when significant market moves occur.
How to Use:
Support and Resistance: Use the levels as potential support and resistance areas where price could reverse. Price often reacts at these levels, providing potential trading opportunities.
Breakouts: Pay attention to breakouts above the high or below the low of these levels. A break above the 4H or daily high could indicate bullish momentum, while a break below could signal bearish trends.
Trend Confirmation: Combine these levels with other technical analysis tools to confirm the overall market trend and enhance your trading strategy.
Perfect for:
Day Traders: Use the 4-hour levels for intraday trading setups, such as potential reversals or breakouts.
Swing Traders: The daily levels provide longer-term insights, helping to identify key zones where price might pause, reverse, or break out.
Market Context: Ideal for those who want to contextualize their trades within broader timeframes, helping to understand the market’s structure at multiple time scales.
This description conveys the utility and functionality of the indicator, focusing on how it helps traders identify and monitor key levels that influence market action.