Volume Weighted Keltner ChannelThis indicator provides a customizable implementation of Keltner Channels (KC), a volatility-based envelope designed to identify trend direction and potential reversal or breakout zones. It allows deep control over its core components and calculation methods.
Key Features:
Customizable Components: This implementation allows for full control over the channel's construction:
Basis Line: Choose from a wide range of moving average types (e.g., EMA, SMA, WMA) for the central line.
Volatility Bands: Select the volatility measure used to construct the bands: Average True Range (ATR), True Range (TR), or bar Range (High-Low).
Volume Weighting: An option (Volume weighted) allows for volume to be incorporated into the calculation of both the basis moving average and the selected volatility measure (e.g., creating a Volume-Weighted ATR). This makes the channel more responsive to moves backed by high market participation.
Logarithmic Scaling: The indicator includes an optional 'Normalize' mode that calculates the channel on a logarithmic scale. This creates bands that represent a constant percentage distance from the basis, making it a suitable tool for analyzing long-term trends in exponential markets.
Multi-Timeframe (MTF) Engine: The indicator includes an MTF conversion block. When a Higher Timeframe (HTF) is selected, advanced options become available: Fill Gaps handles data gaps, and Wait for timeframe to close prevents repainting by ensuring the indicator only updates when the HTF bar closes.
Integrated Alerts: Includes a full set of built-in alerts for the source price crossing over or under the upper band, lower band, and the central basis line.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Cari dalam skrip untuk "alert"
Versatile Moving AverageThe Versatile Moving Average (VMA) is a comprehensive, all-in-one tool for trend analysis. It is designed to act as a central hub for advanced MA calculations by combining a wide selection of average types, calculation modes, and a multi-timeframe engine.
Key Features:
Comprehensive MA Selection: Provides a wide variety of moving average types (e.g., EMA, SMA, WMA, HMA, and their volume-weighted counterparts). Allows full customization of length, source, and offset.
Advanced Calculation Modes:
Volume Weighting: Optionally weights the selected MA calculation by volume, making it more responsive to market participation.
Normalization (Geometric Average): A key feature is the optional 'Normalize' mode. When enabled, the indicator calculates a Geometric Moving Average by averaging the logarithms of the source price. This measures the average compound growth rate, making it well-suited for analyzing assets with exponential price behavior.
Multi-Timeframe (MTF) Engine: The indicator includes an MTF conversion block. When a Higher Timeframe (HTF) is selected, advanced options become available: Fill Gaps handles data gaps, and Wait for timeframe to close prevents repainting by ensuring the indicator only updates when the HTF bar closes.
Integrated Alerts: Comes with built-in alerts for the source price crossing over or under the calculated VMA, allowing for timely notifications.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Institutional DMAs (50/100/200) – with AlertsTitle
D1 DMAs (50/100/200) – Alerts for Trend & Trend Stoppers
Summary
Plots the 50/100/200-day moving averages (DMAs) strictly from the Daily (D1) timeframe and projects them onto any chart timeframe. Comes with a focused alert engine for price↔DMA crosses and DMA↔DMA crosses (Golden/Death Cross). Designed to identify trend direction, potential regime shifts, and “trend stoppers” (dynamic S/R).
What it does
– Computes the 50/100/200 DMAs on D1 only (no matter your chart timeframe)
– Alerts for:
1. Price crossing D1 50/100/200 DMAs
2. DMA crossovers between 50/100/200 (D1-confirmed Golden/Death Cross)
   – Optional “close-only” confirmation to reduce noise on price↔DMA alerts
