Price Flip StrategyPrice Flip Strategy with User-Defined Ticker Max/Max
This strategy leverages an inverted price calculation based on user-defined maximum and minimum price levels over customizable lookback periods. It generates buy and sell signals by comparing the previous bar's original price to the inverted price, within a specified date range. The script plots key metrics, including ticker max/min, original and inverted prices, moving averages, and HLCC4 averages, with customizable visibility toggles and labels for easy analysis.
Key Features:
Customizable Inputs: Set lookback periods for ticker max/min, moving average length, and date range for signal generation.
Inverted Price Logic: Calculates an inverted price using ticker max/min to identify trading opportunities.
Flexible Visualization: Toggle visibility for plots (e.g., ticker max/min, prices, moving averages, HLCC4 averages) and last-bar labels with user-defined colors and sizes.
Trading Signals: Generates buy signals when the previous original price exceeds the inverted price, and sell signals when it falls below, with alerts for real-time notifications.
Labeling: Displays values on the last bar for all plotted metrics, aiding in quick reference.
How to Use:
Add to Chart: Apply the script to a TradingView chart via the Pine Editor.
Configure Settings:
Date Range: Set the start and end dates to define the active trading period.
Ticker Levels: Adjust the lookback periods for calculating ticker max and min (e.g., 100 bars for max, 100 for min).
Moving Averages: Set the length for exponential moving averages (default: 20 bars).
Plots and Labels: Enable/disable specific plots (e.g., Inverted Price, Original HLCC4) and customize label colors/sizes for clarity.
Interpret Signals:
Buy Signal: Triggered when the previous close price is above the inverted price; marked with an upward label.
Sell Signal: Triggered when the previous close price is below the inverted price; marked with a downward label.
Set Alerts: Use the built-in alert conditions to receive notifications for buy/sell signals.
Analyze Plots: Review plotted lines (e.g., ticker max/min, HLCC4 averages) and last-bar labels to assess price behavior.
Tips:
Use in trending markets by enabling ticker max for uptrends or ticker min for downtrends, as indicated in tooltips.
Adjust the label offset to prevent overlapping text on the last bar.
Test the strategy on a demo account to optimize lookback periods and moving average settings for your asset.
Disclaimer: This script is for educational purposes and should be tested thoroughly before use in live trading. Past performance is not indicative of future results.
Candlestick analysis
VThis is an internal VIP-only indicator that is not publicly available, and is used to predict the upward and downward trend in real time
LDO Combined Sup/Res, Trends, MA Bands & Vector Candle ZonesQuick Guide to Using "LDO Combined Sup/Res, Trends, MA Bands & Vector Candle Zones"
Add the Indicator:
In TradingView, go to the "Indicators" menu, search for "LDO Combined Sup/Res, Trends, MA Bands & Vector Candle Zones", and add it to your chart.
Customize Settings:
Open the indicator settings:
Support & Resistance: Toggle Show Sup & Res Lines? and adjust pivot settings for support/resistance lines.
Trend Lines: Enable Show Trend Lines? to display trend lines based on pivots.
Moving Average Bands: Toggle Show MA Bands?. Adjust EMA/SMA lengths (default: 50 EMA, 21 SMA, 200 EMA) for more aggressive settings (e.g., 13 EMA, 8 SMA for faster signals).
Vector Candle Zones: Set Maximum zones to draw (default: 500) and customize zone appearance (e.g., transparency, border width).
PVSRA Colors: Enable Set PVSRA candle colors? to color candles based on volume/spread (green/red for high volume, blue/violet for moderate, gray for regular). Adjust colors if needed.
Alerts: Enable Enable PVSRA Candle Alerts? to get notifications for green/red PVSRA candles. You can change the indicator settings’ timeframe: if the chart is 1-hour, set alerts on a minute level (e.g., 5-minute) by adjusting the Higher Timeframe in settings.
Interpret the Chart:
Support/Resistance Lines: Blue lines indicate support/resistance levels; color changes based on price position.
Trend Lines: Colored lines show trends based on pivots (e.g., pink for highs, blue for lows).
MA Ribbon: 50 EMA (green), 21 SMA (green), and 200 EMA (gray) with a fill (blue/green) between EMA and SMA.
Vector Zones: Yellow zones highlight significant candles (based on volume/spread).
PVSRA Candles: Green/red candles indicate high volume/spread; blue/violet for moderate; gray for regular.
Set Up Alerts:
Click the "Alert" icon in TradingView.
Select the indicator and choose "PVSRA Green Candle" or "PVSRA Red Candle".
Configure notification settings (e.g., once per bar close on your chosen timeframe) and save.
Monitor and Trade:
Use support/resistance and trend lines for key levels.
Watch MA ribbon for trend direction (EMA/SMA crossover).
Look for PVSRA candles and zones for high-volume activity.
Respond to alerts for potential trading opportunities.
BLACK ArrowPERFECT INDICATOR It also includes dynamic trade tracking that updates the status of each TP/SL level, showing whether each has been hit, and persists these statuses in a screener table even if the price reverses. The indicator features auto-adjusting parameters for different tickers and provides visual feedback for each trade setup, making it a useful tool for trend-following and risk management.
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.
RSI + MACD AL SinyaliIt creates a buy signal using RSI and MACD in the daily watch list. Signals give better results on the daily.
Ultimate SuperTrend ProThe ultimate script works correctly while maintaining all the original features:
Customizable Inputs:
Separate input groups for SuperTrend, visualization, profit booking, and risk management
Adjustable ATR length and multiplier
Cloud opacity control
ATR-Based Cloud Visualization:
Bullish trend shows green cloud between upper band and upper band - 0.5 ATR
Bearish trend shows red cloud between lower band and lower band + 0.5 ATR
Adjustable opacity for better chart visibility
Profit Booking System:
Calculates profit booking levels based on ATR multiplier
Visual markers (circles) show where to take profits
Arrows appear when price hits profit booking level
Fully customizable color and ratio
Enhanced Risk Management:
ATR-based stop loss system
Visual indication of stop levels in the info table
Option to disable stop loss if desired
Improved Visual Feedback:
Cleaner signal markers
Comprehensive info table showing current status
Distance to profit booking level displayed
Strategy Integration:
Automatically exits positions at profit booking levels
Stop loss protection
Clear alert conditions
Rally Sweep Volume RSV w/ Bollinger Band FilterPrice rallies, sweeps, and closes with more volume at the bollinger bands - helping reduce too many signals and filters out the high probability setups
Yüzde 5 Kar ve Yüzde 2 Zarar Stop Stratejisi15 dk grafikte rsi,hacim,bollinger bantları kullanarak strateji oluşturur.
Yüzde 5 Kar ve Yüzde 2 Zarar Stop Stratejisi15 dk grafikde rsi,bollinger bantları,fiyat,hacim kullanarak işlem yapmak için kullanılabilir.
Returns & Distance from ATHHere’s what that Pine Script does, in everyday terms:
1. **Look back in time**
- It grabs the closing price from **3 months ago** and **1 month ago** by asking TradingView’s “monthly” data for the symbol.
2. **Calculate percentage changes**
- **3-month return** = (today’s close – close 3 months ago) ÷ (close 3 months ago) × 100
- **1-month return** = (today’s close – close 1 month ago) ÷ (close 1 month ago) × 100
3. **Track the highest price ever seen (ATH)**
- It keeps a running “all-time high” variable, updating it any time today’s high exceeds the previous ATH.
4. **Compute how far you are below ATH**
- **% from ATH** = (ATH – today’s close) ÷ ATH × 100
5. **Build a little stats table on your chart**
- It makes a 2-row by 3-column box in the **top-center** of your price panel.
- The **first row** has labels: “3M % Return”, “1M % Return”, “% from ATH”.
- The **second row** shows the three computed numbers, each formatted to two decimal places and suffixed with “%.”
6. **Refresh only once per bar**
- All of these values and the table get updated **at the close** of each bar, so your table always shows the latest stats without cluttering the chart with extra drawings.
In short, this indicator quietly collects the right historical prices, does three simple percent-change math steps, and then displays those three key numbers in a neat, always-visible box at the top of your TradingView chart.
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.