Monday RangeThis indicator highlights the high and low of the previous Monday on the chart, making it easy to identify key levels for the start of the trading week.
Trend Analysis
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.
Zero Lag Signals (Pine Script) - CorrectedZero-Lag EMA: It calculates a zero-lag EMA using a custom function. This type of EMA aims to reduce lag compared to a traditional EMA, providing a more responsive indicator of price movement.
Volatility: It calculates volatility using the Average True Range (ATR) indicator and a user-defined multiplier.
Angle: It calculates the angle of the zero-lag EMA by comparing its current value to its value 10 bars ago. This helps determine the trend and momentum of the price.
Buy/Sell Signals:
Buy Signal: Triggered when the angle of the zero-lag EMA is above a certain threshold and the current price is above the EMA.
Sell Signal: Triggered when the angle of the zero-lag EMA is below a certain threshold and the current price is below the EMA.
Key Features:
Zero-Lag EMA: Reduces lag for a more responsive indicator.
Volatility Bands: Helps identify potential entry and exit points based on volatility.
Angle Calculation: Provides insights into the trend and momentum of the price.
Customizable Parameters: Allows users to adjust the length of the EMA, volatility multiplier, and signal angle threshold.
Visual Signals and Alerts: Displays buy and sell signals on the chart and triggers alerts.
This indicator can be used to:
Identify potential buy and sell opportunities in trending markets.
Filter out false signals in choppy markets.
Confirm the strength of a trend.
Time entries and exits based on momentum and volatility.
Fshariar_Enhanced Quasimodo Pattern**Enhanced Quasimodo Pattern Indicator**
The **Enhanced Quasimodo Pattern Indicator** is a powerful technical analysis tool designed for **TradingView** users. This script identifies the **Quasimodo pattern**, a key reversal formation used by professional traders to anticipate market turning points with high accuracy.
### **Features:**
✅ **Quasimodo Pattern Detection**: Automatically spots **bullish and bearish Quasimodo setups** on the chart.
✅ **Multi-Confirmation Signals**: Incorporates **RSI divergence, volume spikes, and trend filters** to enhance reliability.
✅ **Fibonacci-Based Entry & Exit**: Uses **61.8% and 78.6% Fibonacci retracement levels** for optimal trade entries.
✅ **Dynamic Take Profit & Stop Loss Levels**: Plots **161.8% Fibonacci extensions** as TP targets and SL based on the X-point.
✅ **Multi-Timeframe Trend Analysis**: Uses **EMA 50 & EMA 200** to filter trades in line with the prevailing trend.
✅ **Real-Time Alerts**: Get notified instantly when a **buy or sell signal** is detected.
### **How It Works:**
- **Bearish Quasimodo (Sell Signal)**: Triggered when a higher high is followed by a lower low, indicating a reversal.
- **Bullish Quasimodo (Buy Signal)**: Triggered when a lower low is followed by a higher high, signaling a potential uptrend.
- **Confirmation Criteria**: RSI divergence, volume spikes, and EMA-based trend analysis help filter out false signals.
### **Who Can Benefit?**
- **Day Traders & Swing Traders** looking for high-probability reversal setups.
- **Price Action Traders** who rely on **support & resistance** structures.
- **Fibonacci Traders** seeking **retracement & extension-based entries.**
This indicator is fully customizable, allowing traders to adjust **swing length, RSI settings, and Fibonacci levels** to match their trading strategy. 🚀
📌 **Try it on your TradingView chart today and enhance your technical analysis!**
Developed by **FShariar**
THE EDGE FXThis indicator is designed to enhance chart organization for traders by providing essential tools for analysis and time management. Key features include:
1. Notes and Watermarks:
- Allows traders to add customizable notes and watermarks directly on the chart for better information tracking and organization.
2. Unique Day and Week Separation:
- Dynamically separates days and weeks based on the selected UTC timezone. This feature is ideal for global traders managing different time zones and ensures accurate time segmentation on the chart.
3. Fractal Marking:
- Automatically highlights fractal points on the chart, helping traders identify potential reversal or continuation zones based on classic fractal analysis principles.
How It Works:
- The indicator overlays additional visual elements on the chart without altering the underlying data.
- Time segmentation is achieved using an algorithm that adapts to the selected UTC timezone for clear and accurate visualization.
- Fractal detection follows standard technical analysis rules to identify key price levels.
Usage Instructions:
- Add the indicator to your chart and configure the settings for your preferred timezone.
- Use the notes feature to save and display critical information directly on the chart.
- Utilize fractal markings to analyze potential turning points and market trends.
This indicator provides a streamlined way to manage your chart annotations and fractal analysis, making it an essential tool for both intraday and swing traders.
Relative Strength - MNOPPlotting relative strength for Daily, Weekly and Monthly chart of a current script against two scripts (can use indexes)
Johnny's Machine Learning Moving Average (MLMA) w/ Trend Alerts📖 Overview
Johnny's Machine Learning Moving Average (MLMA) w/ Trend Alerts is a powerful adaptive moving average indicator designed to capture market trends dynamically. Unlike traditional moving averages (e.g., SMA, EMA, WMA), this indicator incorporates volatility-based trend detection, Bollinger Bands, ADX, and RSI, offering a comprehensive view of market conditions.
The MLMA is "machine learning-inspired" because it adapts dynamically to market conditions using ATR-based windowing and integrates multiple trend strength indicators (ADX, RSI, and volatility bands) to provide an intelligent moving average calculation that learns from recent price action rather than being static.
🛠 How It Works
1️⃣ Adaptive Moving Average Selection
The MLMA automatically selects one of four different moving averages:
📊 EMA (Exponential Moving Average) – Reacts quickly to price changes.
🔵 HMA (Hull Moving Average) – Smooth and fast, reducing lag.
🟡 WMA (Weighted Moving Average) – Gives recent prices more importance.
🔴 VWAP (Volume Weighted Average Price) – Accounts for volume impact.
The user can select which moving average type to use, making the indicator customizable based on their strategy.
2️⃣ Dynamic Trend Detection
ATR-Based Adaptive Window 📏
The Average True Range (ATR) determines the window size dynamically.
When volatility is high, the moving average window expands, making the MLMA more stable.
When volatility is low, the window shrinks, making the MLMA more responsive.
Trend Strength Filters 📊
ADX (Average Directional Index) > 25 → Indicates a strong trend.
RSI (Relative Strength Index) > 70 or < 30 → Identifies overbought/oversold conditions.
Price Position Relative to Upper/Lower Bands → Determines bullish vs. bearish momentum.
3️⃣ Volatility Bands & Dynamic Support/Resistance
Bollinger Bands (BB) 📉
Uses standard deviation-based bands around the MLMA to detect overbought and oversold zones.
Upper Band = Resistance, Lower Band = Support.
Helps traders identify breakout potential.
Adaptive Trend Bands 🔵🔴
The MLMA has built-in trend envelopes.
When price breaks the upper band, bullish momentum is confirmed.
When price breaks the lower band, bearish momentum is confirmed.
4️⃣ Visual Enhancements
Dynamic Gradient Fills 🌈
The trend strength (ADX-based) determines the gradient intensity.
Stronger trends = More vivid colors.
Weaker trends = Lighter colors.
Trend Reversal Arrows 🔄
🔼 Green Up Arrow: Bullish reversal signal.
🔽 Red Down Arrow: Bearish reversal signal.
Trend Table Overlay 🖥
Displays ADX, RSI, and Trend State dynamically on the chart.
📢 Trading Signals & How to Use It
1️⃣ Bullish Signals 📈
✅ Conditions for a Long (Buy) Trade:
The MLMA crosses above the lower band.
The ADX is above 25 (confirming trend strength).
RSI is above 55, indicating positive momentum.
Green trend reversal arrow appears (confirmation of a bullish reversal).
🔹 How to Trade It:
Enter a long trade when the MLMA turns bullish.
Set stop-loss below the lower Bollinger Band.
Target previous resistance levels or use the upper band as take-profit.
2️⃣ Bearish Signals 📉
✅ Conditions for a Short (Sell) Trade:
The MLMA crosses below the upper band.
The ADX is above 25 (confirming trend strength).
RSI is below 45, indicating bearish pressure.
Red trend reversal arrow appears (confirmation of a bearish reversal).
🔹 How to Trade It:
Enter a short trade when the MLMA turns bearish.
Set stop-loss above the upper Bollinger Band.
Target the lower band as take-profit.
💡 What Makes This a Machine Learning Moving Average?
📍 1️⃣ Adaptive & Self-Tuning
Unlike static moving averages that rely on fixed parameters, this MLMA automatically adjusts its sensitivity to market conditions using:
ATR-based dynamic windowing 📏 (Expands/contracts based on volatility).
Adaptive smoothing using EMA, HMA, WMA, or VWAP 📊.
Multi-indicator confirmation (ADX, RSI, Volatility Bands) 🏆.
📍 2️⃣ Intelligent Trend Confirmation
The MLMA "learns" from recent price movements instead of blindly following a fixed-length average.
It incorporates ADX & RSI trend filtering to reduce noise & false signals.
📍 3️⃣ Dynamic Color-Coding for Trend Strength
Strong trends trigger more vivid colors, mimicking confidence levels in machine learning models.
Weaker trends appear faded, suggesting uncertainty.
🎯 Why Use the MLMA?
✅ Pros
✔ Combines multiple trend indicators (MA, ADX, RSI, BB).
✔ Automatically adjusts to market conditions.
✔ Filters out weak trends, making it more reliable.
✔ Visually intuitive (gradient colors & reversal arrows).
✔ Works across all timeframes and assets.
⚠️ Cons
❌ Not a standalone strategy → Best used with volume confirmation or candlestick analysis.
❌ Can lag slightly in fast-moving markets (due to smoothing).
VWAP Bands with ML [CryptoSea]VWAP Machine Learning Bands is an advanced indicator designed to enhance trading analysis by integrating VWAP with a machine learning-inspired adaptive smoothing approach. This tool helps traders identify trend-based support and resistance zones, predict potential price movements, and generate dynamic trade signals.
Key Features
Adaptive ML VWAP Calculation: Uses a dynamically adjusted SMA-based VWAP model with volatility sensitivity for improved trend analysis.
Forecasting Mechanism: The 'Forecast' parameter shifts the ML output forward, providing predictive insights into potential price movements.
Volatility-Based Band Adjustments: The 'Sigma' parameter fine-tunes the impact of volatility on ML smoothing, adapting to market conditions.
Multi-Tier Standard Deviation Bands: Includes two levels of bands to define potential breakout or mean-reversion zones.
Dynamic Trend-Based Colouring: The VWAP and ML lines change colour based on their relative positions, visually indicating bullish and bearish conditions.
Custom Signal Detection Modes: Allows traders to choose between signals from Band 1, Band 2, or both, for more tailored trade setups.
In the image below, you can see an example of the bands on higher timeframe showing good mean reversion signal opportunities, these tend to work better in ranging markets rather than strong trending ones.
How It Works
VWAP & ML Integration: The script computes VWAP and applies a machine learning-inspired adjustment using SMA smoothing and volatility-based adaptation.
Forecasting Impact: The 'Forecast' setting shifts the ML output forward in time, allowing for anticipatory trend analysis.
Volatility Scaling (Sigma): Adjusts the ML smoothing sensitivity based on market volatility, providing more responsive or stable trend lines.
Trend Confirmation via Colouring: The VWAP line dynamically switches colour depending on whether it is above or below the ML output.
Multi-Level Band Analysis: Two standard deviation-based bands provide a framework for identifying breakouts, trend reversals, or continuation patterns.
In the example below, we can see some of the most reliable signals where we have mean reversion signals from the band whilst the price is also pulling back into the VWAP, these signals have the additional confluence which can give you a higher probabilty move.
Alerts
Bullish Signal Band 1: Alerts when the price crosses above the lower ML Band 1.
Bearish Signal Band 1: Alerts when the price crosses below the upper ML Band 1.
Bullish Signal Band 2: Alerts when the price crosses above the lower ML Band 2.
Bearish Signal Band 2: Alerts when the price crosses below the upper ML Band 2.
Filtered Bullish Signal: Alerts when a bullish signal is triggered based on the selected signal detection mode.
Filtered Bearish Signal: Alerts when a bearish signal is triggered based on the selected signal detection mode.
Application
Trend & Momentum Analysis: Helps traders identify key market trends and potential momentum shifts.
Dynamic Support & Resistance: Standard deviation bands serve as adaptive price zones for potential breakouts or reversals.
Enhanced Trade Signal Confirmation: The integration of ML smoothing with VWAP provides clearer entry and exit signals.
Customizable Risk Management: Allows users to adjust parameters for fine-tuned signal detection, aligning with their trading strategy.
The VWAP Machine Learning Bands indicator offers traders an innovative tool to improve market entries, recognize potential reversals, and enhance trend analysis with intelligent data-driven signals.
Instantaneous Trendline with Cloud Instantaneous Trendline with Cloud
Introduction & History
The Instantaneous Trendline was introduced by John Ehlers, a well-known figure in the field of technical analysis, particularly for applying digital signal processing concepts to financial markets. Ehlers aimed to create an indicator that reacts to market price changes more quickly than traditional moving averages, yet remains smooth enough to avoid excessive noise. By incorporating concepts from digital filtering, he devised a formula that calculates a trendline with minimal lag—hence the term “instantaneous.”
Purpose
The primary purpose of the Instantaneous Trendline with Cloud is to provide traders and analysts with a responsive, smoothed line that closely follows market price movements. Additionally, this script enhances the visual cues by adding a cloud fill to highlight bullish and bearish zones:
Trend Identification
The ITL (Instantaneous Trendline) is plotted alongside the price. When price consistently stays above the ITL, it may signal an uptrend. Conversely, when price dips below the ITL, it can suggest a downtrend.
Signal Generation
Crossover points between the price and the ITL can serve as potential entry or exit signals. A bullish crossover (price moving above the ITL) often indicates the start of upward momentum, while a bearish crossover (price dropping below the ITL) may point to downward momentum.
Noise Reduction
By applying digital filtering concepts and smoothing through the alpha (smoothing coefficient), the ITL reduces noise while still responding relatively quickly to price changes. Traders can adjust alpha to make the trendline more reactive (higher alpha) or smoother (lower alpha).
Clarity via Cloud Fill
A color-coded cloud between the price and the ITL provides an at-a-glance view of market bias. The green cloud highlights potentially bullish phases, while the red cloud highlights potentially bearish phases.
Experiment with the alpha value (commonly between 0.2 and 0.3) to find a balance that suits your preference for responsiveness versus smoothness.
This indicator implements John Ehlers’ Instantaneous Trendline concept and plots a smoothed trendline (ITL) alongside the price. The trendline is controlled by a user-defined smoothing coefficient (alpha). A higher alpha makes the trendline respond more quickly to price changes, while a lower alpha produces a smoother line.
A color-filled cloud helps traders identify bullish and bearish conditions:
Green cloud if the price is above the ITL (bullish potential).
Red cloud if the price is below the ITL (bearish potential).
Key Benefits
Trend Visualization: Quickly see if the market is in an uptrend or downtrend based on the position of the price relative to the trendline.
Crossover Signals: Identify potential shifts in trend or momentum when the price crosses the ITL.
Customizable Sensitivity: Adjust the alpha parameter to make the ITL more or less reactive to price moves. Use this tool to better visualize short-term trend changes and potential entry/exit signals in conjunction with other technical analysis methods.
Aj's DikFat Adjusted ADXRAj's DikFat Adjusted ADXR
This indicator is designed to plot the Average Directional Index (ADX) and Average Directional Movement Rating (ADXR) on the chart. The ADX and ADXR are both used to measure the strength of a trend in the market. The script allows you to customize several parameters, including the ADX Length and the Moving Average Method used for smoothing the directional movement indicators.
Key Features:
- ADX Length : Defines the number of periods over which the ADX is calculated. This value can be adjusted by the user to suit different trading styles and timeframes.
- Moving Average Method : Choose between several smoothing methods, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Wilder's Moving Average, Weighted Moving Average (WMA), Hull Moving Average (HMA), or a Super Smooth Moving Average.
- Directional Indicators : The script calculates the +DI and -DI, which represent the positive and negative directional indicators respectively. These are then used to calculate the ADX.
- ADXR : The ADXR is calculated as the average of the current ADX value and the ADX value from 14 periods ago, providing a more smoothed representation of the trend strength.
How Traders Use ADX and ADXR:
- ADX : A rising ADX indicates an increasing trend strength, while a falling ADX suggests a weakening trend. A value above 25 is often considered an indication of a strong trend.
- ADXR : This indicator smooths the ADX over time, helping traders identify persistent trends. The ADXR can help filter out noise and provide a clearer picture of the trend's health.
Please note that this script and its indicators are designed to be used as tools for analysis, not as guarantees of market outcomes. Adjustments to the moving average method or ADX length can change the behavior of the indicators based on market conditions.
Onky's DikFat Supreme Supply and Demand
Onky's DikFat Supreme Supply and Demand (DFAT S&D)
This indicator identifies and marks potential Demand and Supply zones based on sharp price movements and volume spikes. It is designed to assist traders in recognizing areas where price could potentially reverse or move impulsively, based on the concept of supply and demand.
Key Features:
- Dynamic Demand and Supply Zones : The indicator uses historical price data and sharp price movements to detect areas where demand or supply may be concentrated. The zones are drawn as boxes on the chart for visual reference.
- Volume Spike Detection : The zones are only marked when a volume spike occurs, indicating increased market activity and potentially stronger support or resistance at those levels.
- Adjustable Parameters : Traders can adjust the Zone Size to control the lookback period for detecting supply and demand zones, and can fine-tune the Volume Multiplier to control the sensitivity of volume spikes.
- Alerts : Alerts are available for both Demand and Supply zones when they are detected, allowing traders to be notified when price enters or reacts to these areas.
How Traders Use Supply and Demand Zones:
Supply and Demand Theory suggests that prices often move in response to the balance between the amount of supply (selling pressure) and demand (buying pressure) at specific price levels. When demand exceeds supply, prices tend to rise, and when supply exceeds demand, prices tend to fall.
1. Demand Zones : These are areas where price has previously fallen to a low point and buyers have stepped in, pushing prices higher. Traders may view these zones as potential areas for price to reverse upward again.
2. Supply Zones : These are areas where price has risen to a high point and sellers have stepped in, pushing prices lower. Traders may see these zones as potential areas for price to reverse downward again.
Traders use these zones to identify potential entry points (for buying in demand zones or selling in supply zones) and exit points (if price reaches these zones in the future). The volume spike further validates the strength of these zones, as it indicates heightened market interest at those levels.
This indicator offers a flexible, visual way to identify and act upon these market dynamics. It is neutral and does not guarantee any specific outcomes, but it may assist traders in recognizing important price levels where price action could change.
Disclaimer:
This indicator is provided for informational purposes only. It is not intended to be trading advice or a recommendation to buy or sell any financial instruments. Trading involves risk, and the use of this tool does not guarantee any specific results or profits. Past performance is not indicative of future results. Users are responsible for their own decisions and should seek independent financial advice before making any investment decisions.
Alinachi TrendI have Created Supertrend, Bollinger Bands, EMA with Smoothing Indicator
for Trading View you can use multiple indicators. only you need to be set indicator settings and use it.
we are trying to add more useful indicators in our code
MTF EMA crossover Sentiment - SimplifiedMTF EMA crossover Sentiment Exponential Moving Average (EMA full form in stock market) is a kind of moving average that places a greater weight and importance on the most current data points. It is used for evaluating the bullish and bearish trends in securities over a certain span of duration.
Stoc + Liq Zon + Buy/Sell Signals [5M/15M] RGUARDADOSV//@version=6
indicator("Stochastic + Liquidity Zones + Buy/Sell Signals ", overlay=true)
// Parámetros del Estocástico
stochLength = input.int(14, title="Stochastic Length")
kSmoothing = input.int(3, title="%K Smoothing")
dSmoothing = input.int(3, title="%D Smoothing")
overbought = input.int(80, title="Overbought Level")
oversold = input.int(20, title="Oversold Level")
// Calcular el Estocástico
k = ta.sma(ta.stoch(close, high, low, stochLength), kSmoothing)
d = ta.sma(k, dSmoothing)
// Condiciones de sobrecompra y sobreventa (Estocástico)
isOverbought = k >= overbought and d >= overbought
isOversold = k <= oversold and d <= oversold
// Identificar puntos de liquidez (soportes y resistencias)
liquidityLookback = input.int(20, title="Liquidity Lookback Period") // Ajusta según la temporalidad
recentHigh = ta.highest(high, liquidityLookback)
recentLow = ta.lowest(low, liquidityLookback)
// Dibujar soportes y resistencias
plot(recentHigh, color=color.new(color.red, 50), linewidth=2, title="Resistencia")
plot(recentLow, color=color.new(color.green, 50), linewidth=2, title="Soporte")
// Señales de compra y venta
buySignal = isOversold and close <= recentLow * 1.005 // Cerca de soporte y Estocástico en sobreventa
sellSignal = isOverbought and close >= recentHigh * 0.995 // Cerca de resistencia y Estocástico en sobrecompra
// Dibujar señales en el gráfico
plotshape(series=buySignal, location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY", size=size.small)
plotshape(series=sellSignal, location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL", size=size.small)
// Alertas para señales de compra y venta
alertcondition(buySignal, title="Buy Signal Alert", message="Buy Signal Detected!")
alertcondition(sellSignal, title="Sell Signal Alert", message="Sell Signal Detected!")
======================================================================
Qué Hace el Código
Estocástico:
Identifica condiciones de sobrecompra (Estocástico ≥ 80) y sobreventa (Estocástico ≤ 20).
Utiliza las líneas %K y %D para confirmar las señales.
Puntos de Liquidez:
Identifica niveles clave de soporte (mínimos recientes) y resistencia (máximos recientes).
Dibuja líneas horizontales en estos niveles.
Señales de Compra y Venta:
Compra (BUY): Cuando el Estocástico está en sobreventa y el precio está cerca de un soporte.
Venta (SELL): Cuando el Estocástico está en sobrecompra y el precio está cerca de una resistencia.
Visualización:
Las señales se muestran en el gráfico con etiquetas "BUY" (verde) y "SELL" (roja).
Alertas:
Genera alertas cuando se detectan señales de compra o venta.
Cómo Usar el Script
Señales de Compra (BUY):
Aparece cuando el Estocástico está en sobreventa (≤ 20) y el precio está cerca de un soporte.
Es una señal para considerar una posición larga.
Señales de Venta (SELL):
Aparece cuando el Estocástico está en sobrecompra (≥ 80) y el precio está cerca de una resistencia.
Es una señal para considerar una posición corta.
Stop-loss y Take-profit:
Para BUY: Coloca el stop-loss por debajo del soporte y el take-profit en el siguiente nivel de resistencia.
Para SELL: Coloca el stop-loss por encima de la resistencia y el take-profit en el siguiente nivel de soporte.
Ejemplo de Uso
En un gráfico de 5 minutos:
Si aparece una señal "BUY", es una oportunidad para entrar en largo.
Si aparece una señal "SELL", es una oportunidad para entrar en corto.
En un gráfico de 15 minutos:
Las señales son menos frecuentes pero más confiables. Espera confirmación adicional (por ejemplo, un patrón de velas o un rompimiento de nivel).
isikh1998sma 50 ema 200 vwap previous day high low close.................
add auto trendlines with it if you like
5-13-26-50-200All in one EMA.
I have added important EMAs in this script.
5,13 and 26 can be treated as short-term EMAs.
50 and 200 EMAs are can be used as long term.
Price Imbalance as Consecutive Levels of AveragesOverview
The Price Imbalance as Consecutive Levels of Averages indicator is an advanced technical analysis tool designed to identify and visualize price imbalances in financial markets. Unlike traditional moving average (MA) indicators that update continuously with each new price bar, this indicator employs moving averages calculated over consecutive, non-overlapping historical windows. This unique approach leverages comparative historical data to provide deeper insights into trend strength and potential reversals, offering traders a more nuanced understanding of market dynamics and reducing the likelihood of false signals or fakeouts.
Key Features
Consecutive Rolling Moving Averages: Utilizes three distinct simple moving averages (SMAs) calculated over consecutive, non-overlapping windows to capture different historical segments of price data.
Dynamic Color-Coded Visualization: SMA lines change color and style based on the relationship between the averages, highlighting both extreme and normal market conditions.
Median and Secondary Median Lines: Provides additional layers of price distribution insight during normal trend conditions through the plotting of primary and secondary median lines.
Fakeout Prevention: Filters out short-term volatility and sharp price movements by requiring consistent historical alignment of multiple moving averages.
Customizable Parameters: Offers flexibility to adjust SMA window lengths and line extensions to align with various trading strategies and timeframes.
Real-Time Updates with Historical Context: Continuously recalculates and updates SMA lines based on comparative historical windows, ensuring that the indicator reflects both current and past market conditions.
Inputs & Settings
Rolling Window Lengths:
Window 1 Length (Most Recent) Bars: Number of bars used to calculate the most recent SMA. (Default: 5, Range: 2–300)
Window 2 Length (Preceding) Bars: Number of bars for the second SMA, shifted by Window 1. (Default: 8, Range: 2–300)
Window 3 Length (Third Rolling) Bars: Number of bars for the third SMA, shifted by the combined lengths of Window 1 and Window 2. (Default: 13, Range: 2–300)
Horizontal Line Extension:
Horizontal Line Extension (Bars): Determines how far each SMA line extends horizontally on the chart. (Default: 10 bars, Range: 1–100)
Functionality and Theory
1. Calculating Consecutive Simple Moving Averages (SMAs):
The indicator calculates three SMAs, each based on distinct and consecutive historical windows of price data. This approach contrasts with traditional MAs that continuously update with each new price bar, offering a static view of past trends rather than an ongoing one.
Mean1 (SMA1): Calculated over the most recent Window 1 Length bars. Represents the short-term trend.
Mean1=∑i=1N1CloseiN1
Mean1=N1∑i=1N1Closei
Where N1N1 is the length of Window 1.
Mean2 (SMA2): Calculated over the preceding Window 2 Length bars, shifted back by Window 1 Length bars. Represents the medium-term trend.
\text{Mean2} = \frac{\sum_{i=1}^{N_2} \text{Close}_{i + N_1}}}{N_2}
Where N2N2 is the length of Window 2.
Mean3 (SMA3): Calculated over the third rolling Window 3 Length bars, shifted back by the combined lengths of Window 1 and Window 2 bars. Represents the long-term trend.
\text{Mean3} = \frac{\sum_{i=1}^{N_3} \text{Close}_{i + N_1 + N_2}}}{N_3}
Where N3N3 is the length of Window 3.
2. Determining Market Conditions:
The relationship between the three SMAs categorizes the market condition into either extreme or normal states, enabling traders to quickly assess trend strength and potential reversals.
Extreme Bullish:
Mean3Mean2>Mean1
Mean3>Mean2>Mean1
Indicates a strong and sustained downward trend. SMA lines are colored purple and styled as dashed lines.
Normal Bullish:
Mean1>Mean2andnot in extreme bullish condition
Mean1>Mean2andnot in extreme bullish condition
Indicates a standard upward trend. SMA lines are colored green and styled as solid lines.
Normal Bearish:
Mean1Mean2>Mean1
Mean3>Mean2>Mean1
Normal Bullish:
Mean1>Mean2andnot in Extreme Bullish
Mean1>Mean2andnot in Extreme Bullish
Normal Bearish:
Mean1 Mean2 > Mean3
Visualization: All three SMAs are displayed as gold dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained upward trend. Traders may consider entering long positions, confident in the trend's strength without the distraction of additional lines.
2. Normal Bullish Condition:
SMAs Alignment: Mean1 > Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are green solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms an upward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
3. Extreme Bearish Condition:
SMAs Alignment: Mean3 > Mean2 > Mean1
Visualization: All three SMAs are displayed as purple dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained downward trend. Traders may consider entering short positions, confident in the trend's strength without the distraction of additional lines.
4. Normal Bearish Condition:
SMAs Alignment: Mean1 < Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are red solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms a downward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
Customization and Flexibility
The Price Imbalance as Consecutive Levels of Averages indicator is highly adaptable, allowing traders to tailor it to their specific trading styles and market conditions through adjustable parameters:
SMA Window Lengths: Modify the lengths of Window 1, Window 2, and Window 3 to capture different historical trend segments, whether focusing on short-term fluctuations or long-term movements.
Line Extension: Adjust the horizontal extension of SMA and median lines to align with different trading horizons and chart preferences.
Color and Style Preferences: While default colors and styles are optimized for clarity, traders can customize these elements to match their personal chart aesthetics and enhance visual differentiation.
This flexibility ensures that the indicator remains versatile and applicable across various markets, asset classes, and trading strategies, providing valuable insights tailored to individual trading needs.
Conclusion
The Price Imbalance as Consecutive Levels of Averages indicator offers a comprehensive and innovative approach to analyzing price trends and imbalances within financial markets. By utilizing three consecutive, non-overlapping SMAs and incorporating median lines during normal trend conditions, the indicator provides clear and actionable insights into trend strength and price distribution. Its unique design leverages comparative historical data, distinguishing it from traditional moving averages and enhancing its utility in identifying genuine market movements while minimizing false signals. This dynamic and customizable tool empowers traders to refine their technical analysis, optimize their trading strategies, and navigate the markets with greater confidence and precision.
Super Oscillator - Advanced Trend & Momentum Indicator📖 Description
The Super Oscillator is an advanced oscillator-type indicator designed for trend & momentum analysis.
This tool helps traders identify overbought & oversold zones while also determining trend direction.
By incorporating SuperTrend elements, it enhances the accuracy of entry and exit signals.
📊 Features
✅ Trend & Momentum Analysis: Detects price momentum and trend reversals
✅ Overbought & Oversold Zones: Above 90 indicates overbought, below 10 suggests oversold conditions
✅ Filtering Function: Only allows long entries above 50 and short entries below 50
✅ Noise Reduction: Smooths price fluctuations to minimize false signals
✅ Customizable Settings: Adjustable ATR and filtering parameters
🎯 How to Use
1️⃣ Buy Signal: When the Super Oscillator drops below 10 and shows upward momentum
2️⃣ Sell Signal: When the Super Oscillator rises above 90 and shows downward momentum
3️⃣ Filtering: Long entries are only valid if the oscillator is above 50, short entries only below 50
4️⃣ Divergence Trading: Look for discrepancies between price action and the oscillator for potential reversals
⚙️ Indicator Settings
🔹 ATR Length: Used for trailing stop calculations
🔹 Super Oscillator Sensitivity: Adjusts the oscillator's responsiveness
🔹 Overbought/Oversold Thresholds: Customizable levels for extreme market conditions
📈 Example Usage
📌 Trend Following Strategy:
Uptrend: Super Oscillator stays above 50 and price continues making higher highs → Long entry
Downtrend: Super Oscillator stays below 50 and price makes lower lows → Short entry
📌 Reversal Strategy:
Buy when Super Oscillator is below 10 and starts rising
Sell when Super Oscillator is above 90 and starts falling
📢 Disclaimer
This indicator is provided for educational purposes only and does not constitute financial advice.
Traders should incorporate risk management strategies and use this indicator alongside other tools before making trading decisions.
IBOX For the indicator to appear correctly on the DE40's 5-minute char t, set it to overlay mode.
Variables: Variables are declared to store the high and low points of the first trading hour.
Draw box:
The box representing the range of the first trading hour is drawn in gray.
First trading hour range:
The code checks if it is the first trading hour (9-10 am). If so, the high and low points are stored.
Fibonacci calculation: Based on the range of the first trading hour, the Fibonacci levels 1,61, 2, 2,61, 4,61 above and below the box are calculated.
Support, Resistance & POC EnhancedEste indicador avanzado identifica y gestiona soportes, resistencias y el Punto de Control (POC) utilizando una metodología optimizada con arrays para evitar la saturación de líneas en el gráfico.
¿Qué hace este indicador?
1️⃣ Identificación de Soportes y Resistencias con Pivotes
El indicador utiliza la metodología de pivotes de precios, que identifica máximos y mínimos locales en función de un número configurable de barras a la izquierda y a la derecha.
Se emplean las funciones ta.pivothigh y ta.pivotlow, que requieren que el precio haya girado en la dirección opuesta para confirmar un nivel.
Estos niveles suelen actuar como zonas de oferta y demanda, donde los participantes del mercado han reaccionado en el pasado.
2️⃣ Gestión Dinámica de Niveles para Mayor Precisión
Para evitar que el gráfico se sobrecargue con demasiadas líneas, el indicador almacena los niveles en arrays.
Se establece un límite máximo de niveles visibles, eliminando los más antiguos a medida que se detectan nuevos.
Esto permite una representación clara de los niveles más relevantes en tiempo real.
3️⃣ Cálculo del Punto de Control (POC) como Referencia de Equilibrio
El POC se obtiene mediante la fórmula:
poc := (high + low + close) / 3
Este cálculo representa el precio medio ponderado de cada vela y ayuda a identificar el nivel donde ha habido mayor aceptación del precio.
Un POC cercano a una resistencia puede indicar una posible absorción de órdenes y futura reversión.
Un POC cerca de un soporte puede señalar acumulación antes de un posible rebote alcista.
Aplicaciones Prácticas para los Traders:
✅ Detección de zonas clave: Soportes y resistencias dinámicos para validar entradas y salidas de operaciones.
✅ Confirmación con el POC: Identificación de niveles donde el mercado ha mostrado mayor interés.
✅ Optimización del análisis técnico: Evita la saturación del gráfico y permite una visión clara de los niveles más importantes.
Este indicador es ideal para traders de acción del precio, operadores de tendencias y traders de rangos, ya que les permite visualizar zonas de reacción del mercado con precisión y sin ruido innecesario. 🚀
Auto Last Earnings AVWAP
This script provides an automated approach to tracking critical post-earnings price levels. You can add it to a chart and then flip through your watchlist to see the anchored AVWAPs without the need to do it manually one by one.
Core Features:
Automatically detects earnings dates and anchors VWAP calculations without manual input
Calculates volume-weighted average price specifically from the last earnings release
Identifies and visualizes significant earnings gaps between reporting periods
Volume-Based Signal Detection:
Monitors VWAP crosses with volume confirmation (requires 1.5x normal volume)
Labels high-volume breakouts with clear directional signals
Uses a 6-bar adaptive volume baseline to filter out noise
Practical Applications:
AVWAP anchored at earnings offers a great price support level that should be considered when deciding to buy/sell the stock. This script eliminates manual VWAP anchoring and reduces chart management time
Key Differentiators:
First note: coding VWAP anchoring in pine is more challenging that one would think. The source code is open to help other users and hopefully inspire different applications.
No need to manually anchor the VWAP
Draws earnings gap from earnings to earnings (if auto mode)
Detects breakouts through the AVWAP line
Previous HTF Highs, Lows & Equilibriums [ᴅᴀɴɪ]#Previous HTF Highs, Lows & Equilibriums
Indicator Description
This powerful and user-friendly indicator is designed to help traders visualize key levels from multiple higher timeframes directly on their chart. It plots the previous session's high, low, and equilibrium (EQ) levels for up to 4 customizable timeframes, allowing you to analyze price action across different time horizons simultaneously.
Key Features
#1 Multi-Timeframe Support:
Choose up to 4 higher timeframes (e.g., 1H, 4H, 1D, 1W) to plot levels on your chart.
Each timeframe's levels are displayed with clear, customizable lines.
#2 Previous Session Levels:
Plots the previous session's high, low, and EQ (EQ = (high + low) / 2) for each selected timeframe.
Levels are dynamically updated at the start of each new session.
#3 Customizable Line Styles:
Choose between solid, dashed, or dotted lines for each level.
Customize colors for high, low, and EQ levels to suit your preferences.
#4 Dynamic Labels:
Each level is labeled with the corresponding timeframe (e.g., "1D - H" for daily high, "4H - L" for 4-hour low).
Labels are positioned dynamically to avoid clutter and ensure readability.
#5 Toggle On/Off:
Easily toggle the visibility of all levels with a single button, making it simple to declutter your chart when needed.
#6 Compatible with All Markets:
Works seamlessly across all instruments (stocks, forex, crypto, futures, etc.) and timeframes.
How to Use?
1. Add the indicator to your chart.
2. Select up to 4 higher timeframes to plot levels.
3. Customize line styles and colors to match your trading style.
4. Toggle levels on/off as needed to keep your chart clean and focused
Disclaimer
This indicator is not a trading signal generator . It does not predict market direction or provide buy/sell signals. Instead, it is a tool to help you visualize key levels from higher timeframes, enabling you to make more informed trading decisions. Always combine this tool with your own analysis, risk management, and trading strategy.
Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊
Power Trend [MacAlgo]Description:
The Power Trend Indicator is a sophisticated technical analysis tool that overlays on your trading charts to identify prevailing market trends. It utilizes a combination of ATR-based trend calculations, moving averages, volume analysis, and momentum indicators to generate reliable buy and sell signals. Additionally, it offers customizable settings to adapt to various trading styles and timeframes.
Key Features:
Adaptive ATR Calculation: Automatically adjusts the ATR (Average True Range) period and multiplier based on the selected timeframe for more accurate trend detection.
Dynamic Trend Lines: Plots continuous trend lines with color-coded bars to visually represent bullish and bearish trends.
Buy/Sell Signals: Generates standard and power buy/sell signals to help you make informed trading decisions.
Volume Analysis: Incorporates average buy and sell volumes to identify strong market movements.
Multiple Timeframe Support: Automatically adjusts the indicator's timeframe or allows for manual selection to suit your trading preferences.
Highlighting: Highlights trending bars for easy visualization of market conditions.
Alerts: Customizable alert conditions to notify you of potential trading opportunities in real-time.
How it Works:
1. ATR-Based Trend Calculation:
ATR Period & Multiplier: Calculates ATR based on user-defined periods and multipliers, dynamically adjusting according to the chart's timeframe.
Trend Determination: Identifies trends as bullish (1) or bearish (-1) based on price movements relative to ATR-based upper (up) and lower (dn) trend lines.
2. Moving Averages:
EMA & SMA: Calculates exponential and simple moving averages to smooth price data and identify underlying trends.
AlphaTrend Line: Combines a 50-period EMA and a 30-period SMA on a 4-hour timeframe to create the AlphaTrend line, providing a robust trend reference.
3. Volume Analysis:
Buy/Sell Volume: Differentiates between buy and sell volumes to gauge market strength.
Average Volume: Compares current volume against average buy/sell volumes to detect significant market movements.
4. Momentum Indicators:
RSI, MACD, OBV: Incorporates Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and On-Balance Volume (OBV) to assess momentum and confirm trend strength.
5. Signal Generation:
Standard Signals: Basic buy and sell signals based on trend crossovers.
Power Signals: Enhanced signals requiring multiple conditions (e.g., increased volume, momentum confirmation) for higher confidence trades.
Customization Options:
Tailor the Power Trend Indicator to your specific trading needs with the following settings:
ATR Period: Set the period for ATR calculation (default: 8).
ATR Multiplier: Adjust the ATR multiplier to fine-tune trend sensitivity (default: 3.0).
Source: Choose the price source (e.g., HL2, Close) for calculations.
Change ATR Calculation Method: Toggle between different ATR calculation methods.
Show Buy/Sell Signals: Enable or disable the display of buy and sell signals on the chart.
Highlighting: Turn on or off the bar highlighting feature.
Timeframe Adjustment: Choose between automatic timeframe adjustment or manually set
the indicator's timeframe.
Manual Indicator Timeframe: If manual adjustment is selected, specify the desired timeframe (default: 60 minutes).
Visual Components:
Trend Lines: Continuous lines representing the current trend, color-coded for easy identification (green for bullish, red for bearish, orange for neutral).
Bar Coloring: Bars are colored based on the current trend and its relationship to the AlphaTrend line.
Buy/Sell Triangles: Triangular markers appear on the chart to indicate buy and sell signals.
Power Signals: Larger triangles highlight strong buy and sell opportunities based on multiple confirming factors.
Highlighting: Transparent overlays highlight trending areas to enhance visual clarity.
Alerts:
Stay informed with customizable alerts that notify you of important market movements:
SuperTrend Buy/Sell: Alerts when standard buy or sell signals are generated.
Power Buy/Sell Alerts: Notifications for strong buy or sell signals based on comprehensive conditions.
Trend Direction Change: Alerts when the trend changes from bullish to bearish or vice versa.
How to Use:
Add to Chart: Apply the Power Trend Indicator to your preferred trading chart on TradingView.
Configure Settings: Adjust the input parameters to match your trading style and the timeframe you are analyzing.
Analyze Trends: Observe the trend lines, bar colors, and AlphaTrend line to understand the current market trend.
Follow Signals: Look for buy and sell signals or power signals to identify potential entry and exit points.
Set Alerts: Enable alerts to receive real-time notifications of significant trading opportunities.
Adjust as Needed: Fine-tune the settings based on market conditions and your trading experience.
Important Notes:
Backtesting: While the Power Trend Indicator is built using robust technical analysis principles, it's essential to backtest and validate its performance within your trading strategy.
Market Conditions: The indicator performs best in trending markets. In sideways or highly volatile markets, signal reliability may vary.
Risk Management: Always employ proper risk management techniques when trading based on indicator signals to protect your capital.
Disclaimer:
This indicator is intended for educational purposes only and does not provide financial advice or guarantee future performance. Trading involves risk, and past results are not indicative of future outcomes. Always conduct your own analysis and risk management.