Why DMAs (and why D1)?
DMAs (Daily SMAs) are widely tracked by institutional players—banks, hedge funds, CTAs, pensions—as trend filters and dynamic support/resistance.
– 50 DMA: short-term momentum bias
– 100 DMA: medium-term trend anchor/mean
– 200 DMA: long-term regime line (above = bullish, below = bearish)
Crossover events (e.g., 50>200 Golden Cross, 50<200 Death Cross) are often read as regime changes. D1 confirmation aligns with how institutions evaluate trends and filters intraday noise.
How it helps your trading
– Trend detection: Price above 200 DMA with 50>100>200 = healthy uptrend stacking
– Trend stoppers: Strong reactions at 100/200 DMA often precede pullbacks, pauses, or reversals
– Intraday timing: See D1 levels on lower TFs to plan entries/exits at “big picture” lines
Alerts (selection)
– Price crosses ABOVE/BELOW D1 50 DMA
– Price crosses ABOVE/BELOW D1 100 DMA
– Price crosses ABOVE/BELOW D1 200 DMA
– D1 50 crosses ABOVE/BELOW D1 100
– D1 50 crosses ABOVE/BELOW D1 200
– D1 100 crosses ABOVE/BELOW D1 200
Note: DMA↔DMA alerts are confirmed on the Daily close (fewer false signals).
How to set alerts
1. Add the indicator to your chart
2. Click “Alert” → “+”
3. Condition = this indicator → choose the desired alert line (e.g., “Price crosses ABOVE D1 200 DMA”)
4. Customize message/webhook if needed → Create
Settings
– Colors: 50 = Yellow, 100 = Green, 200 = Red (editable)
– Line width
– “Only alert on bar close” for price↔DMA (recommended for robustness)
– Enable/disable price-cross alerts
– Enable/disable DMA-cross alerts (D1-confirmed)
Best practices
– Trend follow: Favor longs when price is above the 200 DMA; favor shorts below
– Pullback entries: Watch 50/100 DMAs for reactions; add structure/volume confluence
– Regime filter: Use Golden/Death Cross alerts as a high-level bias, refine entries on lower TF signals
Technical notes
– Uses lookahead_off (no future leak)
– DMA cross logic computed and confirmed on D1
– Price↔DMA logic runs on your active timeframe with optional close confirmation
Keywords
DMA, Daily SMA, 50 100 200 MA, Golden Cross, Death Cross, Trend Filter, Dynamic Support Resistance, Institutional Levels, Regime Change, Alert Signals, Intraday with Daily Bias, Hedge Funds, Banks
Ichimoku Cloud Breakout with Candle Colors - No AlertsIchimoku Cloud Breakout Indicator with Candle Coloring 
This indicator provides instant visual clarity on price position relative to the Ichimoku Cloud through intelligent candle coloring and breakout signals.
Key Features:
Smart Candle Colors: Automatically colors candles based on their position relative to the cloud (below, inside, or above), making trend identification effortless at a glance
Breakout Detection: Displays clear visual signals when price breaks above or below the Ichimoku Cloud, highlighting significant trend changes
Customizable Visuals: Choose from multiple label styles (arrows, circles, diamonds, squares) and customize colors to match your chart theme
Optional Elements: Toggle Ichimoku lines, cloud visualization, info table, and background highlighting on/off as needed
Clean Interface: Designed for minimal chart clutter while maximizing actionable information
⚠️ Note: This is the visual-only version without alerts.
If you need the version with alert capabilities and scanning functionality for TradingView screeners, please send me a message and I'll provide access to the alerts-enabled version.
Perfect for traders who use Ichimoku Cloud methodology and want quick visual confirmation of trend status and breakout events.
SZO - Signal Zone Oscillator ## Signal Zone Oscillator - SZO
**Created by:** @TraderCurses
**Version:** 1.0 (October 2025)
### ▌ OVERVIEW
The Signal Zone Oscillator (SZO) is a comprehensive momentum tool designed to provide a clearer, more nuanced view of market dynamics. It synthesizes three of the most powerful classic indicators—RSI, a unique MACD Ratio, and the Stochastic oscillator—into a single, unified signal.
The indicator's core feature is the **"Signal Zone"**: a colored area between the main oscillator line and its moving average filter. This zone makes it incredibly easy to visualize shifts in momentum, trends, and potential entry/exit points.
### ▌ KEY FEATURES
* **Composite Formula:** Combines RSI, MACD Ratio, and Stochastic using a weighted average to measure underlying market momentum.
* **The Signal Zone:** The flagship feature. The area between the SZO line and its filter is colored **green** in a bullish context (SZO above filter) and **red** in a bearish context (SZO below filter).
* **Dynamic Coloring:** Both the main SZO line and its filter change color dynamically, providing instant feedback on direction and strength.
* **Zero-Line Reference:** A dashed zero line acts as a classic equilibrium level, helping to confirm stronger bullish or bearish momentum.
* **Fully Customizable:** Every parameter is adjustable. You can change the lengths, sources, and even the weights of the core indicators from the settings menu.
* **Built-in Alerts:** Comes with pre-configured alerts for crossovers of the filter and the zero line, allowing you to automate your monitoring.
### ▌ HOW TO USE IT
The SZO provides several clear signals for traders:
1.  **Bullish Signal:**
    * The SZO line crosses **above** its filter.
    * The Signal Zone turns **green**.
    * A cross above the zero line can be used as further confirmation of strong bullish momentum.
2.  **Bearish Signal:**
    * The SZO line crosses **below** its filter.
    * The Signal Zone turns **red**.
    * A cross below the zero line can be used as further confirmation of strong bearish momentum.
3.  **Divergences:**
    * Like any oscillator, look for divergences between the SZO's peaks/troughs and the price action to spot potential reversals.
This tool is designed for traders who want to cut through the noise and get a clear, actionable signal from multiple momentum sources at once. Happy trading!
Volume High Alert by ToledoCandelariaThis custom TradingView indicator visualizes volume activity by plotting colored boxes under each bar, highlighting different volume levels relative to a moving average. It helps traders identify significant volume spikes or drops, which can signal potential market moves or reversals.Key Features:Volume Analysis: The indicator compares the current bar's volume to a user-defined Simple Moving Average (SMA) of volume, calculated over a customizable period (default: 30 bars).
Color-Coded Boxes: Each bar is represented by a box with a color indicating its volume strength:Purple: Ultra-high volume (exceeds the SMA by a user-set multiplier, default: 2.0x).
Yellow: High volume (exceeds the SMA by a smaller multiplier, default: 1.5x, but below ultra-high).
Blue: Low volume (below the SMA by a user-set multiplier, default: 0.5x).
Green: Normal volume (falls within the defined thresholds).
Customizable Settings:Adjust the SMA length to fine-tune the volume baseline.
Modify the multipliers for ultra-high, high, and low volume thresholds.
Set the width of the boxes (in bars) for visual clarity.
Limit the number of displayed boxes (default: 500) to manage chart performance.
Alerts: The indicator includes an alert condition that triggers when a high-volume (yellow) bar is detected, allowing traders to stay informed of significant volume spikes in real-time.
How to Use:
Add the indicator to your TradingView chart (not as an overlay) and adjust the input settings to match your trading strategy. Watch for purple and yellow boxes to spot potential breakout or reversal signals, and use blue boxes to identify periods of low activity. Enable the alert to receive notifications for high-volume bars.This indicator is ideal for traders looking to monitor volume surges and lulls, providing a clear visual representation of market activity directly on the chart.
I hope that helps!
by Excalibur
Guardian Breakout System with Trailing Stop AlertGuardian Breakout System (v5)  Smart Trend & Breakout Indicator
 
