Indicadores e estratégias
Contra SuperTrend ATR200 Multiplier8@ DrGSthis is contrasting view of supertrend with 233 atr and 8x multiplier for long trades only.
HTF Candles WindowThis indicator allows one to have a glance at a higher timeframe (HTF) candles within the same chart. It will overlay candles from HTF on the right space on the current chart (like a window).
It allows traders/analyst to understand candle behavior/context based on the lower timeframe (LTF) price action.
Rejet_Chandeliers [SOC]This script automatically detects Rejection Candlesticks (such as Pin Bars and Dojis) and highlights key support and resistance levels on the chart.
Features:
Automatic identification of rejection candles
Dynamic display of support and resistance zones
Helps visualize potential reversal areas
This tool is designed for traders who use price action to analyze market structure and key levels.
#TradingView #PriceAction #Forex #Crypto #Stocks #RejectionCandles #SupportResistance
Gann TimeLevels - CyclesAt the beginning of each month, vertical lines will be drawn every 45 days, up to 360 days/bars. The count is done backwards, with the same logic. This Open Source code may be useful for you to implement it with the Gann square. It already has the time levels.
Simplified MA Crossover Strategy with toggle RSI/ATR options1. Strategy Overview
MA Crossover Logic: The strategy uses two simple moving averages (short and long) to generate buy/sell signals.
Buy Signal: When the short MA crosses above the long MA.
Sell Signal: When the short MA crosses below the long MA.
Filters: The strategy includes optional RSI and ATR filters to refine entry conditions.
Risk Management: Includes stop-loss, take-profit, and position sizing based on a percentage of equity.
2. Inputs
MA Lengths:
shortLength: Length of the short MA (default: 9).
longLength: Length of the long MA (default: 21).
RSI Filter:
enableRSI: Toggle to enable/disable the RSI filter.
rsiLength: RSI calculation period (default: 14).
rsiOverbought: Overbought threshold (default: 70).
rsiOversold: Oversold threshold (default: 30).
ATR Filter:
enableATR: Toggle to enable/disable the ATR filter.
atrLength: ATR calculation period (default: 14).
minATR: Minimum ATR threshold for trade entry (default: 0.005).
Risk Management:
stopLossPerc: Stop-loss percentage (default: 0.5%).
riskRewardRatio: Risk-reward ratio for take-profit calculation (default: 2).
riskPercentage: Percentage of equity to risk per trade (default: 2%).
3. Indicators
Moving Averages:
shortMA: Short-term simple moving average.
longMA: Long-term simple moving average.
RSI: Relative Strength Index for filtering overbought/oversold conditions.
ATR: Average True Range for volatility filtering.
4. Trade Conditions
Long Condition:
Short MA crosses above the long MA.
RSI is below the overbought level (if RSI filter is enabled).
ATR is above the minimum threshold (if ATR filter is enabled).
Short Condition:
Short MA crosses below the long MA.
RSI is above the oversold level (if RSI filter is enabled).
ATR is above the minimum threshold (if ATR filter is enabled).
5. Risk Management
Position Sizing:
positionSize: Calculated based on the percentage of equity to risk and the stop-loss level.
Take-Profit and Stop-Loss:
takeProfitLevel: Calculated using the risk-reward ratio.
stopLossLevel: Calculated using the stop-loss percentage.
6. Trade Execution
Long Entry:
Triggers when the long condition is met.
Sets a take-profit and stop-loss level.
Short Entry:
Triggers when the short condition is met.
Sets a take-profit and stop-loss level.
7. Plotting
Moving Averages:
Short MA (blue) and Long MA (red) are plotted on the chart.
RSI Levels:
Overbought (red) and oversold (green) levels are plotted as horizontal lines.
ATR:
ATR is plotted in orange.
Trade Signals:
Buy signals are marked with a green "BUY" label below the bar.
Sell signals are marked with a red "SELL" label above the bar.
8. Customization
You can adjust the input parameters (e.g., MA lengths, RSI/ATR settings, risk management values) to suit your trading preferences.
Disable/enable filters (RSI and ATR) using the enableRSI and enableATR inputs.
9. Notes
This strategy is designed for educational purposes and should be thoroughly tested before use in live trading.
Consider optimizing the parameters (e.g., MA lengths, RSI/ATR thresholds) for specific markets or timeframes.
Ensure proper backtesting and forward testing to evaluate performance under different market conditions.
My scriptRSI based strategy based entry exit.
RSI 12 and 26 length to find cross over for entry and
RSI 10 and 18 length to find crossunder for exit.
EMA Crossover + RSI StrategyCheck trend of 20 EMA, 50 EMA and 100 EMA and if price crosses above all 3 and trend is up, buy. If RSI goes above 70 or price crosses below any of the 3 EMAs, sell.
Finite Difference - Backward (mcbw_)In calculus there exists a 'derivative', which simply just measures the difference between two points on a curve. For well behaved mathematical functions there are infinitely many points and so there exists a derivative at every point. Where there are infinitely many points in a curve that curve is called 'continuous'. Continuous curves are very nice to deal with since each point on it exists almost exactly where its neighbors are. However, if the curve does not have infinitely many points on it, but instead has a finite number of points on it, that curve is called 'discrete' instead of continuous. Taking the derivative of discrete curves is much trickier business since there are none of the mathematical conveniences that a continuous offers. In the real world everything we measure is a discrete curve, including Price (since we measure it a finite number of times, aka each candlestick)!
The branch of Discrete Mathematics has found an approach to measure the derivative along a discrete curve, that approach is aptly called " Finite Difference ". To get a more accurate approximation of a discrete derivative, the finite difference approach uses weighted combinations of neighboring points. The most common type of finite difference is a 'central' difference, this uses a combination of points before and after the point of interest to approximate the discrete derivative. This is great for historical analysis but is not of much use for trading algorithms since it technically means using future prices to calculate the derivative of the current point. Instead we can use a less common variant called a ' Backwards Difference ' that only uses a combination of points before the current one to help approximate the current derivative.
In this script you can choose the " Order " of your derivative and the " Accuracy " of its approximation. This script is for educational purposes for folks building trading algorithms. Many trading algorithms often have an element of seeing how much Price has changed from the previous candle to the current candle. This approach is the lowest accuracy derivative possible, and using the backwards finite differences, made available for the first time on TradingView (!!), algorithms that use derivatives can now have higher orders of accuracy!
Happy Trading/Developing!
High Volume Time (HVT) Auto-DisplayThis Indicator displays the upcoming HVT for the NasDaq on a table. The HVT is also displayed on the chart in real-time in order to help accentuate the best times to trade and a clear picture for the daily directional move. This times were found manually and bear as much significance as I bring it to have. These are not guaranteed times for the market to move, but rather High Probability Times based on my own backtesting on NQ.
RSI + Bollinger Bands + OBV [blondepanther]This custom indicator combines the power of Relative Strength Index (RSI), Bollinger Bands (BB), and On-Balance Volume (OBV) to help identify undervalued and overbought conditions in any market.
Static Volume MetricsThis indicator reports two volume metrics:
1. 30DayAvgVol - simple calculation of the 30 day average volume
2. PrevDayVol-5minAvg - calculates the average volume over 5min time periods from the prior day.
EMA MTF Crossover [Two]R = Reverse signal in Weekly
C = Continue signal in Daily
Two = Early signal in 1H
Indicator for myself but i'm public FREE for all friend using
ELHAI Futures Trend Checker (ES, NQ, YM)The ELHAI Futures Trend Checker is a powerful TradingView indicator designed for futures traders who want to monitor the trend synchronization of the three major U.S. futures indices:
✅ E-mini S&P 500 (ES1!)
✅ E-mini Nasdaq 100 (NQ1!)
✅ E-mini Dow Jones (YM1!)
This indicator checks whether all three futures indices are bullish or bearish during each candle formation. If one of them is out of sync (e.g., two indices are bullish while one is bearish), the indicator triggers an alert and highlights the background in red, helping traders identify potential market indecision or divergence.
Key Features
📌 Designed for Futures Traders – Focuses on ES, NQ, and YM futures contracts.
📌 Live Market Monitoring – Works in real-time and updates dynamically with each tick.
📌 Bullish/Bearish Trend Confirmation – Detects when all three indices are in sync.
📌 Mismatch Detection – Alerts you when at least one index is out of trend.
📌 Custom Alerts – Set up TradingView alerts to be notified instantly when a trend mismatch occurs.
📌 Visual Background Highlight – A red background warns of a market divergence.
How It Works
The script retrieves open and close prices for ES, NQ, and YM.
Determines whether each futures index is bullish (close > open) or bearish (close < open).
If all three indices are bullish or all are bearish, it remains neutral.
If one index is different, an alert is triggered and the background turns red.
How to Use
Apply the indicator to your TradingView chart.
Choose any timeframe – Works well on intraday, daily, or higher timeframes.
Enable alerts: Go to Alerts → Create Alert, select "Futures Trend Mismatch", and set your preferred alert frequency.
Use alongside other indicators like moving averages, RSI, or MACD for better trade confirmation.
Best Use Cases
✔ Day traders & scalpers – Quickly spot market divergence in live trading.
✔ Swing traders – Identify when futures markets lose synchronization.
✔ Trend followers – Confirm if all major futures markets are aligned before making a move.
Final Notes
This indicator was built for Elhai to provide real-time trend analysis across major U.S. futures indices. Use it as a confirmation tool to improve market timing and decision-making.
BBMA ZoneZeroLoss (ZZL) Oma AllyOma Ally is a Malaysian trader who developed the BBMA strategy, a method that combines Bollinger Bands and moving averages to identify potential market movements.
This strategy has gained popularity in Malaysia, Indonesia and Brunei and is used by many traders in the forex community.
The BBMA strategy includes several setups, including the "Reentry" setup, which aims to re-enter the market after a price correction in the direction of the main trend.
This setup is used by traders to determine precise entry and exit points.
The "Zero Loss Zone" is a concept within the BBMA strategy that aims to identify trading areas, e.g. for "re-entry" setups, where risk is minimised.
By applying specific criteria, such as the presence of strong trend candles and the positioning of certain moving averages, traders try to take positions with minimal risk of loss.
Grids lines"Líneas de Grid para Análisis Técnico"
Este indicador dibuja líneas de grid (rejilla) en el gráfico de precios, lo que puede ayudar a visualizar zonas de soporte, resistencia y niveles de interés en un rango de precios determinado.
Características:
Precio Mínimo y Máximo: Configura los precios entre los cuales se dibujarán las líneas de grid.
Número de Grids: Establece cuántas líneas de grid quieres ver en el gráfico.
Color y Grosor de las Líneas: Personaliza los colores y el grosor de las líneas de grid, incluyendo la primera y la última línea.
Estilo de las Líneas: Puedes elegir entre líneas discontinuas (Dotted) o sólidas (Solid), para personalizar aún más tu visualización.
Ticker Específico: Si lo deseas, puedes elegir un ticker específico para dibujar las líneas solo cuando el gráfico esté mostrando ese activo. De lo contrario, las líneas se dibujarán en el gráfico actual.
Parámetros:
Precio Mínimo: El precio más bajo para el rango del grid (por ejemplo: 0.82).
Precio Máximo: El precio más alto para el rango del grid (por ejemplo: 1.24).
Número de Grids: Define cuántas líneas quieres entre el precio mínimo y el máximo (por ejemplo: 30).
Estilo de Línea: Elige entre Dotted (líneas discontinuas) o Solid (líneas sólidas).
Ticker: Si deseas dibujar las líneas solo para un ticker específico, ingresa el símbolo del ticker (por ejemplo, ADAUSDT). Si dejas este campo vacío, las líneas se dibujarán en el gráfico actual.
Ejemplo de Uso:
Si estás analizando el par ADAUSDT, puedes escribir ADAUSDT en el campo del ticker para que las líneas solo se dibujen cuando este par esté visible. Si dejas el campo vacío, las líneas se dibujarán en cualquier ticker que tengas en el gráfico.
Descripción en Inglés:
"Grid Lines for Technical Analysis"
This indicator draws grid lines on the price chart, helping to visualize support, resistance, and key levels within a specific price range.
Features:
Min and Max Price: Set the price range for the grid lines to be drawn.
Number of Grids: Choose how many grid lines you want to display on the chart.
Line Color and Thickness: Customize the color and thickness of the grid lines, including the first and last line.
Line Style: Choose between Dotted (dashed lines) or Solid (solid lines) to further customize your view.
Specific Ticker: If desired, you can specify a ticker for the grid lines to only be drawn when that asset is shown. Otherwise, the lines will be drawn on the current chart.
Parameters:
Min Price: The lowest price for the grid range (for example, 0.82).
Max Price: The highest price for the grid range (for example, 1.24).
Number of Grids: Defines how many lines you want between the minimum and maximum price (for example, 30).
Line Style: Choose between Dotted or Solid.
Ticker: To draw the lines only for a specific ticker, enter the symbol of the ticker (for example, ADAUSDT). If left blank, the lines will be drawn on the current ticker.
Usage Example:
If you're analyzing the pair ADAUSDT, you can enter ADAUSDT in the ticker field to draw the lines only when that pair is visible. If you leave the field blank, the lines will be drawn for any ticker currently on the chart.
Trailing Stop with 21 EMA and ATRTrailing Stop with 21 EMA and ATR
This indicator helps traders to dynamically track their trailing stops based on market volatility, ensuring better risk management and optimized exit points.
This Pine Script indicator for TradingView calculates and plots trailing stops based on the 21-period Exponential Moving Average (EMA) and the Average True Range (ATR). The script uses an ATR multiplier to adjust the trailing stops dynamically.
Key Features:
Trailing Stops Calculation:
Long Trailing Stop: Calculated as EMA21 - (ATR * ATR Multiplier)
Short Trailing Stop: Calculated as EMA21 + (ATR * ATR Multiplier)
Customization Options:
Visibility: Toggle the visibility of long and short trailing stops.
Color: Customize the color of the trailing stops for both long and short positions.
Line Width: Adjust the width of the trailing stop lines.
Inputs:
EMA Length: Set the length for the Exponential Moving Average (default is 21).
ATR Length: Set the length for the Average True Range (default is 14).
ATR Multiplier: Set the multiplier for the ATR to adjust the trailing stop distance (default is 1.0).
200-Day SMA Slope Oscillator SmoothA smooth oscillator that oscillates between positive and negative values.
The oscillator tracks the change in the 200-day SMA and smooths the transitions to give you a cleaner, more gradual movement.
We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
Kalman Filter Trend BreakersKalman filter is a recursive algorithm that has been invented in the 1960s to track a moving target, remove any noisy measurements of its position and predict its future position.
In trading, KF might be a good replacement for a moving average, as it reacts to price changes in a different way. Not only it follows price direction, but can also track the velocity of price changes. This specific behaviour of KF is used in this indicator to track changes in trends.
Trend is characterized by price moving directionally, however, any trend comes to pause or complete stop and reversal, as the price changes more slowly (a trend fades into a sideways movement for a while) or the price movement changes direction, thus making a reversal.
This indicator detects the points where such changes occur (trend breaker points), and produces signals, which serve as points of current trend pausing or reversing. By applying different settings for KF calculation, you can produce less or more signals that indicate change in trend character, and either detect only significant trends changes, or less and shorter trends changes as well.
The signals do not differentiate the exact type of a trend change (it can be a brief trend pause followed by a continuation, as well as a complete reversal). However, once you are in a trend, the significant velocity change indicates a change in trend structure. In this sense, trend breaker signals should not be followed blindly, and can be used only as trend (and position) exit confirmations, but not the entry contrarian confirmations.
For better visual representation, you can use chart signals attached to bars, and additionally a vertical gradient which shows significant trend velocity change.
Timeframe Levels for Price Action📖 Introduction
Timeframe Levels Indicator is a powerful tool for identifying key support and resistance zones based on historical price action. By plotting weekly, daily, and 4-hour closing levels, this indicator helps traders understand where price is likely to:
✅ Range & Consolidate – Identify congestion zones where price action stalls.
✅ Break & Expand – Spot areas where price can rapidly move to the next level.
✅ Form MMXM Structures – Find market maker expansion and distribution levels.
These levels are critical for traders looking to anticipate price action, identify high-probability trade setups, and manage risk effectively.
The indicator dynamically plots historical close price levels across three key timeframes:
✅ Weekly Close Levels – Identify key levels based on weekly closes.
✅ Daily Close Levels – Spot daily open/close levels for refined entries.
✅ 4-Hour Close Levels – Track intra-day significant price points.
⚙️ How It Works
This indicator retrieves and displays the past 10 close levels for each selected timeframe using request.security().
🔹 Lines are customizable – Adjust the number of lines per timeframe (0-10).
🔹 Dynamic styling – Choose colors and line styles (solid, dashed, or dotted).
🔹 Extend historical levels – Lines extend across the chart for easy visualization.
🎨 Customization Options
🔧 Timeframe Selection: Choose how many weekly, daily, and 4-hour levels to display.
🎨 Color Settings: Customize the colors for each timeframe.
📏 Line Styles: Select between solid, dashed, or dotted lines for better visibility.
📊 Why Use This Indicator?
✅ Identify Key Support & Resistance Zones – Track where price has historically reacted.
✅ Adapt to Any Trading Style – Works for scalping, swing trading, and long-term investing.
✅ Enhance Multi-Timeframe Analysis – Quickly compare price action across different timeframes.
📊 How This Helps You Trade
✔ Pinpoint Key Trading Levels – Use past close levels to identify major market turning points.
✔ Confirm Ranges & Expansions – Understand whether price is likely to consolidate or break into a new trend by evaluating the next level above or below.
✔ Optimize Entries & Exits – Avoid getting trapped in congestion zones and capitalize on breakout opportunities. The more overlapping lines, the more congestion.
✔ Backtest Historical Reactions – See how price has responded to these levels in the past to refine your strategy. As price breaks out, any daily or 4 hour level will slow down the continued momentum.
🛠 How to Use
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Adjust the number of levels per timeframe (Weekly, Daily, 4-Hour).
3️⃣ Customize the line colors and styles to match your chart preferences.
4️⃣ Observe how price reacts to historical levels and plan your trades accordingly.
📜 Code Highlights : What Makes This Indicator Powerful?
This Multi-Timeframe Open/Close Levels Indicator is built with dynamic customization, efficiency, and structured market insights in mind. Here are some key highlights of the code:
The script fetches historical closing prices from three critical timeframes:
✅ Weekly Close Levels (W) – Major swing levels for long-term positioning.
✅ Daily Close Levels (D) – Useful for intraday and swing trading.
✅ 4-Hour Close Levels (240) – Ideal for short-term traders and scalpers.
Each timeframe’s close levels act as dynamic support and resistance zones, helping traders spot key areas for price reactions and liquidity grabs.
The indicator retrieves and stores up to 10 past close levels using request.security(), making it easy to track key price points without lagging the chart.
✅ Uses bar_index to extend levels both left and right.
✅ Ensures proper deletion and redrawing of lines to prevent clutter.
✅ Automatically updates levels as new bars print.
Instead of storing all lines at once, the script:
⚡ Deletes old lines before redrawing new ones.
⚡ Uses var line to ensure memory efficiency.
⚡ Prevents exceeding TradingView's 10,000-cell limit by limiting the number of stored lines.
This results in a smooth, non-laggy experience even with multiple timeframes displayed.
The levels plotted by this indicator help traders:
📊 Identify consolidation zones where price might range.
🚀 Spot breakout areas where price expands to the next key level.
📉 Recognize market maker structures (MMXM) to predict liquidity grabs.
These insights give traders a strategic edge in planning their entries, exits, and trade management.
Final Thoughts
This indicator is a powerful tool for traders looking to integrate historical price levels into their strategy.
Whether you’re a scalper, a day trader, or a swing trader, this indicator provides valuable insights into where price is likely to range, reverse, or break out.
Don’t trade blind—trade with structure. Use this tool to refine your entries, exits, and risk management, and start making more confident trading decisions today!
📌 Interested in accessing this indicator? 📩 Contact me for details!
MOMENTUM CANDLEThis script checks the following conditions:
- Latest Open < 1 day ago High
- Latest Close < 1 day ago High
- Latest Open > Latest Low
- Latest Close > 1 day ago Low
- 1 day ago Open < Latest High
- 1 day ago Open < Latest High ( duplicate condition)
- 1 day ago Open > Latest Low