📈 Dual SMA with Alerts & Trend ColorsFast SMA reacts quicker to price changes.
Slow SMA shows longer-term trend direction.
Trend coloring visually indicates upward or downward direction of each SMA.
Alerts are fully configured and ready to use.
Đường Trung bình trượt
Oil/gas ratio MAOil/Gas Ratio-Based Equivalent Price
This indicator calculates the gas-equivalent price based on the current oil price and a defined oil/gas ratio. It helps identify relative overvaluation or undervaluation of natural gas compared to oil.
Features:
- Choose between a static or dynamic (SMA-based) oil/gas ratio
- Displays the fair value of gas derived from oil prices
- Works with any oil ticker symbol (e.g. BRENT, USOIL, etc.)
Useful for traders analyzing intermarket relationships and looking for relative value signals between energy commodities.
Close-EMA120 Bias Histogram### **Indicator: Close-EMA120 Bias Histogram**
**Purpose**:
Visualizes the deviation (bias rate) between the closing price and its 120-period EMA (Exponential Moving Average) as a histogram.
**Calculation**:
\
- Positive values: Price is **above** EMA120 (bullish momentum).
- Negative values: Price is **below** EMA120 (bearish momentum).
**Key Features**:
1. **Clean Histogram**:
- Green bars: Price > EMA120
- Red bars: Price < EMA120
- Transparency (30%) for subtle visualization.
2. **Zero Line Reference**:
- Solid gray line at 0% for quick divergence assessment.
3. **Minimalist Design**:
- No overbought/oversold thresholds or clutter.
- Adjustable EMA period via input (default: 120).
**Use Cases**:
- Identify mean-reversion opportunities when bias extremes occur.
- Confirm trend strength (sustained positive/negative bias).
- Combine with price action for divergence signals.
**Code Simplicity**:
- Only 10 lines of core logic.
- Easy to modify (e.g., change EMA length or colors).
Moving Averages & RSIThis TradingView Pine Script plots multiple moving averages (EMAs, SMAs) and multi-timeframe RSI values for trend analysis.
It includes a regime filter based on sector and index trends (e.g., SPX, XLF, XLK) to highlight market conditions.
Bullish and bearish RSI divergences are detected and visually flagged on the chart.
Several UI tables display RSI values, sector info, market trend status, and share float, with optional watermark labeling.
DEMA SuperTrendDEMA SuperTrend
Introduction
The DEMA SuperTrend is a sophisticated trend-following indicator that integrates the speed and smoothness of the Double Exponential Moving Average (DEMA) with the classic SuperTrend methodology. Designed for traders seeking a more responsive alternative to standard trend indicators, the DEMA SuperTrend helps identify the prevailing market direction with minimal lag. It plots directly on the price chart, making it intuitive and accessible for real-time analysis across various timeframes and trading instruments.
Key Features
DEMA-Based Smoothing: Enhances traditional SuperTrend signals by applying DEMA, reducing signal lag and improving responsiveness to market changes.
Dynamic Trend Visualization: Clearly marks uptrend and downtrend phases with adaptive bands that follow price action.
Customizable Inputs: Users can tailor the ATR period, multiplier, and DEMA length to suit their strategy and trading style.
Visual Themes: Custom color schemes and line styles offer a personalized charting experience, supporting better clarity and decision-making.
How It Works
The DEMA SuperTrend calculates the Average True Range (ATR) to measure market volatility and applies a multiplier to determine the band offset. Instead of using a standard moving average, it employs the Double Exponential Moving Average to smooth the price series. The result is a responsive overlay that adjusts more quickly to market shifts compared to the traditional SuperTrend.
Uptrend: Triggered when the price closes above the DEMA-adjusted upper band.
Downtrend: Triggered when the price closes below the DEMA-adjusted lower band.
Band Switching: When a crossover occurs, the indicator switches the band to the opposite side of the price, signaling a potential change in trend direction.
Visual cues and color-coded zones on the chart enhance interpretability, making it easier for traders to react promptly to shifts in momentum.
Conclusion
The DEMA SuperTrend indicator combines the best of both worlds—robust trend-following logic and advanced smoothing—offering traders a powerful tool for identifying and tracking market trends with enhanced accuracy. Its versatility, responsiveness, and customization features make it suitable for both intraday and swing trading strategies.
Disclaimer
This indicator is intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Users should conduct their own research and risk assessment before making trading decisions.
MA Smoothed RSI For LoopMA Smoothed RSI For Loop
Introduction
The MA Smoothed RSI For Loop is a refined momentum indicator that enhances the classic Relative Strength Index (RSI) through advanced smoothing techniques and intelligent visual cues. By applying a moving average smoothing process within a for loop structure and integrating upper and lower threshold logic, this tool enables traders to detect trends with greater clarity and robustness. It is specifically built for traders who seek high-confidence signals through smoothed momentum analysis and contextual visual feedback.
Key Features
For Loop RSI Smoothing: Applies iterative moving average smoothing to the RSI using a for loop, reducing false signals and improving overall trend accuracy.
Threshold-Based Trend Detection: Incorporates upper and lower RSI thresholds to filter out weak signals and confirm strong momentum-driven trends.
Customizable Moving Averages: Supports a variety of moving average types (such as SMA, EMA, WMA) and lengths for tailored responsiveness.
Dynamic Color Feedback: Colors adapt based on RSI position and momentum, making it easy to interpret strength, reversal zones, or trend continuations.
Real-Time Trend Table: Trend Direction (uptrend/downtrend), Strength of Trend (based on RSI slope and threshold behavior) and Duration (number of bars in the current trend phase).
Weighted Loop Control: Allows users to apply weights during the smoothing loop, fine-tuning the indicator’s sensitivity.
How It Works
The indicator begins by computing the RSI from price data. It then enters a for loop where the RSI is repeatedly smoothed with a chosen moving average. This recursive process stabilizes the signal, minimizing the effects of short-term noise.
Upper and lower RSI thresholds are applied to define meaningful zones of momentum. Only when the smoothed RSI crosses and sustains beyond these thresholds is a trend considered significant. The direction and persistence of these movements are visually encoded using dynamic color schemes and captured numerically in the trend table.
This dual-layered method smoothing and threshold filtering provides a robust structure for identifying and monitoring meaningful price momentum.
Use Case
In the example described above we have one long and short positions early triggered once the momentum signal crossed its related threshold up in the case of bullish trend and down for the bearish one.
Conclusion
The MA Smoothed RSI For Loop offers a sophisticated approach to trend analysis by blending smoothed RSI logic with threshold-based confirmation and rich visual interpretation.
Disclaimer
This indicator is designed for educational and informational use only. It should not be construed as financial advice or a recommendation to trade. Always perform your own analysis and consult a qualified financial advisor before making investment decisions. Use at your own risk.
Stochastic M1+M5 with EMA + 4H FilterThis indicator combines multi-timeframe Stochastic signals (M1 + M5) and an EMA trend check, while also filtering out noise near 4-hour highs/lows. It delays repeat signals if a weak profit move or recent trade just occurred. Ideal for short-term XAUUSD monitoring, it plots clear “Strong Bull” or “Strong Bear” signals on your chart and offers optional alerts for timely entries.
Liquidity Sweep with EMAThis Pine Script indicator helps traders identify potential market reversals based on liquidity sweeps, where the price moves through the previous candle's low or high and then closes above or below the previous candle's wick. These are often seen as significant market moves or liquidity grabs before a potential reversal or continuation.
The indicator is also equipped with an EMA (Exponential Moving Average) as an optional visual aid to give traders a sense of the prevailing trend, though it is not used as part of the signal generation logic.
Key Features:
Liquidity Sweep Detection:
Bullish Sweep: Triggered when the current candle sweeps below the low of the previous candle and then closes above the high of the previous candle. This indicates a potential market reversal to the upside after the liquidity sweep.
Bearish Sweep: Triggered when the current candle sweeps above the high of the previous candle and then closes below the low of the previous candle. This indicates a potential market reversal to the downside after the liquidity sweep.
EMA:
The EMA (50) is plotted on the chart for visual trend guidance. While it is not used to confirm the signals, it can help traders see if the market is in a general uptrend or downtrend.
Signal Presentation:
Buy Signal: The indicator will plot a green upward arrow below the candle when a bullish liquidity sweep is detected.
Sell Signal: The indicator will plot a red downward arrow above the candle when a bearish liquidity sweep is detected.
Timeframe Filter:
The indicator only generates signals on the following timeframes: 30-minute, 1-hour, 4-hour, and Daily. This helps to ensure the sweeps are significant and likely to result in meaningful price moves.
Alerts:
Alerts can be set up for both bullish and bearish sweep signals, so traders can be notified when these events occur.
Customizable:
EMA Length: The length of the Exponential Moving Average (EMA) can be adjusted. By default, it is set to 50, but you can modify this to fit your trading strategy.
Show EMA Option: You can toggle whether or not to display the EMA line on the chart.
How It Works:
The indicator looks for price action patterns where the current candle sweeps through the high or low of the previous candle and closes beyond the previous wick.
These patterns are often seen as potential traps, where the price initially moves in one direction (sweeping the liquidity) and then quickly reverses, making them important for traders who want to catch reversals or breakouts after a liquidity sweep.
The EMA (50) gives a general trend direction but doesn't directly affect the trade signals. It serves as a visual reference for trend analysis.
Potential Use Cases:
Reversal Trading: Traders can use this indicator to catch reversals after a liquidity sweep. The green upward arrows may indicate a bullish reversal, while the red downward arrows may indicate a bearish reversal.
Trend Trading: The EMA can help traders gauge the overall market trend. If the price is above the EMA, the market may be in an uptrend, and traders may focus on bullish sweeps. Conversely, if the price is below the EMA, the market may be in a downtrend, and traders may focus on bearish sweeps.
Confirmation with Other Indicators: Although the EMA is not used to confirm signals in this script, it can be combined with other indicators (like RSI, Volume, or MACD) to enhance the accuracy of your trades.
Final Thoughts:
This script is designed to identify liquidity sweeps and price reversals based on price action alone, without relying on complex indicators. The optional EMA serves as a helpful tool for understanding the overall market trend. It’s ideal for traders looking to spot potential reversal points after significant price sweeps and is suitable for multiple timeframes (30m, 1h, 4h, Daily).
You can use this description to help potential users understand the functionality of your indicator when publishing it on TradingView or selling it as an invite-only script. Let me know if you need any adjustments or further details!
Bollinger Bands with 27 EMA High, Low, Close and 50 EMAthe above indicator is modified to improve accuracy of entry and avoid false signals
Composite Scaled EMA LevelsComposite Scaled EMA Levels Indicator
This TradingView Pine Script indicator calculates a “composite EMA” that compares the closing price of the current asset with that of the XU100 index and scales the EMA values to the XU100 level. It then visualizes these computed levels as horizontal lines on the chart with corresponding labels.
Key Components:
Inputs and Data Retrieval:
Length Input: The user defines a parameter length (default is 10) which determines over how many bars the horizontal line is drawn.
Data Collection:
The daily closing price of the current symbol (current_close) is retrieved using request.security().
The daily closing price of the XU100 index (xu100) is also retrieved.
A ratio is computed as current_close / xu100. This ratio serves as the basis for calculating the composite EMAs.
EMA Calculations:
The indicator computes Exponential Moving Averages (EMAs) on the ratio for specific periods.
In the provided version, the script calculates EMAs for three periods (34, 55, and 233), though you can easily expand this to other periods if needed.
Each computed EMA (for instance, EMA34, EMA55, EMA233) is then scaled by multiplying it with the XU100 index’s close, converting it to a price level that is meaningful on the chart.
Drawing Horizontal Lines:
Instead of using the standard plot() function, the script uses line.new() to draw horizontal lines representing the scaled EMA values over the last “length” bars.
Before drawing new lines, any existing lines and labels are deleted to ensure that only the most current values are shown.
Adding Labels to Lines:
The script creates a label for each EMA using label.new(), placing the label at the current bar (i.e., the rightmost position on the chart) using label.style_label_left so that the text appears to the right of the line.
The label displays the name of the composite EMA (e.g., "Composite EMA 34") along with its current scaled value.
Visualization:
The horizontal lines and labels provide a visual reference for the composite EMA levels. These lines help traders see critical support/resistance levels derived from the relationship between the current asset and the XU100 index.
Colors are assigned for clarity (for example, the EMA lines in this version use green).
Summary:
The Composite Scaled EMA Levels indicator is designed to help traders analyze the relationship between an asset’s price and the broader market index (XU100) by calculating a ratio and then applying EMAs on that ratio. By scaling these EMAs back to price levels and displaying them as horizontal lines with clear labels on the chart, the indicator offers a visual tool to assess trend direction and potential support or resistance levels. This can assist in making informed trading decisions based on composite trend analysis.
RSI with ADX and BB Entry Filtershow adx only when its
- below 22. if its rises 3 or more times consecutively but below 22 dont show
- if its moving average (9) is downwards sloping, show adx regardless of adx value
adx is 15minute time frame
view it on 1 min or 5 min time frame for entries.
rsi 70 and 30
MTF RSI & SMA Crossover [OB/OS Filtered Signals]MTF RSI & SMA Crossover
This custom indicator combines the power of Multi-Timeframe (MTF) RSI, Simple Moving Average (SMA), and overbought/oversold (OB/OS) conditions to provide precise buy and sell signals based on the crossovers of the RSI and its SMA. The indicator includes the following features:
MTF RSI: The Relative Strength Index (RSI) is calculated on a customizable timeframe, giving traders the ability to analyze price momentum across different timeframes.
SMA of RSI: The RSI is smoothed using a Simple Moving Average (SMA), helping to filter out market noise and identify clearer trend reversals.
Overbought/Oversold Filter: Signals are only triggered when the RSI has been in an overbought (above 70) or oversold (below 30) condition, improving the reliability of potential trend reversals.
Buy/Sell Signals:
Buy signals occur when the RSI crosses above its SMA after being oversold, indicating potential upward momentum.
Sell signals occur when the RSI crosses below its SMA after being overbought, indicating potential downward momentum.
Customizable Label Colors: Choose your own colors for the "BUY" and "SELL" labels to match your chart's design and preferences.
Alerts: Set alerts for buy and sell signals, ensuring you don't miss a potential trade.
This indicator is ideal for traders who want to capture trend reversals and momentum shifts while filtering out false signals by using overbought and oversold conditions. Customize the settings to suit your trading style and strategy.
RSI with ADX and BB Entry FilterADX of 15 minute: Only shows when it is fallling. Doens't show when it rises more than 5 consecutive candles
RSI with 70 overbought and 30 oversold
Signal Strength + TABI Visualizer (v7.8)// © dotcom880 (Based on original TABI by renderingnature1 & v4 Buy/Hold Entry Finder by runescapeyttanic)
// Indicator Purpose: Visualizes TABI RSI model in a separate pane. Plots Buy/Sell signals
// based on v4 Buy Logic + TABI Overbought Logic, with added "Super" levels for
// higher conviction signals (Super Buy = Buy + Deep RSI, Super Sell = Overheated).
// Version: 7.8 (Indicator Pane - Confidence Levels)
Uday Samant Scalping SetupThis Is scalping setup use for Bank nifty options buying...
Price always moves around VWAP, Fractal give us potential reversal signal.
In this setup take entry next to fractal and Target at VWAP or 20 EMA which ever next to fractal.
Trap Zone 2 minTrap Zone 2 Min — Visual Detection of Trap and Expansion Zones
This indicator is designed to clearly identify key price zones on lower timeframes, particularly the 2-minute chart. It's ideal for scalpers and intraday traders looking for structured, high-probability setups.
Trap Zone (No Trade Zone)
A central shaded area where trading is discouraged.
Marks potential liquidity traps or manipulation zones.
Calculated using recent highs, lows, and moving averages (MA20 and MA200).
Zones + and -
Positioned two times the size of an EB (Elephant Bar) above and below the trap zone.
Represent the first expansion level.
Useful for identifying potential long or short entries based on price breakout direction.
Zones ++ and --
Extend from the first + or - level to the next line outward.
Represent a second expansion layer, often aligning with price continuation or reaction zones.
Helpful for profit-taking or adjusting risk.
Zones +++ and ---
The most extreme levels plotted.
Serve as final take-profit areas or potential reversal zones.
Additional Features
Optional display of MA20 and MA200.
Configurable ADR (Average Daily Range) labels.
Full visual customization for better chart integration.
Best For
Scalpers and intraday traders.
Identifying and reacting to structured market zones.
Mapping price expansions and potential reversal points.
karontemassimi e minimi con medie mobili 9-21-200, per eliminare il tempo nella ricerca dei punti chiave.
EMA20 Sell Alertin down trend , Sell stock/index during the day only if 1st time price hit ema 20 Target 1% and Stop loss 0.5%.
FTB Cheklist🔍 FTB Cheklist – Precision-Based Breakout Strategy for Options Traders
FTB Cheklist is a tactical script built for serious day and swing traders looking to catch high-probability breakouts with clarity, confidence, and control.
This system is designed around key institutional concepts — combining volume spike breakouts, PDH/PDL levels, EMA alignment (8/13/50/200), and ATR-based price targets across the 30-minute, 1-hour, and daily timeframes. It visually guides your session entries and filters out noise, giving you clean, confirmed trade opportunities.
🔧 What It Does:
✅ Breakout Arrows when price breaks previous day high/low with volume confirmation & trend bias
📊 Dynamic Volume Spike Detection with time-sensitive multipliers (1.5 pre-noon, 1.2 after)
📈 Stacked EMAs Filter: Only show setups when trend is clearly in your favor
🎯 ATR-Based Price Targets: Projects 30m, 1h, and Daily levels upon breakout
🕐 Trading Hours Guidance overlay: Calls out the best times to trade (9:40–11:30 & 2:00–3:30)
🧭 Clean On-Chart Labels & Guidance to keep your execution focused and frictionless
🔑 Best For:
Day & swing traders of SPY, QQQ, and large-cap options
Traders who value structure, trend alignment, and measured targets
Avoiding FOMO and chop through visual clarity & volume precision
🔥 Built to respect bias. Built to respect time. Built for discipline .
FTB Cheklist isn’t just an indicator — it’s a trade execution assistant for serious technical traders. Load it up, trust the conditions, and trade the Cheklist.
Liquidity Trendline With Signals [StratifyTrade]combo of a trendline + indicators with signals of trades.
ScalpSwing Pro SetupScript Overview
This script is a multi-tool setup designed for both scalping (1m–5m) and swing trading (1H–4H–Daily). It combines the power of trend-following , momentum , and mean-reversion tools:
What’s Included in the Script
1. EMA Indicators (20, 50, 200)
- EMA 20 (blue) : Short-term trend
- EMA 50 (orange) : Medium-term trend
- EMA 200 (red) : Long-term trend
- Use:
- EMA 20 crossing above 50 → bullish trend
- EMA 20 crossing below 50 → bearish trend
- Price above 200 EMA = uptrend bias
2. VWAP (Volume Weighted Average Price)
- Shows the average price weighted by volume
- Best used in intraday (1m to 15m timeframes)
- Use:
- Price bouncing from VWAP = reversion trade
- Price far from VWAP = likely pullback incoming
3. RSI (14) + Key Levels
- Shows momentum and overbought/oversold zones
- Levels:
- 70 = Overbought (potential sell)
- 30 = Oversold (potential buy)
- 50 = Trend confirmation
- Use:
- RSI 30–50 in uptrend = dip buying zone
- RSI 70–50 in downtrend = pullback selling zone
4. MACD Crossovers
- Standard MACD with histogram & cross alerts
- Shows trend momentum shifts
- Green triangle = Bullish MACD crossover
- Red triangle = Bearish MACD crossover
- Use:
- Confirm swing trades with MACD crossover
- Combine with RSI divergence
5. Buy & Sell Signal Logic
BUY SIGNAL triggers when:
- EMA 20 crosses above EMA 50
- RSI is between 50 and 70 (momentum bullish, not overbought)
SELL SIGNAL triggers when:
- EMA 20 crosses below EMA 50
- RSI is between 30 and 50 (bearish momentum, not oversold)
These signals appear as:
- BUY : Green label below the candle
- SELL : Red label above the candle
How to Trade with It
For Scalping (1m–5m) :
- Focus on EMA crosses near VWAP
- Confirm with RSI between 50–70 (buy) or 50–30 (sell)
- Use MACD triangle as added confluence
For Swing (1H–4H–Daily) :
- Look for EMA 20–50 cross + price above EMA 200
- Confirm trend with MACD and RSI
- Trade breakout or pullback depending on structure
6 EMA CryptoThis script plots six customizable Exponential Moving Averages (EMA) with default lengths of 9, 12, 21, 50, 100, and 200 periods.
It is designed for traders who want to track both short-term momentum and long-term trends on any asset, including crypto, forex, and stocks.
Each EMA can be individually enabled or disabled and customized with different colors.
Ideal for identifying trend strength, pullbacks, and potential reversals across multiple timeframes.
RSI in pane and 3 EMAs on chartCustom RSI in Pane + 3 EMAs on Chart — with Optional RSI Divergence Detection
Combines RSI in a separate pane with 3 EMAs on the chart and optional RSI-based divergence detection. Useful for analyzing both momentum and trend structure.
Features
RSI Pane
Custom RSI calculation (not built-in ta.rsi) with adjustable source and length
Overlay optional moving average (SMA, EMA, SMMA/RMA, WMA, VWMA, or Bollinger Bands) Overbought/oversold gradient fill for visual clarity (70 / 30 zones)
Midline (50) for neutral RSI territory
RSI Divergence Detection
Optional: toggle on/off with one input
Regular Bullish Divergence : Price makes a lower low, RSI makes a higher low
Regular Bearish Divergence : Price makes a higher high, RSI makes a lower high
Customizable lookback for pivot detection
Visual markers and labels plotted on RSI
Built-in alert conditions for both divergence types
3 EMA Trend Indicators on Price Chart
Three customizable EMAs (default: 20, 50, 200)
Color-coded and clearly plotted on main chart
Use to determine short/mid/long-term trend bias
No repainting or smoothing artifacts
Why use this script?
Gives a full view of trend + momentum without cluttering the main price chart, and it helps confirm entries and exits by observing RSI behavior alongside EMAs. The optional divergence detection can act as a signal for potential exhaustion or reversal (not entry signals on their own). It is a Good fit for traders who use RSI zones, divergences, and EMA structure in their decision-making, both for intra-day and swing trades (where it performs best).
How to use
Add this script to your chart. EMAs will appear on the main price chart; RSI and divergence will appear in a separate pane.
Adjust RSI and MA settings to fit your trading style (e.g., fast RSI for scalping, slower for swing)
Enable "Show Divergence" if you want visual alerts and markers
Use alerts to get notified when a divergence occurs without watching the chart
Always check the divergences on different time frames to validate the setup, and do not consider them valid on small time frames (<15 minutes).
Built for traders who want both momentum and trend context in a single tool — without clutter, repainting, or noise. I created this script to streamline my own analysis and avoid switching between multiple indicators. It's not meant to be a "signal generator" but a visual assistant for making better decisions. If you find it useful or have feedback, feel free to reach out.