Take your trading to the next level with the  Guardian Breakout System , a smart, all-in-one indicator designed to spot  high-probability bullish breakouts  while keeping risk under control. Perfect for  Daily, Weekly, and Monthly charts,  this tool combines trend analysis, volume, RSI, doji detection, and ATR-based trailing stops into one powerful system.
 Why traders love it:
 
Spot Uptrends Early: Tracks the 20-day and 50-day SMAs to identify strong bullish trends.
Smart Pullback Entries: Detects minor pullbacks with bullish doji signals near the 20-day SMA.
Breakouts with Confidence: Confirms signals with volume spikes, RSI < 63, and 10-day SMA direction.
Dynamic ATR Trailing Stops: Automatically adjusts stop levels to lock in profits as the price moves higher.
Next-Bar Entry Option: Safer entries on higher timeframes like daily or weekly charts.
Visual Markers & Alerts: Green arrows mark entries, red arrows and dots mark stop hits, with built-in alerts for breakouts and stop triggers.
 How it works:
 
1. Identify a bullish trend.
2. Watch for pullbacks with doji candles near the 20-day SMA.
3. Enter on breakout above the doji high, or on the next bar’s open.
4. Use ATR-based trailing stops to protect profits.
The  Guardian Breakout System  gives traders a clear, visual, and reliable way to enter trending markets with confidence while managing risk automatically.
MF Logarithmic Log Trendline with Alerts by MigueFinanceWhat is Unique on This Indicator? 
It allows you to set alerts for logarithmic trendlines including cross and touches and it works!
Not even tradingview has alerts for drawn logarithmic trendlines ! 
When on Logaritmic scale it looks like a normal trendline but when on the linear scale it looks like a real logarithmic curve!
And is free to use!
 Overview 
Finally an Indicator that has alerts/alarms that works with Logarithmic trendlines!
A- This indicator plots a customizable logarithmic (or linear) trendline based on user-defined start/end dates, extending forward to highlight support/resistance.
B- It shows green upward triangles for bullish breakouts and red downward triangles for bearish breakdowns or dots for touches that are not effective crosses of the trendline
C- It is also possible to set alert conditions with custom message for helping to trade the signals above/bellow the trendline
 How to Use 
1. Apply indicator to chart.
2. Adjust inputs: log/linear, price source, start/end dates, custom prices , label/triangle visibility.
3. Setting -1 for the price source adjusts the trendline automatically to the height of the chart for the specified date based on high, low, close or open of the candle for that date. 
4. Watch for triangle signals on bar close.
5. Set alerts for breakouts/breakdowns or touches via TradingView.
 Multiple Logarithmic Trendlines are possible! 
You can put many logarithmic trendlines in your chart with alerts!, just as many as many alerts  your current tradingview plan allows you to.
How to?
-  Just use this indicator, get the logaritmic trendline you desire, set the alert, make sure is well set, and after setting the alert draw yourself on tradingview the logarithmic trendline that you are setting the alarm to (a new manual drawing).
- Then modify the settings of your indicator to create a new trendline, the previous one exists even if not visible as long as you have correctly set the alert, and if you did a drawing you can see your previous alert trendline.
 Custom Messages on Alerts 
- There are different options for the alerts, the one named "Any alert() function call" allows you to put custom messages that could be used on platforms like Wundertrade in order to set and execute automatic trades on buy/sell.
- The other options for the alerts give you fix messages and allows you to decide if get you an alert on a cross over or under or on a touch of the trendline.
 Notes 
- Signals on confirmed closes (no repainting).
- Designed for log-scaled charts but also works on linear charts.
- Tested on stocks, crypto, and more.
- Make sure that this indicator and your plotted chart are on the same scale, otherwise will look like floating, will move and would seem like it does not matches the chart.
  Important Note 
- The alerts and shapes only trigger after the "End Date" of the slope, not before or between them
You are welcome to follow me on my socials!
 MigueFinance.
Inside Bar Coloring (Real-time + Historical) w/ AlertsDescription 
This Pine Script v6 indicator identifies and colors inside bars, whose entire range (high and low) stays within the previous bar's range. It gives the option to color the real-time bar as well as historical inside bars.
Inside bars are colored differently based on whether they close above or below their opening price (bullish vs bearish). The indicator offers flexible display options including real-time-only highlighting, historical inside bar visualization with transparency, and optional triangle markers for enhanced visibility.
 Utility 
Inside bars represent periods of market consolidation and reduced volatility, and are by nature consolidating. During this equilibrium, it can be valuable to observe price development rather than engage with it. Conversely, a break of the equilibrium often marks a shift in volatility and provides opportunity. This indicator provides instant visual identification of this price action on your chart.
 Features 
 
 Smart Coloring System: Separate colors for bullish (close ≥ open) and bearish (close < open) inside bars
 Flexible Display Modes: Show only real-time bar, all historical bars, or customize transparency levels
 Visual Markers: Optional triangles above or below inside bars
 Real-time Alerts: Configurable alerts notify you when new inside bars form
 Optimized Performance: Efficient Pine Script v6 code with minimal resource usage
 Open Source: Released under Mozilla Public License 2.0
 
 Settings 
 
 Customizable colors for bullish/bearish inside bars (real-time and historical)
 Toggle historical inside bar display
 Real-time bar only mode for clean charts
 Adjustable marker position (above/below bars)
 Alert activation with detailed price information
