My Trading BotThis Trading Bot is a multi-functional strategy script designed for TradingView that leverages smart money concepts and fair value gap (FVG) detection to identify potential entry points for both long and short trades. It not only automates the order execution process but also provides detailed visual feedback and real-time alerts to help traders monitor the strategy's activity.
Key Features
Smart Money Concepts & Fair Value Gap Detection
FVG Identification: The bot employs a simple yet effective method to detect fair value gaps. It identifies bullish FVGs when a previous bar's low is higher than the current bar's high and bearish FVGs when the previous bar's high is lower than the current bar's low.
Dynamic Entry Signals: In addition to FVG detection, the strategy uses crossover and crossunder logic of the price relative to recent extreme values (highest high and lowest low over a 50-bar period) to trigger buy and sell signals.
ATR-Based Risk Management
Stop Loss Calculations: The bot calculates stop-loss levels using the Average True Range (ATR) multiplied by a user-defined multiplier, ensuring that stop losses adjust dynamically to current market volatility.
Take Profit Scaling: Multiple take profit (TP) targets are set based on a range of multipliers of the ATR. This allows for scaling out of positions as the price moves favorably.
Multi-Order Execution
Five Orders per Signal: Upon detecting a valid entry signal, the bot executes five individual orders. Each order is paired with its corresponding take profit level, which is adjusted based on the ATR and pre-defined TP multipliers.
Flexibility for Both Sides: The strategy is capable of handling both long (BUY) and short (SELL) entries, executing the respective orders with their dedicated stop loss and TP configurations.
Visual Aids & Real-Time Trade Information
Entry Signal Plotting: Visual cues are provided on the chart with green labels for buy signals and red labels for sell signals, making it easy for traders to quickly recognize entry points.
Trade Information Table: A table is displayed on the chart that dynamically updates with key trade data including trade side (BUY NOW or SELL NOW), entry price, multiple TP levels, stop loss, and a timer that shows how long it has been since the entry was triggered.
Dynamic Color Coding: The table uses conditional coloring to highlight when certain TP levels have been reached or surpassed, offering an at-a-glance view of the trade’s progress.
Alert Notifications
Audible & Visual Alerts: The bot is configured to trigger an alert notification (e.g., a bell sound) whenever a new entry (buy or sell) is triggered. This ensures that traders are immediately informed of new trading opportunities, even if they are not constantly monitoring the chart.
User Customization
Input Parameters: Traders can customize various aspects of the bot including ATR multiplier, TP multipliers, and colors for different elements (e.g., bull color, bear color, FVG color). This allows for tailoring the strategy to fit individual risk tolerance and aesthetic preferences.
Session Flexibility: The strategy is designed to trade at any time, without being limited to specific market sessions.
How It Works
Signal Detection: The script continuously monitors the market for crossover events between the current close and the defined price extremes (highest high and lowest low over the last 50 bars), and also checks for fair value gaps. When a bullish or bearish condition is met, a respective buy or sell signal is generated.
Risk & Reward Setup: Once a signal is identified, the bot computes the appropriate stop-loss level using the ATR and the specified multiplier. It also calculates five take profit levels using a series of predefined TP multipliers. This multi-target approach helps in capturing profits progressively as the market moves in the favorable direction.
Order Execution & Alerts: For every valid signal, the bot places five orders (one for each TP target) and sets the corresponding exit conditions. Simultaneously, it triggers an alert notification to signal that a new entry has been initiated, ensuring that traders do not miss potential opportunities.
Real-Time Monitoring: The integrated table on the chart updates with essential trade information, including a timer showing the duration since the trade was triggered. This table, with its color-coded cells, provides a clear and concise snapshot of trade progress, including whether any of the TP levels have been reached.
This Trading Bot is a robust tool that combines technical analysis, risk management, and real-time notifications to create a comprehensive automated trading solution. Its multi-order execution capability and dynamic visual feedback make it a valuable asset for traders looking to implement a disciplined, systematic approach to the markets. Whether you're monitoring the chart directly or relying on the alert notifications, this bot ensures you stay informed and ready to capitalize on market opportunities.
Average True Range (ATR)
AI Volume Breakout for scalpingPurpose of the Indicator
This script is designed for trading, specifically for scalping, which involves making numerous trades within a very short time frame to take advantage of small price movements. The indicator looks for volume breakouts, which are moments when trading volume significantly increases, potentially signaling the start of a new price movement.
Key Components:
Parameters:
Volume Threshold (volumeThreshold): Determines how much volume must increase from one bar to the next for it to be considered significant. Set at 4.0, meaning volume must quadruplicate for a breakout signal.
Price Change Threshold (priceChangeThreshold): Defines the minimum price change required for a breakout signal. Here, it's 1.5% of the bar's opening price.
SMA Length (smaLength): The period for the Simple Moving Average, which helps confirm the trend direction. Here, it's set to 20.
Cooldown Period (cooldownPeriod): Prevents signals from being too close together, set to 10 bars.
ATR Period (atrPeriod): The period for calculating Average True Range (ATR), used to measure market volatility.
Volatility Threshold (volatilityThreshold): If ATR divided by the close price exceeds this, the market is considered too volatile for trading according to this strategy.
Calculations:
SMA (Simple Moving Average): Used for trend confirmation. A bullish signal is more likely if the price is above this average.
ATR (Average True Range): Measures market volatility. Lower volatility (below the threshold) is preferred for this strategy.
Signal Generation:
The indicator checks if:
Volume has increased significantly (volumeDelta > 0 and volume / volume >= volumeThreshold).
There's enough price change (math.abs(priceDelta / open) >= priceChangeThreshold).
The market isn't too volatile (lowVolatility).
The trend supports the direction of the price change (trendUp for bullish, trendDown for bearish).
If all these conditions are met, it predicts:
1 (Bullish) if conditions suggest buying.
0 (Bearish) if conditions suggest selling.
Cooldown Mechanism:
After a signal, the script waits for a number of bars (cooldownPeriod) before considering another signal to avoid over-trading.
Visual Feedback:
Labels are placed on the chart:
Green label for bullish breakouts below the low price.
Red label for bearish breakouts above the high price.
How to Use:
Entry Points: Look for the labels on your chart to decide when to enter trades.
Risk Management: Since this is for scalping, ensure each trade has tight stop-losses to manage risk due to the quick, small movements.
Market Conditions: This strategy might work best in markets with consistent volume and price changes but not extreme volatility.
Caveats:
This isn't real AI; it's a heuristic based on volume and price. Actual AI would involve machine learning algorithms trained on historical data.
Always backtest any strategy, and consider how it behaves in different market conditions, not just the ones it was designed for.
ATR Stop-Loss by Marius AVisual and Logical Behavior of the Code
1️⃣ ATR is calculated based on the chosen period (default 14) to determine volatility.
2️⃣ When the price crosses above the SMA(14), a Long stop-loss is set.
The stop-loss is placed below the current price at a distance of 1.5 × ATR (default).
The green line appears below the candle.
3️⃣ When the price crosses below the SMA(14), a Short stop-loss is set.
The stop-loss is placed above the current price at a distance of 1.5 × ATR.
The red line appears above the candle.
🔹 Examples of Manifestation on the Chart
📌 Scenario 1: Bullish Trend → Long Stop-Loss is Activated
✅ If the price rises above the SMA(14), a green stop-loss is set below the price.
✅ The stop-loss remains fixed until the price makes a new crossover.
🔴 If the price drops and hits the green line, the Long position is closed.
📌 Scenario 2: Bearish Trend → Short Stop-Loss is Activated
✅ If the price falls below the SMA(14), a red stop-loss is set above the price.
✅ The stop-loss remains in place until a new cross below the SMA(14).
🟢 If the price rises and hits the red line, the Short position is closed.
🔹 Strengths and Limitations of the Code
✅ Advantages:
Automatically adapts to market volatility.
Works on any timeframe and instrument.
Provides a dynamic stop-loss based on real conditions.
❌ Limitations:
Does not adjust the stop-loss after each candle (it is not a trailing stop).
The stop-loss remains fixed until a new crossover/crossunder of the price over the SMA(14).
Does not provide entry signals, only position protection.
ATR stop loss with two SMA'sPlots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5). Percentage labels can also be shown.
Two simple moving averages are shown, default is SMA50 and SMA150 on closing price but the user can change the number of bars and the source used for the SMA's.
ATR as % of Price### **ATR as % of Price - TradingView Indicator**
📈 **Description:**
This indicator converts the **Average True Range (ATR)** into a **percentage of the closing price**, providing a clearer perspective on volatility relative to the stock’s price. Unlike the standard ATR, which is displayed in absolute price units (e.g., dollars), this version expresses ATR as a percentage, making it useful for comparing volatility across different stocks, ETFs, and crypto assets.
🔥 **Why Use This?**
- Easily compare volatility between stocks with different price levels.
- Identify high-volatility periods relative to a stock’s price.
- Adjust stop-loss and position sizing more effectively.
⚙️ **How It Works:**
- Calculates the **ATR** over a chosen period (default: 14).
- Divides ATR by the **closing price** and multiplies by **100** to get a percentage.
- Displays the result as a line chart.
🛠 **Customization:**
- Modify the **ATR length** in settings to match your trading style.
- Use in conjunction with support/resistance levels and moving averages for better trade decisions.
✅ **Ideal For:**
- Swing traders, day traders, and investors who want **relative volatility** insights.
- Stocks, forex, crypto, and commodities analysis.
🚀 **Try it now and enhance your volatility analysis!**
ATR Stop Loss & Take ProfitHow It Works:
Parameters :
ATR Period : The period for calculating ATR (default is 14).
Stop Loss Multiplier : The ATR multiplier for calculating the stop-loss (default is 1.5).
Take Profit Multiplier : The ATR multiplier for calculating the take-profit (default is 2.0).
ATR Calculation :
The built-in ta.atr() function is used to calculate the Average True Range.
Stop-Loss Levels :
For long positions: the current price minus the ATR value multiplied by the multiplier.
For short positions: the current price plus the ATR value multiplied by the multiplier.
Take-Profit Levels :
For long positions: the current price plus the ATR value multiplied by the multiplier.
For short positions: the current price minus the ATR value multiplied by the multiplier.
Visualization :
Green line — Stop-loss level for long positions.
Red line — Stop-loss level for short positions.
Teal line — Take-profit level for long positions.
Orange line — Take-profit level for short positions.
Text labels "Long SL", "Short SL", "Long TP", and "Short TP" are added for clarity.
ATR ve RSI GöstergesiATR (Average True Range) ve RSI (Relative Strength Index) değerlerini gösteren basit bir indikatör.
QQE Adv / Quantitative Qualitative Estimation AdvancedQQE Adv / Quantitative Qualitative Estimation Advanced
QQE Adv is a trading indicator, refined by the community, that builds upon Roman Ignatov's original Quantitative Qualitative Estimation (QQE). Utilizing smoothed RSI and ATR, QQE Adv dynamically adjusts signal levels based on market volatility. This key enhancement over the standard QQE aims to provide traders with more responsive and potentially more accurate buy/sell signals, adapting to changing market conditions.
Forex trader Jim Brown significantly popularized QQE Adv, and his preferred settings are included as the indicator's default settings.
Key Features:
1. Clear Signal Cross Markers: Visually highlights line crossovers for easy signal identification.
2. Alert Ready: Fully compatible with TradingView's alert system for automated signal notifications.
I encourage your feedback so I can further improve this QQE Advanced Oscillator. Thank you
ATR stop lossPlots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5), subtracted from closing price.
Additions in this version:
You can now show percentage labels to help evaluate the level of risk.
The color of the plotted line and the text labels can be picked by the user.
Liquidity Channel DEX/Uniswap/Crypto by @RichSimonThe indicator automatically detects channels for placing liquidity on decentralized exchanges (DEX).
Based on a linear regression algorithm (similar to the "Regression Trend" tool).
Adjustable parameters: channel width (in standard deviations) and analysis depth (historical period in bars).
Main parameters:
Channel boundaries: Upper (top), Center (central), Lower (bottom). Same for parent channel
ATR (Average True Range) — the average true range, scaled by 100 times over a period equal to the analysis depth.
Range (channel width).
Standard deviation (100xSTD LinReg), scaled by 100 times.
Channel speed — the rate of channel change (slope) per hour. Determines the channel's slope (positive - upward, negative - downward, higher value - steeper slope).
It is possible to create alerts with parameter transmission via placeholders, for example: {{plot_0}}.
Check the placeholder number in the data window.
Acknowledgments, donations, and improvement suggestions can be left in the comments.
AyebaleJohnBob-Trading-BotAyebale John Bob - Trading-Bot Overview:
This trading strategy is designed to automate trades based on the "Smart Money Concepts" and "Fair Value Gaps" (FVG). The bot leverages multiple technical indicators and logic to execute buy and sell trades with dynamic stop-loss and take-profit (TP) levels.
Key Features:
User Inputs:
Bull & Bear Colors: Customizable colors for bullish and bearish trends.
Fair Value Gap (FVG) Color: Customizable color for visualizing FVG zones.
ATR Multiplier: Defines the sensitivity of stop-loss calculations based on Average True Range (ATR).
Take-Profit Multipliers: A set of five multipliers that scale take-profit levels dynamically.
Trade Signals:
Buy Signal: Generated when the price crosses above a certain low or when a bullish Fair Value Gap (FVG) is detected.
Sell Signal: Triggered when the price crosses below a high or when a bearish FVG is identified.
Stop-Loss & Take-Profit Logic:
Stop-loss levels are calculated using ATR and the specified multiplier.
Take-profit levels are dynamically determined based on the ATR multipliers, with five different levels for each trade.
Trade Execution:
The strategy allows for five simultaneous buy or sell entries, with each having its own take-profit and stop-loss levels.
The bot operates continuously, without any session restrictions, allowing trades at any time.
Visual Indicators:
Entry Signals: Visual shapes (green for buy and red for sell) appear on the chart to indicate entry points.
Progress Bar: A real-time progress bar is plotted, tracking the percentage gain/loss from the entry price.
Trade Information Table:
A dynamic table is used to display important trade information, including entry price, take-profit levels, and stop-loss. This table updates for each new trade (buy or sell), and shows real-time trade progress.
Risk Management:
The stop-loss is dynamically adjusted based on the ATR calculation, ensuring that the bot adapts to changing market volatility.
Take-profit levels are spread across five increments, offering multiple opportunities for profit capture.
Summary:
The Ayebale John Bob - Trading-Bot is designed to implement a sophisticated strategy that combines smart money concepts, fair value gap analysis, and robust risk management. It provides real-time trade information, progress tracking, and a flexible approach to stop-loss and take-profit strategies. The bot is ideal for traders looking to automate trades and visually track their progress directly on the chart.
Johnny's Volatility-Driven Trend Identifier w/ Reversal SignalsJohnny's Volatility-Driven Trend Identifier w/ Reversal Signals is designed to identify high-probability trend shifts and reversals by incorporating volatility, momentum, and impulse-based filtering. It is specifically built for traders who want to capture strong trend movements while minimizing false signals caused by low volatility noise.
By leveraging Rate of Change (ROC), Relative Strength Index (RSI), and Average True Range (ATR)-based volatility detection, the indicator dynamically adapts to market conditions. It highlights breakout trends, reversals, and early signs of momentum shifts using strategically placed labels and color-coded trend visualization.
Inspiration taken from Top G indicator .
What This Indicator Does
The Volatility-Driven Trend Identifier works by:
Measuring Market Extremes & Momentum:
Uses ROC normalization with standard deviation to identify impulse moves in price action.
Implements RSI filtering to determine overbought/oversold conditions that validate trend strength.
Utilizes ATR-based volatility tracking to ensure signals only appear when meaningful market movements are occurring.
Identifying Key Trend Events:
Power Peak (🔥): Marks a confirmed strong downtrend, ideal for shorting opportunities.
Surge (🚀): Indicates a confirmed strong uptrend, signaling a potential long entry.
Soft Surge (↗): Highlights a mild bullish reentry or early uptrend formation.
Soft Peak (↘): Shows a mild bearish reentry or early downtrend formation.
Providing Adaptive Filtering for Reliable Signals:
Filters out weak trends with a volatility check, ensuring signals appear only in strong market conditions.
Implements multi-level confirmation by combining trend strength metrics, preventing false breakouts.
Uses gradient-based visualization to color-code market sentiment for quick interpretation.
What This Indicator Signals
Breakouts & Impulse Moves: 🚀🔥
The Surge (🚀) and Power Peak (🔥) labels indicate confirmed momentum breakouts, where the trend has been validated by a combination of ROC impulse, RSI confirmation, and ATR volatility filtering.
These signals suggest that the market is entering a strong trend, and traders can align their entries accordingly.
Early Trend Formation & Reentries: ↗ ↘
The Soft Surge (↗) and Soft Peak (↘) labels indicate areas where a trend might be forming, but is not yet fully confirmed.
These signals help traders anticipate potential entries before the trend gains full strength.
Volatility-Adaptive Trend Filtering: 📊
Since the indicator only activates in volatile conditions, it avoids the pitfalls of low-range choppy markets where false signals frequently occur.
ATR-driven adaptive windowing allows the indicator to dynamically adjust its sensitivity based on real-time volatility conditions.
How to Use This Indicator
1. Identifying High-Probability Entries
Bullish Entries (Long Trades)
Look for 🚀 Surge signals in an uptrend.
Confirm with RSI (should be above 50 for momentum).
Ensure volatility is increasing to validate the breakout.
Use ↗ Soft Surge signals for early entries before the trend fully confirms.
Bearish Entries (Short Trades)
Look for 🔥 Power Peak signals in a downtrend.
RSI should be below 50, indicating downward momentum.
Volatility should be rising, ensuring market momentum is strong.
Use ↘ Soft Peak signals for early entries before a full bearish confirmation.
2. Avoiding False Signals
Ignore signals when the market is ranging (low ATR).
Check RSI and ROC alignment to ensure trend confirmation.
Use additional confluences (e.g., price action, support/resistance levels, moving averages) for enhanced accuracy.
3. Trend Confirmation & Filtering
The stronger the trend, the higher the likelihood that Surge (🚀) and Power Peak (🔥) signals will continue in their direction.
Soft Surge (↗) and Soft Peak (↘) act as early warning signals before major breakouts occur.
What Makes This a Machine Learning-Inspired Moving Average?
While this indicator is not a direct implementation of machine learning (as Pine Script lacks AI/ML capabilities), it mimics machine learning principles by adapting dynamically to market conditions using the following techniques:
Adaptive Trend Selection:
It does not rely on fixed moving averages but instead adapts dynamically based on volatility expansion and momentum detection.
ATR-based filtering adjusts the indicator’s sensitivity to real-time conditions.
Multi-Factor Confirmation (Feature Engineering Equivalent in ML):
Combines ROC, RSI, and ATR in a structured way, similar to how ML models use multiple inputs to filter and classify data.
Implements conditional trend recognition, ensuring that only valid signals pass through the filter.
Noise Reduction with Data Smoothing:
The algorithm avoids false signals by incorporating trend intensity thresholds, much like how ML models remove outliers to refine predictions.
Adaptive filtering ensures that low-volatility environments do not produce misleading signals.
Why Use This Indicator?
✔ Reduces False Signals: Multi-factor validation ensures only high-confidence signals are triggered.
✔ Works in All Market Conditions: Volatility-adaptive nature allows the indicator to perform well in both trending and ranging markets.
✔ Great for Swing & Intraday Trading: It helps spot momentum shifts early and allows traders to catch major market moves before they fully develop.
✔ Visually Intuitive: Color-coded trends and clear signal markers make it easy to interpret.
Auto-Adjusting Kalman Filter by TenozenNew year, new indicator! Auto-Adjusting Kalman Filter is an indicator designed to provide an adaptive approach to trend analysis. Using the Kalman Filter (a recursive algorithm used in signal processing), this algo dynamically adjusts to market conditions, offering traders a reliable way to identify trends and manage risk! In other words, it's a remaster of my previous indicator, Kalman Filter by Tenozen.
What's the difference with the previous indicator (Kalman Filter by Tenozen)?
The indicator adjusts its parameters (Q and R) in real-time using the Average True Range (ATR) as a measure of market volatility. This ensures the filter remains responsive during high-volatility periods and smooth during low-volatility conditions, optimizing its performance across different market environments.
The filter resets on a user-defined timeframe, aligning its calculations with dominant trends and reducing sensitivity to short-term noise. This helps maintain consistency with the broader market structure.
A confidence metric, derived from the deviation of price from the Kalman filter line (measured in ATR multiples), is visualized as a heatmap:
Green : Bullish confidence (higher values indicate stronger trends).
Red : Bearish confidence (higher values indicate stronger trends).
Gray : Neutral zone (low confidence, suggesting caution).
This provides a clear, objective measure of trend strength.
How it works?
The Kalman Filter estimates the "true" price by filtering out market noise. It operates in two steps, that is, prediction and update. Prediction is about projection the current state (price) forward. Update is about adjusting the prediction based on the latest price data. The filter's parameters (Q and R) are scaled using normalized ATR, ensuring adaptibility to changing market conditions. So it means that, Q (Process Noise) increases during high volatility, making the filter more responsive to price changes and R (Measurement Noise) increases during low volatility, smoothing out the filter to avoid overreacting to minor fluctuations. Also, the trend confidence is calculated based on the deviation of price from the Kalman filter line, measured in ATR multiples, this provides a quantifiable measure of trend strength, helping traders assess market conditions objectively.
How to use?
Use the Kalman Filter line to identify the prevailing trend direction. Trade in alignment with the filter's slope for higher-probability setups.
Look for pullbacks toward the Kalman Filter line during strong trends (high confidence zones)
Utilize the dynamic stop-loss and take-profit levels to manage risk and lock in profits
Confidence Heatmap provides an objective measure of market sentiment, helping traders avoid low-confidence (neutral) zones and focus on high-probability opportunities
Guess that's it! I hope this indicator helps! Let me know if you guys got some feedback! Ciao!
ATR BeamsATR Beams is a simple indicator that utilizes the ATR to determine levels above and below price action that can serve as stop loss or trailing visual aids across all instruments.
This indicator is preset to an ATR value of 14 and a multiplier of 1 for the ATR.
Both of these parameters can be modified to your specific trading preference, the color and indicator line style can both also be modified to your visual preference.
I hope this provides you with a good visual aid
IU Range Trading StrategyIU Range Trading Strategy
The IU Range Trading Strategy is designed to identify range-bound markets and take trades based on defined price ranges. This strategy uses a combination of price ranges and ATR (Average True Range) to filter entry conditions and incorporates a trailing stop-loss mechanism for better trade management.
User Inputs:
- Range Length: Defines the number of bars to calculate the highest and lowest price range (default: 10).
- ATR Length: Sets the length of the ATR calculation (default: 14).
- ATR Stop-Loss Factor: Determines the multiplier for the ATR-based stop-loss (default: 2.00).
Entry Conditions:
1. A range is identified when the difference between the highest and lowest prices over the selected range is less than or equal to 1.75 times the ATR.
2. Once a valid range is formed:
- A long trade is triggered at the range high.
- A short trade is triggered at the range low.
Exit Conditions:
1. Trailing Stop-Loss:
- The stop-loss adjusts dynamically using ATR targets.
- The strategy locks in profits as the trade moves in your favor.
2. The stop-loss and take-profit levels are visually plotted for transparency and easier decision-making.
Features:
- Automated box creation to visualize the trading range.
- Supports one position at a time, canceling opposite-side entries.
- ATR-based trailing stop-loss for effective risk management.
- Clear visual representation of stop-loss and take-profit levels with colored bands.
This strategy works best in markets with defined ranges and can help traders identify breakout opportunities when the price exits the range.
hector mena Breakout Trading with ATR, RSI and MA CrossTitle: Breakout Trading Strategy with ATR, RSI, and Moving Average Cross
Description (English):
This script combines key technical indicators—ATR (Average True Range), RSI (Relative Strength Index), and Moving Averages—to provide a comprehensive breakout trading strategy. It is designed to help traders identify significant breakout levels and confirm signals with momentum and trend analysis.
How It Works:
ATR for Breakout Levels:
The ATR is used to calculate dynamic breakout levels by adjusting the highest resistance and lowest support levels with a customizable multiplier. This ensures that breakout levels adapt to market volatility.
RSI for Momentum Confirmation:
The RSI identifies overbought and oversold conditions, providing an additional layer of confirmation for breakouts. A breakout accompanied by an RSI signal can indicate stronger momentum.
Moving Average Cross for Trend Validation:
Two simple moving averages (short-term and long-term) are included to validate the trend. A crossover suggests a potential change in trend, aligning with breakout signals.
Why Combine These Indicators?
The ATR ensures breakout levels are realistic and volatility-adjusted.
The RSI avoids false signals by confirming if the price has momentum during a breakout.
Moving Average crossovers add trend-following confirmation, helping traders align with market direction.
The combination provides a robust framework to filter out false signals and improve the reliability of trading decisions.
Key Features:
Breakout Levels: Upper and lower breakout levels dynamically calculated using ATR.
RSI Confirmation: Visual overbought (70) and oversold (30) levels and RSI plot.
Trend Validation: Short and long-term moving averages plotted on the chart with crossover signals.
Visual Alerts: Clear "BUY" and "SELL" labels for actionable signals.
Custom Alerts: Configurable alerts for breakouts and moving average crossovers.
How to Use It:
Adjust the parameters (ATR length, multiplier, RSI length, and moving averages) based on your trading strategy.
Look for "BUY" signals when:
Price breaks above the resistance level, and RSI indicates oversold conditions.
Moving averages cross bullishly.
Look for "SELL" signals when:
Price breaks below the support level, and RSI indicates overbought conditions.
Moving averages cross bearishly.
Use alerts for automated notifications about potential trades.
Notes:
This script is intended for educational purposes. Use it alongside proper risk management techniques and backtesting.
Always test in demo mode before applying it to live trading.
P T Supertrend CustomPT Supertrend Custom Indicator Description
The PT Supertrend Custom indicator is a dual Supertrend-based tool designed to help traders identify market trends and potential reversals with enhanced accuracy. This custom indicator plots two Supertrend lines with different ATR (Average True Range) lengths and multipliers, providing a broader perspective on price movements across varying market conditions.
Key Features:
1. Dual Supertrend Lines:
- The indicator calculates two separate Supertrend values using customizable ATR lengths (default: 7 and 21) and factors (default: 3.0 for both).
- This dual-layered approach helps identify both short-term and long-term trends for better decision-making.
2. Customizable Parameters:
- ATR Length (ATR Length & ATR Length2): Determines the lookback period for volatility calculation.
- Factor (Factor & Factor2): Defines the multiplier for the ATR, controlling the sensitivity of the Supertrend lines.
3. Visual Trend Representation:
- Green and red line plots represent uptrends and downtrends, respectively.
- The indicator overlays on the price chart, offering a clear visual representation of trend direction.
- Trend fill areas provide additional clarity, with green shading for uptrends and red shading for downtrends.
4. Dynamic Trend Shifts:
- The indicator adapts dynamically based on price action, switching from an uptrend to a downtrend and vice versa when conditions change.
- Two independent trend signals allow traders to compare short-term and long-term trend confirmations.
5. Overlay on Price Chart:
- The indicator is plotted directly on the price chart for easy visualization without cluttering the workspace.
How to Use:
- Trend Identification:
- A green Supertrend line below price indicates an uptrend.
- A red Supertrend line above price signals a downtrend.
- When both Supertrends align, it indicates a strong trend; divergence may signal potential reversals.
- Entry & Exit Signals:
- Consider long positions when both Supertrend lines turn green.
- Consider short positions when both Supertrend lines turn red.
- Use the shorter ATR period for quicker entries and exits, while the longer ATR period provides confirmation.
- Risk Management:
- The Supertrend lines can serve as dynamic support/resistance levels for placing stop-loss orders.
Best Used In:
- Trend-following strategies
- Swing trading and day trading
- Volatile markets where ATR-based signals are effective
This indicator provides a comprehensive view of market trends by combining short- and long-term trend filters, making it a valuable tool for traders seeking precision and clarity in their trading decisions.
Created by Prince Thomas
Uptrick: Zero Lag HMA Trend Suite1. Name and Purpose
Uptrick: Zero Lag HMA Trend Suite is a Pine Version 6 script that builds upon the Hull Moving Average (HMA) to offer an advanced trend analysis tool. Its purpose is to help traders identify trend direction, potential reversals, and overall market momentum with reduced lag compared to traditional moving averages. By combining the HMA with Average True Range (ATR) thresholds, slope-dependent coloring, Volume Weighted Average Price (VWAP) ribbons, and optional reversal signals, the script aims to give a detailed view of price activity in various market environments.
2. Overview
This script begins with the calculation of a Hull Moving Average, a method that blends Weighted Moving Averages in a way designed to cut down on lag while still smoothing out price fluctuations. Next, several enhancements are applied. The script compares current HMA values to previous ones for slope-based coloring, which highlights uptrends and downtrends at a glance. It also plots buy and sell signals when price moves beyond or below thresholds determined by the ATR and the user’s chosen signal multiplier. An optional VWAP ribbon can be shown to confirm bullish or bearish conditions relative to a volume-weighted benchmark. Additionally, the script can plot reversal signals (labeled with B) at points where price crosses back toward the HMA from above or below. Taken together, these elements allow traders to visualize both the short-term momentum and the broader context of how price interacts with volatility and overall market direction.
3. Why These Indicators Have Been Linked Together
The reason the Hull Moving Average, the Average True Range, and the VWAP have been integrated into one script is to tackle multiple facets of market analysis in a single tool. The Zero Lag Hull Moving Average provides a responsive trend line, the ATR offers a measure of volatility that helps distinguish significant price shifts from typical fluctuations, and the VWAP acts as a reference for fair value based on traded volume. By layering all three, the script helps traders avoid the need to juggle multiple separate indicators and offers a holistic perspective. The slope-based coloring focuses on trend direction, the ATR-based thresholds refine possible buy and sell zones, and the VWAP ribbons provide insight into how price stands relative to an important volume-weighted level. The inclusion of up and down signals and reversal B labels further refines entries and exits.
4. Why Use Uptrick: Zero Lag HMA Trend Suite
The Hull Moving Average is already known for reacting more quickly to price changes compared to other moving averages while retaining a degree of smoothness. This suite enhances the basic HMA by showing colored gradients that make it easy to spot trend direction changes, highlighting potential entry or exit points based on volatility-driven thresholds, and optionally layering a volume-based measure of bullish or bearish market sentiment. By relying on a zero lag approach and additional data points, the script caters to those wanting a more responsive method of identifying shifts in market dynamics. The added reversal signals and up or down alerts give traders extra confirmation for potential turning points.
5. How This Extension Improves on the Basic HMA
This extension not only plots the Hull Moving Average but also includes data-driven alerts and visual cues that traditional HMA lines do not provide. First, it offers multi-layered slope coloring, making up or down trends quickly apparent. Second, it uses ATR-based thresholds to pinpoint moments when price may be extending beyond normal volatility, thus generating buy or sell signals. Third, the script introduces an optional VWAP ribbon to indicate whether the market is trading above or below this pivotal volume-weighted benchmark, adding a further confirmation step for bullish or bearish conditions. Finally, it incorporates optional reversal signals labeled with B, indicating points where price might swing back toward the main HMA line.
6. Core Components
The script can be broken down into several primary functions and features.
a. Zero Lag HMA Calculation
Uses two Weighted Moving Averages (half-length and full-length) combined through a smoothing step based on the square root of the chosen length. This approach is designed to reduce lag significantly compared to other moving averages.
b. Slope Detection
Compares current and prior HMA values to determine if the trend is up or down. The slope-based coloring changes between turquoise shades for upward movement and magenta shades for downward movement, making trend direction immediately visible.
c. ATR-Based Thresholding for Up and Down Signals
The script calculates an Average True Range over a user-defined period, then multiplies it by a signal factor to form two bands around the HMA. When price crosses below the lower band, an up (buy) signal appears; when it crosses above the upper band, a down (sell) signal is shown.
d. Reversal Signals (B Labels)
Tracks when price transitions back toward the main HMA from an extreme zone. When enabled, these reversal points are labeled with a B and can help traders see potential turning points or mean-reversion setups.
e. VWAP Bands
An optional Volume Weighted Average Price ribbon that plots above or below the HMA, indicating bullish or bearish conditions relative to a volume-weighted price benchmark. This can also act as a kind of support/ resistance.
7. User Inputs
a. HMA Length
Controls how quickly the moving average responds to price changes. Shorter lengths react faster but can lead to more frequent signals, whereas longer lengths produce smoother lines.
b. Source
Specifies the price input, such as close or an alternative source, for the calculation. This can help align the HMA with specific trading strategies.
c. ATR Length and Signal Multiplier
Defines how the script calculates average volatility and sets thresholds for buy or sell alerts. Adjusting these values can help filter out noise or highlight more aggressive signals.
d. Slope Index
Determines how many bars to look back for detecting slope direction, influencing how sensitive the slope coloring is to small fluctuations.
e. Show Buy and Sell Signals, Reversal Signals, and VWAP
Lets users toggle the display of these features. Turning off certain elements can reduce chart clutter if traders prefer a simpler layout.
8. Calculation Process
The script’s calculation follows a step-by-step approach. It first computes two Weighted Moving Averages of the selected price source, one over half the specified length and one over the full length. It then combines these using 2*wma1 minus wma2 to reduce lag, followed by applying another weighted average using the square root of the length. Simultaneously, it computes the ATR for a user-defined period. By multiplying ATR by the signal multiplier, it establishes upper and lower bands around the HMA, where crossovers generate buy (up) or sell (down) signals. The script can also plot reversal signals (B labels) when price crosses back from these bands in the opposite direction. For the optional VWAP feature, Pine Script’s ta.vwap function is used, and differences between the HMA and VWAP levels determine the color and opacity of the ribbon.
9. Signal Generation and Filtering
The ATR-based thresholds reduce the influence of small, inconsequential price swings. When price falls below the lower band, the script issues an up (buy) signal. If price breaks above the upper band, a down (sell) signal appears. These signals are visible through labels placed near the bars. Reversal signals, labeled with B, can be turned on to help detect when price retraces from an extended area back toward the main HMA line. Traders can disable or enable these signals to match their preferred level of chart detail or risk tolerance.
10. Visualization on the Chart
The Zero HMA Lag Trend Suite aims for visual clarity. The HMA line is plotted multiple times with increasing transparency to create a gradient effect. Turquoise gradients indicate upward slopes, and magenta gradients signify downward slopes. Bar coloring can be configured to align with the slope direction, providing quick insight into current momentum. When enabled, buy or sell labels are placed under or above the bars as price crosses the ATR-defined boundaries. If the reversal option is active, B labels appear around areas where price changes direction. The optional VWAP ribbons form background bands, using distinct coloration to signal whether price is above or below the volume-weighted metric.
11. Market Adaptability
Because the script’s parameters (HMA length, ATR length, signal multiplier, and slope index) are user-configurable, it can adapt to a wide range of markets and timeframes. Intraday traders may prefer a shorter HMA length for quick signals, while swing or position traders might use a longer HMA length to filter out short-lived price changes. The source setting can also be adjusted, allowing for specialized data inputs beyond just close or open values.
12. Risk Management Considerations
The script’s signals and labels are based on past price data and volatility readings, and they do not guarantee profitable outcomes. Sharp market reversals or unforeseen fundamental events can produce false signals. Traders should combine this tool with broader risk management strategies, including stop-loss placement, position sizing, and independent market analyses. The Zero HMA Lag Trend Suite can help highlight potential opportunities, but it should not be relied upon as the sole basis for trade decisions.
13. Combining with Other Tools
Many traders choose to verify signals from the Zero HMA Lag Trend Suite using popular indicators like the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), or even simple volume-based metrics to confirm whether a price movement has sufficient momentum. Conventional techniques such as support and resistance levels, chart patterns, or candlestick analysis can also supplement signals generated by the script’s up, down, or reversal B labels.
14. Parameter Customization and Examples
a. Short-Term Day Trading
Using a shorter HMA length (for instance, 9 or 14) and a slightly higher ATR multiplier might provide timely buy and sell signals, though it may also produce more whipsaws in choppy markets.
b. Swing or Position Trading
Selecting a longer HMA length (such as 50 or 100) with a moderate ATR multiplier can help users track more significant and sustained market moves, potentially reducing the effect of minor fluctuations.
c. Multiple Timeframe Blends
Some traders load two versions of the indicator on the same chart, one for short-term signals (with frequent B label reversals) and another for the broader trend direction, aligning entry and exit decisions with the bigger picture.
15. Realistic Expectations
Even though the Hull Moving Average helps minimize lag and the script incorporates volatility-based filters and optional VWAP overlays, it cannot predict future market behavior with complete accuracy. Periods of low liquidity or sudden market shocks can still lead to signals that do not reflect longer-term trends. Frequent parameter review and manual confirmation are advised before executing trades based solely on the script’s outputs.
16. Theoretical Background
The Hull Moving Average formula aims to balance smoothness with reactivity, accomplished by combining Weighted Moving Averages at varying lengths. By subtracting a slower average from a faster one and then applying another smoothing step with the square root of the original length, the HMA is designed to respond more promptly to price changes than typical exponential or simple moving averages. The ATR component, introduced by J. Welles Wilder, calculates the average range of price movement over a user-defined period, allowing the script to assess volatility and adapt signals accordingly. VWAP provides a volume-weighted benchmark that many institutional traders track to gauge fair intraday value.
17. Originality and Uniqueness
Although multiple HMA-based indicators can be found, Uptrick: Zero Lag HMA Trend Suite sets itself apart by merging slope-based coloring, ATR thresholds, VWAP ribbons, up or down labels, and optional reversal signals all in one cohesive platform. This synergy aims to reduce chart clutter while still giving traders a comprehensive look at trend direction, volatility, and volume-based sentiment.
18. Summary
Uptrick: Zero Lag HMA Trend Suite is a specialized trading script designed to highlight potential market trends and reversals with minimal delay. It leverages the Hull Moving Average for an adaptive yet smooth price line, pairs ATR-based thresholds for detecting possible breakouts or dips, and provides VWAP-based ribbons for added volume-weighted context. Traders can further refine their entries and exits by enabling up or down signals and reversal labels (B) where price may revert toward the HMA. Suitable for a wide range of timeframes and instrument types, the script encourages a disciplined approach to trade management and risk control.
19. Disclaimer
This script is provided for informational and educational purposes only. Trading and investing involve significant financial risk, and no indicator can guarantee success under all conditions. Users should practice robust risk management, including the placement of stop losses and position sizing, and should confirm signals with additional analysis tools. The developer of this script assumes no liability for any trading decisions or outcomes resulting from its use.
Composite Indicator (CCI + ATR)Composite Indicator (CCI + ATR)
The Composite Indicator (CCI + ATR) combines the Commodity Channel Index (CCI) with the Average True Range (ATR) , providing traders with a dynamic tool for identifying entry and exit points based on momentum and volatility. This indicator is particularly useful for markets like cryptocurrencies, which often exhibit sharp sell-offs and gradual upward trends.
Key Features
Momentum Analysis with CCI: The CCI calculates price momentum by comparing the current price level to its average over a specific period. The indicator generates signals when CCI crosses predefined thresholds.
- Buy Signal: Triggered when CCI crosses above the lower threshold (e.g., -100).
- Sell Signal: Triggered when CCI crosses below the upper threshold (e.g., +100).
Volatility Filtering with ATR: The ATR measures market volatility, ensuring signals occur only during significant price movements.
Separate multipliers for buy and sell signals allow tailored filtering based on market behavior.
Stop Loss Calculation: Dynamic stop loss levels are calculated using the ATR multiplier to adapt to market volatility, offering better risk management.
How It Works
CCI Calculation: The CCI is calculated using the typical price ((High + Low + Close) / 3) and a user-defined length. It detects momentum changes by measuring deviations from the average price.
ATR Calculation: The ATR determines the average price range over a specified period, identifying the market’s volatility. The ATR SMA acts as a baseline to filter signals.
Buy Signal: A buy signal is triggered when:
- CCI crosses above the lower threshold (e.g., -100).
- ATR exceeds its SMA multiplied by the buy multiplier (e.g., 1.0).
Sell Signal: A sell signal is triggered when:
- CCI crosses below the upper threshold (e.g., +100).
- ATR exceeds its SMA multiplied by the sell multiplier (e.g., 0.95).
Stop Loss Integration:
- Long positions: Stop loss = Low – (ATR * ATR Multiplier)
- Short positions: Stop loss = High + (ATR * ATR Multiplier)
Advantages
Combines momentum (CCI) and volatility (ATR) for precise signal generation.
Customizable thresholds and multipliers for different market conditions.
Dynamic stop loss ensures better risk management in volatile markets.
Suggested Parameter Settings
CCI Length: 20 (default). Adjust as follows:
- 10–15: Shorter timeframes (e.g., 5-15 minutes).
- 20: General use for 1-hour timeframes.
- 30–50: Longer timeframes (e.g., 4-hour or daily charts).
CCI Threshold: 100 (default). Adjust as follows:
- 50–75: For more frequent signals in ranging markets.
- 100: Balanced for most trading conditions.
- 150–200: For strong trends to reduce noise.
ATR Length: 14 (default). Adjust as follows:
- 10–14: For assets with moderate volatility.
- 20: For assets with lower volatility.
ATR Buy Multiplier: 1.0 (default). Adjust as follows:
- 0.9–1.0: For gradual uptrends in crypto markets.
- 1.1–1.2: For stronger trend filtering.
ATR Sell Multiplier: 0.95 (default). Adjust as follows:
- 0.8–0.95: For sharp sell-offs.
- 1.0–1.1: For stable downward trends.
ATR Multiplier (Stop Loss): 1.5 (default). Adjust as follows:
- 1.0–1.2: For shorter timeframes or less volatile markets.
- 2.0–2.5: For highly volatile markets like cryptocurrencies.
Example Use Cases
Scalping (5-15 minute charts): Use CCI Length = 10, CCI Threshold = 75, ATR Buy Multiplier = 0.9, ATR Sell Multiplier = 0.8.
Day Trading (1-hour charts): Use CCI Length = 20, CCI Threshold = 100, ATR Buy Multiplier = 1.0, ATR Sell Multiplier = 0.95.
Swing Trading (4-hour or daily charts): Use CCI Length = 30, CCI Threshold = 150, ATR Buy Multiplier = 1.2, ATR Sell Multiplier = 1.0.
Final Thoughts The Composite Indicator (CCI + ATR) is a versatile tool designed to enhance trading decisions by combining momentum analysis with volatility filtering. Whether scalping or swing trading, this indicator provides actionable insights and robust risk management to navigate complex markets effectively.
Volume profile [Signals] - By Leviathan [Mindyourbuisness]Market Sessions and Volume Profile with Sweep Signals - Based on Leviathan's Volume Profile
This indicator is an enhanced version of Leviathan's Volume Profile indicator, adding session-based value area analysis and sweep detection signals. It combines volume profile analysis with market structure concepts to identify potential reversal opportunities.
Features
- Session-based volume profiles (Daily, Weekly, Monthly, Quarterly, Yearly)
- Forex sessions support (Tokyo, London, New York)
- Value Area analysis with POC, VAH, and VAL levels
- Extended level visualization for the last completed session
- Sweep detection signals for key value area levels
Sweep Signals Explanation
The indicator detects two types of sweeps at VAH, VAL, and POC levels:
Bearish Sweeps (Red Triangle Down)
Conditions:
- Price makes a high above the level (VAH/VAL/POC)
- Closes below the level
- Closes below the previous candle's low
- Previous candle must be bullish
Trading Implication: Suggests a failed breakout and potential reversal to the downside. These sweeps often indicate stop-loss hunting above key levels followed by institutional selling.
Bullish Sweeps (Green Triangle Up)
Conditions:
- Price makes a low below the level (VAH/VAL/POC)
- Closes above the level
- Closes above the previous candle's high
- Previous candle must be bearish
Trading Implication: Suggests a failed breakdown and potential reversal to the upside. These sweeps often indicate stop-loss hunting below key levels followed by institutional buying.
Trading Guidelines
1. Use sweep signals in conjunction with the overall trend
2. Look for additional confirmation like:
- Volume surge during the sweep
- Price action patterns
- Support/resistance levels
3. Consider the session's volatility and time of day
4. More reliable signals often occur at VAH and VAL levels
5. POC sweeps might indicate stronger reversals due to their significance as fair value levels
Notes
- The indicator works best on higher timeframes (1H and above)
- Sweep signals are more reliable during active market hours
- Consider using multiple timeframe analysis for better confirmation
- Past performance is not indicative of future results
Credits: Original Volume Profile indicator by Leviathan
Sunil BB Blast Heikin Ashi StrategySunil BB Blast Heikin Ashi Strategy
The Sunil BB Blast Heikin Ashi Strategy is a trend-following trading strategy that combines Bollinger Bands with Heikin-Ashi candles for precise market entries and exits. It aims to capitalize on price volatility while ensuring controlled risk through dynamic stop-loss and take-profit levels based on a user-defined Risk-to-Reward Ratio (RRR).
Key Features:
Trading Window:
The strategy operates within a user-defined time window (e.g., from 09:20 to 15:00) to align with market hours or other preferred trading sessions.
Trade Direction:
Users can select between Long Only, Short Only, or Long/Short trade directions, allowing flexibility depending on market conditions.
Bollinger Bands:
Bollinger Bands are used to identify potential breakout or breakdown zones. The strategy enters trades when price breaks through the upper or lower Bollinger Band, indicating a possible trend continuation.
Heikin-Ashi Candles:
Heikin-Ashi candles help smooth price action and filter out market noise. The strategy uses these candles to confirm trend direction and improve entry accuracy.
Risk Management (Risk-to-Reward Ratio):
The strategy automatically adjusts the take-profit (TP) level and stop-loss (SL) based on the selected Risk-to-Reward Ratio (RRR). This ensures that trades are risk-managed effectively.
Automated Alerts and Webhooks:
The strategy includes automated alerts for trade entries and exits. Users can set up JSON webhooks for external execution or trading automation.
Active Position Tracking:
The strategy tracks whether there is an active position (long or short) and only exits when price hits the pre-defined SL or TP levels.
Exit Conditions:
The strategy exits positions when either the take-profit (TP) or stop-loss (SL) levels are hit, ensuring risk management is adhered to.
Default Settings:
Trading Window:
09:20-15:00
This setting confines the strategy to the specified hours, ensuring trading only occurs during active market hours.
Strategy Direction:
Default: Long/Short
This allows for both long and short trades depending on market conditions. You can select "Long Only" or "Short Only" if you prefer to trade in one direction.
Bollinger Band Length (bbLength):
Default: 19
Length of the moving average used to calculate the Bollinger Bands.
Bollinger Band Multiplier (bbMultiplier):
Default: 2.0
Multiplier used to calculate the upper and lower bands. A higher multiplier increases the width of the bands, leading to fewer but more significant trades.
Take Profit Multiplier (tpMultiplier):
Default: 2.0
Multiplier used to determine the take-profit level based on the calculated stop-loss. This ensures that the profit target aligns with the selected Risk-to-Reward Ratio.
Risk-to-Reward Ratio (RRR):
Default: 1.0
The ratio used to calculate the take-profit relative to the stop-loss. A higher RRR means larger profit targets.
Trade Automation (JSON Webhooks):
Allows for integration with external systems for automated execution:
Long Entry JSON: Customizable entry condition for long positions.
Long Exit JSON: Customizable exit condition for long positions.
Short Entry JSON: Customizable entry condition for short positions.
Short Exit JSON: Customizable exit condition for short positions.
Entry Logic:
Long Entry:
The strategy enters a long position when:
The Heikin-Ashi candle shows a bullish trend (green close > open).
The price is above the upper Bollinger Band, signaling a breakout.
The previous candle also closed higher than it opened.
Short Entry:
The strategy enters a short position when:
The Heikin-Ashi candle shows a bearish trend (red close < open).
The price is below the lower Bollinger Band, signaling a breakdown.
The previous candle also closed lower than it opened.
Exit Logic:
Take-Profit (TP):
The take-profit level is calculated as a multiple of the distance between the entry price and the stop-loss level, determined by the selected Risk-to-Reward Ratio (RRR).
Stop-Loss (SL):
The stop-loss is placed at the opposite Bollinger Band level (lower for long positions, upper for short positions).
Exit Trigger:
The strategy exits a trade when either the take-profit or stop-loss level is hit.
Plotting and Visuals:
The Heikin-Ashi candles are displayed on the chart, with green candles for uptrends and red candles for downtrends.
Bollinger Bands (upper, lower, and basis) are plotted for visual reference.
Entry points for long and short trades are marked with green and red labels below and above bars, respectively.
Strategy Alerts:
Alerts are triggered when:
A long entry condition is met.
A short entry condition is met.
A trade exits (either via take-profit or stop-loss).
These alerts can be used to trigger notifications or webhook events for automated trading systems.
Notes:
The strategy is designed for use on intraday charts but can be applied to any timeframe.
It is highly customizable, allowing for tailored risk management and trading windows.
The Sunil BB Blast Heikin Ashi Strategy combines two powerful technical analysis tools (Bollinger Bands and Heikin-Ashi candles) with strong risk management, making it suitable for both beginners and experienced traders.
Feebacks are welcome from the users.
Multi-Timeframe Volatility ATR - [by Oberlunar]This script (for now in beta release) is specifically designed for scalping or traders operating on lower timeframes (if you are in a timeframe of one minute wait one minute to collect statistics). Its primary purpose is to provide detailed insights into market volatility by calculating the ATR (Average True Range) and its percentage changes, allowing traders to quickly identify shifts in market conditions.
The ATR is calculated across six user-defined timeframes, which can include very short intervals such as 5 or 15 seconds. This setup enables real-time monitoring of volatility, which is critical for scalping strategies. The script collects a rolling history of the last five ATR values for each timeframe. These historical values are used to calculate percentage changes by comparing the current ATR with the oldest value in the history, offering a clear view of how volatility is evolving over time.
Percentage changes are displayed dynamically in a table, with color-coded feedback to indicate the direction of the change: green for increases, red for decreases, and gray for stability or insufficient data. This visual representation makes it easy to spot whether market volatility is rising or falling at a glance.
By progressively collecting data, the script becomes increasingly effective as more ATR values are accumulated. This functionality is especially useful for traders on lower timeframes, where rapid changes in volatility can signal breakout opportunities or shifts in market dynamics.
Soon I will update personalized ATR parameters, and lookback strategies for statistics.
Dynamic Intensity Transition Oscillator (DITO)The Dynamic Intensity Transition Oscillator (DITO) is a comprehensive indicator designed to identify and visualize the slope of price action normalized by volatility, enabling consistent comparisons across different assets. This indicator calculates and categorizes the intensity of price movement into six states—three positive and three negative—while providing visual cues and alerts for state transitions.
Components and Functionality
1. Slope Calculation
- The slope represents the rate of change in price action over a specified period (Slope Calculation Period).
- It is calculated as the difference between the current price and the simple moving average (SMA) of the price, divided by the length of the period.
2. Normalization Using ATR
- To standardize the slope across assets with different price scales and volatilities, the slope is divided by the Average True Range (ATR).
- The ATR ensures that the slope is comparable across assets with varying price levels and volatility.
3. Intensity Levels
- The normalized slope is categorized into six distinct intensity levels:
High Positive: Strong upward momentum.
Medium Positive: Moderate upward momentum.
Low Positive: Weak upward movement or consolidation.
Low Negative: Weak downward movement or consolidation.
Medium Negative: Moderate downward momentum.
High Negative: Strong downward momentum.
4. Visual Representation
- The oscillator is displayed as a histogram, with each intensity level represented by a unique color:
High Positive: Lime green.
Medium Positive: Aqua.
Low Positive: Blue.
Low Negative: Yellow.
Medium Negative: Purple.
High Negative: Fuchsia.
Threshold levels (Low Intensity, Medium Intensity) are plotted as horizontal dotted lines for visual reference, with separate colors for positive and negative thresholds.
5. Intensity Table
- A dynamic table is displayed on the chart to show the current intensity level.
- The table's text color matches the intensity level color for easy interpretation, and its size and position are customizable.
6. Alerts for State Transitions
- The indicator includes a robust alerting system that triggers when the intensity level transitions from one state to another (e.g., from "Medium Positive" to "High Positive").
- The alert includes both the previous and current states for clarity.
Inputs and Customization
The DITO indicator offers a variety of customizable settings:
Indicator Parameters
Slope Calculation Period: Defines the period over which the slope is calculated.
ATR Calculation Period: Defines the period for the ATR used in normalization.
Low Intensity Threshold: Threshold for categorizing weak momentum.
Medium Intensity Threshold: Threshold for categorizing moderate momentum.
Intensity Table Settings
Table Position: Allows you to position the intensity table anywhere on the chart (e.g., "Bottom Right," "Top Left").
Table Size: Enables customization of table text size (e.g., "Small," "Large").
Use Cases
Trend Identification:
- Quickly assess the strength and direction of price movement with color-coded intensity levels.
Cross-Asset Comparisons:
- Use the normalized slope to compare momentum across different assets, regardless of price scale or volatility.
Dynamic Alerts:
- Receive timely alerts when the intensity transitions, helping you act on significant momentum changes.
Consolidation Detection:
- Identify periods of low intensity, signaling potential reversals or breakout opportunities.
How to Use
- Add the indicator to your chart.
- Configure the input parameters to align with your trading strategy.
Observe:
The Oscillator: Use the color-coded histogram to monitor price action intensity.
The Intensity Table: Track the current intensity level dynamically.
Alerts: Respond to state transitions as notified by the alerts.
Final Notes
The Dynamic Intensity Transition Oscillator (DITO) combines trend strength detection, cross-asset comparability, and real-time alerts to offer traders an insightful tool for analyzing market conditions. Its user-friendly visualization and comprehensive alerting make it suitable for both novice and advanced traders.
Disclaimer: This indicator is for educational purposes and is not financial advice. Always perform your own analysis before making trading decisions.