Bbhafiz ALERT SIGNAL📌 Indicator Overview
Uses EMA20 & EMA50 to detect trend direction and identify crossover/crossunder points.
RSI filter (default ON) to improve accuracy — BUY only when RSI > 50, SELL only when RSI < 50.
Displays a BUY label below the candle and a SELL label above the candle when signals appear.
AlertCondition added so TradingView can send push notifications, pop-ups, or emails when a signal appears.
⚡ Main Logic:
BUY → EMA20 crosses above EMA50 + RSI > 50 (if filter is ON) + price above EMA20.
SELL → EMA20 crosses below EMA50 + RSI < 50 (if filter is ON) + price below EMA20.
🎯 Advantages of This Version:
No need to stare at the chart — alerts will notify you when a valid setup appears.
Can be used for scalping (M1, M5) or swing trading (H1, H4).
Perfect for busy traders since alerts only trigger on confirmed setups.
ATR > VXN Alert (5m)ATR > VXN Volatility Divergence Indicator
This custom TradingView indicator monitors real-time volatility divergence between realized volatility (via Average True Range, ATR) and implied volatility (via the CBOE NASDAQ Volatility Index, VXN). It is inspired by the GJR-GARCH (Glosten-Jagannathan-Runkle Generalized Autoregressive Conditional Heteroskedasticity) model, which captures asymmetric volatility dynamics—particularly how markets respond more sharply to negative shocks than to positive ones.
Core Logic:
Chart on NQ (5 minute timeframe)
ATR (5-min) reflects realized intraday volatility of the Nasdaq 100 futures (NQ).
VXN (5-min, delayed) represents forward-looking implied volatility.
The indicator highlights regime shifts in volatility:
ATR < VXN: Volatility compression → potential energy building up (market coiling).
ATR > VXN: Volatility expansion → real movement exceeds expectations → potential breakout zone.
Visuals & Alerts:
Background turns green when ATR crosses above VXN, signaling a bullish expansion regime.
Background turns red when ATR drops below VXN, signaling compression or risk-off environment.
Custom alerts trigger on volatility regime shifts for breakout traders.
Application (Manual GJR-GARCH Strategy):
Similar to how the GJR-GARCH model captures volatility clustering and asymmetry, this indicator identifies when actual price volatility (ATR) begins to spike beyond implied forecasts (VXN), often after periods of contraction—mirroring a conditional variance shock in the GARCH framework.
Traders can align with directional bias using technical confluence (order flow, structure breaks, liquidity zones) once expansion is confirmed.
Auto AI Trendlines [TradingFinder] Clustering & Filtering Trends🔵 Introduction 
Auto AI trendlines   Clustering & Filtering Trends Indicator, draws a variety of trendlines. This auto plotting trendline indicator plots precise trendlines and regression lines, capturing trend dynamics.
Trendline trading is the strongest strategy in the financial market.
Regression lines, unlike trendlines, use statistical fitting to smooth price data, revealing trend slopes. Trendlines connect confirmed pivots, ensuring structural accuracy. Regression lines adapt dynamically.
The indicator’s ascending trendlines mark bullish pivots, while descending ones signal bearish trends. Regression lines extend in steps, reflecting momentum shifts. As the trend is your friend, this tool aligns traders with market flow.
Pivot-based trendlines remain fixed once confirmed, offering reliable support and resistance zones. Regression lines, adjusting to price changes, highlight short-term trend paths. Both are vital for traders across asset classes.
🔵 How to Use 
There are four line types that are seen in the image below; Precise uptrend (green) and downtrend (red) lines connect exact price extremes, while Pivot-based uptrend and downtrend lines use significant swing points, both remaining static once formed.
  
🟣 Precise Trendlines 
Trendlines only form after pivot points are confirmed, ensuring reliability. This reduces false signals in choppy markets. Regression lines complement with real-time updates.
The indicator always draws two precise trendlines on confirmed pivot points, one ascending and one descending. These are colored distinctly to mark bullish and bearish trends. They remain fixed, serving as structural anchors.
🟣 Dynamic Regression Lines 
Regression lines, adjusting dynamically with price, reflect the latest trend slope for real-time analysis. Use these to identify trend direction and potential reversals.
Regression lines, updated dynamically, reflect real-time price trends and extend in steps. Ascending lines are green, descending ones orange, with shades differing from trendlines. This aids visual distinction.
🟣 Bearish Chart 
A Bullish State emerges when uptrend lines outweigh or match downtrend lines, with recent upward momentum signaling a potential rise. Check the trend count in the state table to confirm, using it to plan long positions. 
  
🟣 Bullish Chart 
A Bearish State is indicated when downtrend lines dominate or equal uptrend lines, with recent downward moves suggesting a potential drop. Review the state table’s trend count to verify, guiding short position entries. The indicator reflects this shift for strategic planning.
  
🟣 Alarm 
Set alerts for state changes to stay informed of Bullish or Bearish shifts without constant monitoring. For example, a transition to Bullish State may signal a buying opportunity. Toggle alerts On or Off in the settings.
🟣 Market Status 
A table summarizes the chart’s status, showing counts of ascending and descending lines. This real-time overview simplifies trend monitoring. Check it to assess market bias instantly.
Monitor the table to track line counts and trend dominance. 
A higher count of ascending lines suggests bullish bias. This helps traders align with the prevailing trend.
  
🔵 Settings 
 Number of Trendlines : Sets total lines (max 10, min 3), balancing chart clarity and trend coverage.
 Max Look Back : Defines historical bars (min 50) for pivot detection, ensuring robust trendlines.
 Pivot Range : Sets pivot sensitivity (min 2), adjusting trendline precision to market volatility.
 Show Table Checkbox : Toggles display of a table showing ascending/descending line counts.
 Alarm : Enable or Disable the alert.
🔵 Conclusion 
The multi slopes indicator, blending pivot-based trendlines and dynamic regression lines, maps market trends with precision. Its dual approach captures both structural and short-term momentum.
Customizable settings, like trendline count and pivot range, adapt to diverse trading styles. The real-time table simplifies trend monitoring, enhancing efficiency. It suits forex, stocks, and crypto markets.
While trendlines anchor long-term trends, regression lines track intraday shifts, offering versatility. Contextual analysis, like price action, boosts signal reliability. This indicator empowers data-driven trading decisions.
Inside Bar (Body-based) Ind/AlertDescription:
This indicator detects Inside Bar patterns based strictly on the candle body (open/close range) of the mother candle, rather than the traditional high/low wick method. An inside bar is highlighted when the current candle’s entire body is contained within the body of the previous candle.
It can be useful for traders who want a more conservative and reliable definition of inside bars, focusing on true consolidation periods and filtering out signals caused by extended wicks.
Features:
Body-based Inside Bar detection:
The indicator colors and marks candles where the current bar’s body is fully within the previous bar’s body.
Bullish/Bearish identification:
Bullish inside bars are marked in green, bearish in red.
Double Inside Bar Detection:
An optional feature marks when two consecutive candles’ bodies are inside the same mother bar body—potentially indicating stronger consolidation.
Alerts:
Set alerts for single or double inside bars for automated monitoring.
How to Use:
Add the indicator to your chart.
Look for colored bars or plotted shapes for inside bar signals based on candle bodies.
Use alerts to get notified in real time when inside bar patterns appear.
Note:
This script uses only the candle body (open and close) for inside bar calculations, which may help filter out less reliable signals found with wick-based approaches.
Custom Previous High/Low + Breakout AlertsThis indicator plots the previous high and low of the selected timeframe and alerts you when the price breaks either level.
To prevent spam, it triggers only once per period. If both the high and low break within the same period, you will receive an alert for each, but no duplicates if price hovers around these levels.
 How to Set Up Alerts 
1. Choose Your Timeframe
- In the indicator settings, select the timeframe for the high/low reference.
- Example: If you select 1 hour, the indicator will plot the previous 1-hour high and low and alert you when either level is broken
2. Create an Alert
- Condition → High/Low Break Alerts
- Function →  Any alert() function call
 Optional: 
- If you want alerts only for high breakouts or low breakouts, select High Breakout or Low Breakout and use "Once Per Bar" as the trigger. (It will still alert only once per period.)
3. Setting Alerts for Multiple Timeframes
- If you want to create another alert for a different timeframe, first select the new timeframe in the indicator settings, then create a new alert
- Note: Previous alerts will continue to notify you based on the timeframe they were originally set for, even if you change the timeframe in the indicator settings.
Candle Close Distance AlertThreshold-Based Distance:
You define a threshold percentage (threshold_percent) to specify what "far" means (e.g., 2%).
The script calculates the absolute distance between:
Close and Open
Close and High
Close and Low
If any of these distances exceed the specified threshold, the condition is triggered.
Visual Markers:
Green markers (triangle up) indicate the close is far from the open.
Red markers (triangle down) indicate the close is far from the high.
Blue markers (triangle down) indicate the close is far from the low.
These markers make it easy to spot significant price movements on the chart.
Customizable Alerts:
If enabled, alerts are triggered when any of the conditions are met.
Alerts are designed to notify you in real time if a candle closes far from the open, high, or low.
PDH & PDL Indicator: Previous Day's High/Low with AlertsThe PDH & PDL Indicator plots the  Previous Day's High (PDH) and Previous Day's Low (PDL)  directly on the chart, providing a clear visual reference for key price levels. These levels are often used by traders to identify potential breakout or breakdown zones and to gauge market strength or weakness.
 Features: 
 PDH (Green Line) : Represents the high of the previous trading day.
 PDL (Red Line):  Represents the low of the previous trading day.
 Alerts: 
Get notified when the price crosses above PDH or below PDL.
Custom alert messages to keep you informed in real-time.
 Use Cases: 
Identify key breakout and breakdown points for potential trade entries or exits.
Confirm the strength of a trend by monitoring price action relative to PDH and PDL.
Useful for intraday, swing, and positional traders who rely on historical price levels for strategy development.
Moving Average ADX with Alerts# Moving Average ADX (MA ADX) Indicator
## Overview
The Moving Average ADX combines a weighted moving average (WMA) with ADX (Average Directional Index) momentum to create a dynamic, trend-following indicator. The indicator's line changes color based on the ADX strength and directional movement, helping traders identify strong trends and potential reversals.
## Key Features
- Color-changing WMA line based on ADX strength and direction
- Built-in alerts for trend changes
- Customizable ADX and moving average parameters
- Overlay indicator that plots directly on the price chart
## Color Signals
- **Green Line**: Strong bullish trend (ADX > threshold with +DI > -DI)
- **Red Line**: Strong bearish trend (ADX > threshold with -DI > +DI)
- **Black Line**: Weak or no trend (ADX < threshold)
## Parameters
- **DI Length**: Period for calculating Directional Movement (default: 14)
- **ADX Smoothing**: Smoothing period for ADX calculation (default: 14)
- **ADX MA Active**: Threshold for ADX to consider a trend strong (default: 18)
- **Length**: Period for the Weighted Moving Average (default: 34)
- **Source**: Price source for calculations (default: close)
## Trading Applications
1. **Trend Identification**
   - Green line suggests riding bullish trends
   - Red line suggests riding bearish trends
   - Black line suggests ranging or weak trend conditions
2. **Entry Signals**
   - Color changes from black to green: Potential bullish entry
   - Color changes from black to red: Potential bearish entry
3. **Exit Signals**
   - Color changes from green to black or red: Consider exiting longs
   - Color changes from red to black or green: Consider exiting shorts
## Alert Functions
The indicator includes two built-in alerts:
1. Bullish Signal: Triggers when the indicator turns bullish (green)
2. Bearish Signal: Triggers when the indicator turns bearish (red)
## Best Practices
- Use in conjunction with other technical analysis tools
- Consider the overall market context
- Wait for confirmation of color changes before taking action
- Use appropriate position sizing and risk management
3-Candle Reversal Strategy with R/R & AlertsThe "Steroid: 3-Candle Reversal Strategy with R/R & Alerts" indicator is designed to detect and highlight three-candle reversal patterns, which signal potential trend changes. This tool is versatile and highly effective, making it an essential addition to any trader's toolkit.
Features:
Pattern Detection:
Bullish Reversal: The indicator identifies a bullish reversal pattern when the second candle forms a new low, and the third candle closes above the high of the second candle. This setup suggests a potential upward trend reversal.
Bearish Reversal: Conversely, a bearish reversal pattern is detected when the second candle forms a new high, and the third candle closes below the low of the second candle, indicating a potential downward trend reversal.
Customizable Entry Points:
For bullish patterns, you can select the entry point based on the high of the 1st, 2nd, or 3rd candle.
For bearish patterns, you can choose the entry point based on the low of the 1st, 2nd, or 3rd candle.
This flexibility allows traders to tailor the strategy to their specific trading style and market conditions.
Risk/Reward Calculation:
The indicator automatically calculates and plots entry, stop-loss, and take-profit levels based on the selected risk/reward ratio. This feature helps traders quickly assess the potential risk and reward of each trade setup.
Alerts:
Custom alerts can be set up to notify you when a bullish or bearish pattern is detected. This ensures you never miss a potential trading opportunity.
Visualization:
The indicator colors the candles involved in the pattern (green for bullish and red for bearish) and plots the corresponding entry, stop-loss, and take-profit levels on the chart. This visual aid makes it easy to see and evaluate potential trades.
Settings:
Candle to place the sign: Choose which candle (1st, 2nd, or 3rd) will be marked when a pattern is detected.
Show Entry Level: Toggle the display of the entry level on the chart.
Show Stop-Loss Level: Toggle the display of the stop-loss level on the chart.
Show Take-Profit Level: Toggle the display of the take-profit level on the chart.
Risk-Reward Ratio: Adjust the risk-reward ratio used in calculating the take-profit level.
Enable Bullish Scenario: Turn on or off the detection of bullish reversal patterns.
Enable Bearish Scenario: Turn on or off the detection of bearish reversal patterns.
How to Use:
Customize Settings: Adjust the settings according to your trading strategy and preferences.
Enable Alerts: Set up alerts to be notified when a pattern is detected, ensuring you stay informed about potential trade setups.
Analyze Patterns: Use the visual cues and calculated levels to evaluate the strength and potential of the detected patterns.
Backtest: Use the strategy on historical data to see how it performs over different market conditions.
This indicator is ideal for traders looking for an automated, reliable way to identify potential trend reversals in any market and on any timeframe. It combines technical analysis with customizable risk management, making it a powerful tool for both novice and experienced traders.
Disclaimer:
This script is for educational purposes only. Trading involves substantial risk and is not suitable for every investor.
RSI+MA ALERTThis script is a custom indicator for use on the TradingView platform, which combines the Relative Strength Index (RSI) with a moving average applied to the RSI itself to smooth its movements and potentially identify trends or reversals more clearly.
The RSI is a momentum oscillator that measures the speed and variation of asset price movements. RSI values range from 0 to 100 and are generally considered overbought when above 70 and oversold when below 30. In our indicator, we adjust these levels to 80 and 20, respectively, to avoid premature or delayed signals. Furthermore, we have inserted customizable options within the script that allow the user to define their own overbought and oversold thresholds, thus improving compatibility with different strategies and market conditions.
The overbought metric means that the price may be at a point of downward reversal, while an oversold state may indicate an imminent upward reversal point. These levels are visualized as dotted horizontal lines on the indicator chart for guidance.
To capture the behavior of the RSI over time, we apply a simple moving average (SMA) to the RSI values, thereby smoothing the RSI graph and highlighting the broader trend of oscillator movement. This helps filter out the noise from smaller price movements and provides a clearer representation of trend momentum.
Regarding alerts, the indicator is programmed to send notifications when the RSI value crosses the defined overbought and oversold levels. This means that when the RSI drops below 20, the indicator triggers an oversold alert, while an RSI above 80 triggers an overbought alert. These levels, however, are user adjustable in code, allowing custom levels to be defined to match individual strategies.
Visually, the indicator plots two lines on the chart below the main price chart: a blue line for the RSI values and an orange line for the RSI moving average. The red (oversold - 20) and green (overbought - 80) horizontal lines delimit the critical levels, although these are also customizable. These are the fundamental features of this indicator that make it a useful tool for analyzing momentum and potentially identifying price reversals.
TradingView.To Strategy Template (with Dyanmic Alerts)Hello traders,
If you're tired of manual trading and looking for a solid strategy template to pair with your indicators, look no further.
This Pine Script v5 strategy template is engineered for maximum customization and risk management.
Best part?
This Pine Script v5 template facilitates the dynamic construction of TradingView.TO alerts, sparing users the time and effort of mastering the TradingView.TO syntax and manually create alert commands.
This powerful tool gives much power to those who don't know how to code in Pinescript and want to automate their indicators' signals via TradingView.TO bot.
 IMPORTANT NOTES 
TradingView.TO is a trading bot software that forwards TradingView alerts to your brokers (examples: Binance, Oanda, Coinbase, Bybit, Metatrader 4/5, ...) for automating trading.
Many traders don't know how to create TradingView.TO dynamically-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to break options from your script and then create the orders accordingly.
This script showcases how to create TradingView.TO alerts dynamically.
 TRADINGVIEW ALERTS 
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example: 1 alert for BTC/USDT on the 5 minutes chart, 1 alert for BTC/USDT on the 15-minute chart (assuming you want your bot to trade the BTC/USDT on the 5 and 15-minute timeframes)
2) Select the Order fills and alert() function calls condition
3) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
4) TradingView.TO uses webhook technology - setting a webhook URL from the alerts notifications tab is required.
 KEY FEATURES 
 I) Modular Indicator Connection 
* plug your existing indicator into the template.
* Only two lines of code are needed for full compatibility.
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
To do so:
1) Find in your indicator where the conditions print the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator, whether a MACD , ZigZag, Pivots , higher-highs, lower-lows or whatever indicator with clear buy and sell conditions.
 
//@version=5
indicator("Supertrend", overlay = true, timeframe = "", timeframe_gaps = true)
atrPeriod = input.int(10,    "ATR Length", minval = 1)
factor =    input.float(3.0, "Factor",     minval = 0.01, step = 0.01)
  = ta.supertrend(factor, atrPeriod)
supertrend := barstate.isfirst ? na : supertrend
bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, display = display.none)
upTrend =    plot(direction < 0 ? supertrend : na, "Up Trend",   color = color.green, style = plot.style_linebr)
downTrend =  plot(direction < 0 ? na : supertrend, "Down Trend", color = color.red,   style = plot.style_linebr)
fill(bodyMiddle, upTrend,   color.new(color.green, 90), fillgaps = false)
fill(bodyMiddle, downTrend, color.new(color.red,   90), fillgaps = false)
buy  = ta.crossunder(direction, 0)
sell = ta.crossunder(direction, 0)
//////// CONNECTOR SECTION //////// 
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title = "Signal", display = display.data_window)
//////// CONNECTOR SECTION //////// 
 Important Notes 
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal and -1 for the bearish signal
Now, you can connect your indicator to the Strategy Template using the method below or that one.
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings, and in the Data Source field, select your 🔌Connector🔌 (which comes from your indicator)
Note it doesn’t have to be named 🔌Connector🔌 - you can name it as you want - however, I recommend an explicit name you can easily remember.
From then, you should start seeing the signals and plenty of other stuff on your chart.
🔥 Note that whenever you update your indicator values, the strategy statistics and visuals on your chart will update in real-time
 
 II) BOT Risk Management: 
- Max Drawdown:
Mode: Select whether the max drawdown is calculated in percentage (%) or USD.
Value: If the max drawdown reaches this specified value, set a value to halt the bot.
- Max Consecutive Days:
Use Max Consecutive Days BOT Halt: Enable/Disable halting the bot if the max consecutive losing days value is reached.
- Max Consecutive Days: Set the maximum number of consecutive losing days allowed before halting the bot.
- Max Losing Streak:
Use Max Losing Streak: Enable/Disable a feature to prevent the bot from taking too many losses in a row.
- Max Losing Streak Length: Set the maximum length of a losing streak allowed.
Margin Call:
- Use Margin Call: Enable/Disable a feature to exit when a specified percentage away from a margin call to prevent it.
Margin Call (%): Set the percentage value to trigger this feature.
- Close BOT Total Loss:
Use Close BOT Total Loss: Enable/Disable a feature to close all trades and halt the bot if the total loss is reached.
- Total Loss ($): Set the total loss value in USD to trigger this feature.
Intraday BOT Risk Management:
- Intraday Losses:
Use Intraday Losses BOT Halt: Enable/Disable halting the bot on reaching specified intraday losses.
Mode: Select whether the intraday loss is calculated in percentage (%) or USD.
- Max Intraday Losses (%): Set the value for maximum intraday losses.
Limit Intraday Trades:
- Use Limit Intraday Trades: Enable/Disable a feature to limit the number of intraday trades.
- Max Intraday Trades: Set the maximum number of intraday trades allowed.
Restart Intraday EA:
 III) Order Types and Position Sizing 
- Choose between market or limit orders.
- Set your position size directly in the template.
Please use the position size from the “Inputs” and not the “Properties” tab.
I know it's redundant. - the template needs this value from the "Inputs" tab to build the alerts, and the Backtester needs it from the "Properties" tab.
 IV) Advanced Take-Profit and Stop-Loss Options 
- Choose to set your SL/TP in either USD or percentages.
- Option for multiple take-profit levels and trailing stop losses.
- Move your stop loss to break even +/- offset in USD for “risk-free” trades.
V) Miscellaneous:
Retry order openings if they fail.
Order Types:
Select and specify order type and price settings.
Position Size:
Define the type and size of positions.
Leverage:
Leverage settings, including margin type and hedge mode.
Session:
Limit trades to specific sessions.
Dates:
Limit trades to a specific date range.
Trades Direction:
Direction: Specify the market direction for opening positions.
 VI) Logger 
The TradingView.TO commands are logged in the TradingView logger.
You'll find more information about it in this  TradingView blog post .
 WHY YOU MIGHT NEED THIS TEMPLATE 
1) Transform your indicator into a TradingView.TO trading bot more easily than before
Connect your indicator to the template
Create your alerts
Set your EA settings
2) Save Time
Auto-generated alert messages for TradingView.TO.
I tested them all and checked with the support team what could/couldn’t be done.
3) Be in Control
Manage your trading risks with advanced features.
4) Customizable
Fits various trading styles and asset classes.
REQUIREMENTS
* Make sure you have your TradingView.TO account
* If there is any issue with the template, ask me in the comments section - I’ll answer quickly.
 BACKTEST RESULTS FROM THIS POST 
1) I connected this strategy template to a dummy Supertrend script.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with TradingView.TO.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
This strategy is a template to be connected to any indicator - the sky is the limit. :)
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
* Initial Capital: 100000 USD
* Position Size: 1%
* Commission Percent: 0.075%
* Slippage: 1 tick
* No margin/leverage used
Heatmap MACD Strategy - Pineconnector (Dynamic Alerts)Hello traders
This script is an upgrade of this template script.
 Heatmap MACD Strategy 
 Pineconnector 
Pineconnector is a trading bot software that forwards TradingView alerts to your Metatrader 4/5 for automating trading.
Many traders don't know how to dynamically create Pineconnector-compatible alerts using the data from their TradingView scripts.
 Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to breakeven options from your script and then create the orders accordingly. 
This script showcases how to create Pineconnector alerts dynamically.
Pineconnector doesn't support alerts with multiple Take Profits.
As a workaround, for 2 TPs, I had to open two trades.
It's not optimal, as we end up paying more spreads for that extra trade - however, depending on your trading strategy, it may not be a big deal.
 TradingView Alerts 
1) You'll have to create one alert per asset X timeframe = 1 chart.
 Example : 1 alert for EUR/USD on the 5 minutes chart, 1 alert for EUR/USD on the 15-minute chart (assuming you want your bot to trade the EUR/USD on the 5 and 15-minute timeframes)
2) For each alert, the alert message is pre-configured with the text below
 {{strategy.order.alert_message}} 
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
3) Don't forget to set the webhook URL in the Notifications tab of the TradingView alerts UI.
 EA configuration 
The  Pyramiding  in the EA on Metatrader must be set to  2  if you want to trade with 2 TPs => as it's opening 2 trades.
If you only want 1 TP, set the EA  Pyramiding  to 1.
Regarding the other EA settings, please refer to the Pineconnector documentation on their website.
 Logger 
The Pineconnector commands are logged in the TradingView logger.
You'll find more information about it from this  TradingView blog post 
 Important Notes 
1) This multiple MACDs strategy doesn't matter much.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with Pineconnector.
2) The backtest results aren't relevant for this  educational  script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
 
  Initial Capital: 100000 USD
  Position Size: 1 contract
  Commission Percent: 0.075%
  Slippage: 1 tick
  No margin/leverage used
 
For example, those are realistic settings for trading CFD indices with low timeframes but not the best possible settings for all assets/timeframes.
 Concept 
The Heatmap MACD Strategy allows selecting one MACD in five different timeframes.
You'll get an exit signal whenever one of the 5 MACDs changes direction.
Then, the strategy re-enters whenever all the MACDs are in the same direction again.
It takes:
 
  long trades when all the 5 MACD histograms are bullish
  short trades when all the 5 MACD histograms are bearish
  
You can select the same timeframe multiple times if you don't need five timeframes.
For example, if you only need the 30min, the 1H, and 2H, you can set your timeframes as follow:
 
  30m
  30m
  30m
  1H
  2H
 
 Risk Management Features 
All the features below are pips-based.
 
  Stop-Loss
  Trailing Stop-Loss
  Stop-Loss to Breakeven after a certain amount of pips has been reached
  Take Profit 1st level and closing X% of the trade
  Take Profit 2nd level and close the remaining of the trade
 
 Custom Exit 
I added the option ON/OFF to close the opened trade whenever one of the MACD diverges with the others.
 Help me help the community 
If you see any issue when adding your strategy logic to that template regarding the orders fills on your Metatrader, please let me know in the comments.
I'll use your feedback to make this template more robust. :)
 What's next? 
I'll publish a more generic template built as a connector so you can connect any indicator to that Pineconnector template.
Then, I'll publish a template for Capitalise AI, ProfitView, AutoView, and Alertatron.
Thank you
Dave
SuperTrend Multi Time Frame Long and Short Trading Strategy
 Hello All  
This is non-repainting Supertrend Multi Time Frame script,  I got so many request on Supertrend with Multi Time Frame. This is for all of them ..I am making it open for all so you can change its coding according to your need.
 How the Basic Indicator works 
SuperTrend is one of the most common ATR based trailing stop indicators.
In this version you can change the ATR calculation method from the settings. Default method is RMA. 
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a Supertrend indicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on spot, futures, options or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
 How the Strategy  works 
 
  This is developed based on SuperTrend.
  Use two time frame for confirm all entry signals.
  Two time frame SuperTrend works as Trailing stop for both long and short positions.
  More securely execute orders, because it is wait until confine two time frames(example : daily and 30min)
  Each time frame developed as customisable for user to any timeframe.
  User can choose trading position side from Long, Short, and Both.
  Custom Stop Loss level,  user can enter Stop Loss percentage based on timeframe using.
  Multiple Take Profit levels with customisable TP price percentage and position size.
  Back-testing with custom time frame.
  This strategy is develop for specially for automation purpose.
 
 The strategy includes: 
 
  Entry for Long and Short.
  Take Profit.
  Stop Loss.
  Trailing Stop Loss.
  Position Size.
  Exit Signal.
  Risk Management Feature.
  Backtesting.
  Trading Alerts.
 
 Use the strategy with alerts 
This strategy is alert-ready. All you have to do is:
 
  Go on a pair you would like to trade
  Create an alert
  Select the strategy as a Trigger
  Wait for new orders to be sent to you
 
 This is develop for specially for automating trading on any exchange, if you need to get that automating service for this strategy or any Tradingview strategy or indicator please contact me I am have 8 year experience on that field.  
 I hope you enjoy it!
Thanks,
Ranga
[Strategy Alert Webhook Demo] Buy One Sell One Buy One Sell One 
Two Options to send Alert Order via Webhook
 1. Order fill events with `alert_message` on strategy.close(), strategy.entry(), strategy.exit() and strategy.order() 
 
 NOTE: Need to fill the Alert Creation box with `{{strategy.order.alert_message}}`
 
 2. Send Alert through `alert()`






















