EMA Hierarchy Alternating Alert MarkersThis script allows you to set EMA 5, 13 & 26 in a single indicator
// It allows you to set an alert when PCO or NCO happens where 5>13>26 (PCO) or 5<13<26 (NCO)
// It has been deisgned in such a way that the alert will only be sounded on the first PCO or NCO
// Once a PCO has happened then the next PCO alert will only come after the NCO has happened
// This feature helps you to avoid getting multiple alerts specially if you are using a lower timeframe
// EMA crossover strategy has been one of the favorite strategy which helps traders understand the trend in various timeframes and accordingly ride the wave - both upside and downside. This indicator helps to time your trade once you get an alert on crossover happening and eliminates the need for constant monitoring of the screen
// Scripts: Equities, F&O, Commodity, Crypto, Currency
// Time Frame: All
// By TrustingOwl83470
Indicators and strategies
PriceLevels GBGoldbach Price Levels โ Identify Algorithmic Key Zones
This open-source indicator is designed to help traders identify potential algorithmic key zones by highlighting price levels ending with specific numbers such as 03, 11, 29, 35, 65, and 71. These levels may act as inflection points or hesitation areas based on observed behavioral patterns in price movement.
What It Does:
๐ Scans and plots horizontal price levels where the price ends with one of the selected number combinations
๐ฏ Toggle on/off visibility for each number ending
๐จ Customize color and thickness for each level
๐ท๏ธ Shows price labels at the end of each line
๐ Label styles (color/transparency) are adjustable for both dark and light chart themes
๐ง Why Use It:
This tool is ideal for discretionary traders who study market structure through static price anchors. It provides a visual reference for recurring numerical levels that may be used in algorithmic trading models or serve as psychological price zones.
โ ๏ธ Disclaimer:
This script is open-source and intended for educational and analytical purposes only. No trading signals or performance guarantees are provided. Please use your own judgment when applying this tool in a trading context.
๐ฅ Smart Money Entry Bot (ICT Style)//@version=5
indicator("๐ฅ Smart Money Entry Bot (ICT Style)", overlay=true)
// === INPUTS ===
liqLookback = input.int(15, title="Liquidity Lookback Period")
useEngulfing = input.bool(true, title="Use Engulfing Candle Confirmation")
useFVG = input.bool(false, title="Use FVG Confirmation (Experimental)")
sessionFilter = input.bool(true, title="Only Trade During London & NY Sessions")
stopLossPerc = input.float(0.5, title="Stop Loss (%)", step=0.1)
takeProfitPerc = input.float(1.5, title="Take Profit (%)", step=0.1)
// === TIME FILTER ===
inSession = not sessionFilter or (time(timeframe.period, "0930-1130") or time(timeframe.period, "0300-0600"))
// === LIQUIDITY SWEEP ===
highestHigh = ta.highest(high, liqLookback)
lowestLow = ta.lowest(low, liqLookback)
sweptHigh = high > highestHigh
sweptLow = low < lowestLow
// === ENGULFING ===
bullishEngulfing = close > open and open < close and close > open
bearishEngulfing = close < open and open > close and close < open
// === BOS Logic (Mock: strong move in opposite direction after sweep) ===
bosDown = sweptHigh and close < close
bosUp = sweptLow and close > close
// === Fair Value Gap (Experimental) ===
fvgBull = low > high and low > high
fvgBear = high < low and high < low
// === ENTRY CONDITIONS ===
longEntry = sweptLow and bosUp and inSession and (not useEngulfing or bullishEngulfing) and (not useFVG or fvgBull)
shortEntry = sweptHigh and bosDown and inSession and (not useEngulfing or bearishEngulfing) and (not useFVG or fvgBear)
// === PLOT SIGNALS ===
plotshape(longEntry, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === ALERTS ===
alertcondition(longEntry, title="BUY Signal", message="BUY signal confirmed by Smart Money Bot")
alertcondition(shortEntry, title="SELL Signal", message="SELL signal confirmed by Smart Money Bot")
// === STOP LOSS / TAKE PROFIT LEVELS (Visual) ===
slLong = longEntry ? close * (1 - stopLossPerc / 100) : na
tpLong = longEntry ? close * (1 + takeProfitPerc / 100) : na
slShort = shortEntry ? close * (1 + stopLossPerc / 100) : na
tpShort = shortEntry ? close * (1 - takeProfitPerc / 100) : na
plot(slLong, color=color.red, style=plot.style_linebr, title="SL Long")
plot(tpLong, color=color.green, style=plot.style_linebr, title="TP Long")
plot(slShort, color=color.red, style=plot.style_linebr, title="SL Short")
plot(tpShort, color=color.green, style=plot.style_linebr, title="TP Short")
Adaptive RSI Oscillator๐ Adaptive RSI Oscillator
This indicator transforms the classic RSI into a fully adaptive, self-optimizing oscillator โ normalized between -1 and 1, dynamically smoothed, and enhanced with divergence detection.
๐ง Key Features
Self-Optimizing RSI: Automatically selects the optimal RSI lookback length based on return stability (no hardcoded periods).
Dynamic Smoothing: Adapts to market conditions using a fraction of the optimized length.
Normalized Output : Converts traditional RSI to a consistent scale across all assets and timeframes.
Divergence Detection: Compares RSI behavior vs. price percentile ranks and scales the signal accordingly.
Gradient Visualization: Color-coded background and plot lines reflect the strength and direction of the signal with soft transitions.
Neutral Zone Adaptation: Dynamically widens or narrows the zone of inaction based on volatility, reducing noise.
๐ฏ Use Cases
Identify extreme momentum zones without relying on fixed 70/30 RSI levels
Detect divergences early with adaptive filtering
Highlight potential exhaustion or continuation
โ ๏ธ Disclaimer: This indicator is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Always conduct your own research and consult a licensed financial advisor before making investment decisions. Use at your own risk.
OBAdvanced Order Block & Liquidity Mapping Tool
This open-source script is designed to help traders identify market structure and key liquidity areas using a combination of fractal-based order block detection and dynamic/static liquidity mapping.
Features Overview:
- Detects bullish and bearish order blocks using 3-bar and 5-bar fractal patterns
- Automatic removal of invalidated order blocks when price bodies fully break above/below OB highs/lows
- Fair Value Gap (FVG) validation option to increase signal quality
- Time-based label system for session or bar analysis
- Highly customizable visuals: line styles, label positions, widths, colors, and time offsets
๐ ๏ธ Custom Enhancements:
This version introduces a key improvement: order blocks are automatically removed once they are considered invalid, specifically when the body of a future candle breaks through the high or low of the original OB โ not just the wick. This enhances the clarity and reliability of the displayed levels by dynamically filtering out broken zones.
๐ง Based on Open Source Work:
This script includes adapted logic from the open-source Orderblocks script by Nephew_Sam_.
The original detection mechanism has been extended with new invalidation logic and improved visual rendering.
Recommended Usage:
Best suited for intraday or swing-trading strategies based on market structure and smart money concepts (SMC). Works well on 5m to 4h timeframes. Inputs are adjustable to suit varying volatility and session preferences.
โ ๏ธ Disclaimer:
This tool is intended for educational and analytical purposes only. It is not financial advice, and no performance or profitability is guaranteed.
// Portions of the order block logic are adapted from the open-source "Orderblocks" script by Nephew_Sam_.
// Original:
// This version adds custom invalidation logic based on body breaches and enhanced cleanup behavior.
Perfect Overextension ReversalHow It Works
Bollinger Band Overextension- We calculate a standard 20โperiod Bollinger Band (SMA +/โ 2ย SD). When price tears past the upper or lower band, we mark it as overbought or oversoldโa classic sign that momentum may have gone too far.
Volume Confirmation- We track a 20โperiod volume average. A reversal candle only counts if itโs sizable (body โฅย ATR), and its volume is at least 1.5ร the average. Big move, big volumeโmore reliable reversal setup.
Reversal Candle Entryโข Long after an oversold condition and a bullish candle that meets the size + volume tests.โข Short after overbought and a bearish candle with the same criteria.
How to Trade the Signal
My advice is donโt rush in immediately. Take the signals to mean more that price is slowing down from the crazy action, when it is volatile at the beginning price can whipsaw. Wait for initial volatility to calm down and then look for a confirmation entry. For example, wait for a fast MA to cross a slower MA before entering. Manage risk well and place your stop just beyond the recent swing high/low. Target a 1.5รโ2ร reward: risk or trail your profit once the market gives you a second confirmation or cover your stop loss once price is clear of your entry and let the trade run.
Timeframes & Markets- This works on any chart however as the signals are a rare occurrence so you will get more entries on the lower timeframes.
happy trading :)
EMA 65 and 200 Strategy (Updated)//@version=5
strategy("EMA 65 and 200 Strategy (Updated)", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Define EMAs
ema65 = ta.ema(close, 65)
ema200 = ta.ema(close, 200)
// Plot EMAs
plot(ema65, color=color.blue, linewidth=2, title="EMA 65")
plot(ema200, color=color.red, linewidth=2, title="EMA 200")
// Conditions for sell entry (Price touching EMA65 or EMA200 with a bearish trend)
sell_condition = (close < ema65 and close > ema65) or (close < ema200 and close > ema200)
sell_stop_loss = close + 20 // 20 points above the entry
sell_take_profit = close - 10 // 10 points below the entry
// Conditions for buy entry (Price touching EMA65 or EMA200 with a bullish trend)
buy_condition = (close > ema65 and close < ema65) or (close > ema200 and close < ema200)
buy_stop_loss = close - 20 // 20 points below the entry
buy_take_profit = close + 10 // 10 points above the entry
// Strategy execution: Buy and Sell orders
if (sell_condition)
strategy.entry("Sell", strategy.short, stop=sell_stop_loss, limit=sell_take_profit)
if (buy_condition)
strategy.entry("Buy", strategy.long, stop=buy_stop_loss, limit=buy_take_profit)
// Plot buy and sell signals
plotshape(series=sell_condition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")
plotshape(series=buy_condition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
// Draw stop loss and take profit levels for visualization
plot(sell_condition ? sell_stop_loss : na, color=color.red, style=plot.style_line, linewidth=1, title="Sell Stop Loss")
plot(sell_condition ? sell_take_profit : na, color=color.green, style=plot.style_line, linewidth=1, title="Sell Take Profit")
plot(buy_condition ? buy_stop_loss : na, color=color.red, style=plot.style_line, linewidth=1, title="Buy Stop Loss")
plot(buy_condition ? buy_take_profit : na, color=color.green, style=plot.style_line, linewidth=1, title="Buy Take Profit")
Market Structure [TFO]๐ Market Structure โ Pine Script Indicator
Author: ยฉ tradeforopp
License: Mozilla Public License 2.0
Platform: TradingView
Type: Market structure analyzer (BOS/MSS, swings, bar color)
๐ง What It Does:
This indicator automatically identifies market structure shifts (MSS) and breaks of structure (BOS) based on pivot highs and lows. It detects when price violates previous swing points and visually marks the shift between bullish and bearish phases.
๐ Key Features:
Swing Detection:
Uses pivot_strength to determine significant swing highs and lows.
Swings are tracked using a custom swing structure with index and value.
MSS & BOS Logic:
A Market Structure Shift (MSS) occurs when price changes direction (e.g., bullish to bearish).
A Break of Structure (BOS) happens when the price breaks the previous swing without changing trend direction.
Visual Markers:
Labels on chart showing MSS or BOS at break levels.
Optional pivot markers as small triangle shapes at swing points.
Dashed/solid/dotted lines between the break point and current candle.
Bar Coloring:
Turns candles green for bullish breaks, red for bearish breaks.
Controlled via the โShow Bar Colorsโ setting.
Alerts:
Alert conditions for all MSS/BOS events.
Can be used for automation or signals in TradingView.
โ๏ธ User Inputs:
Pivot Strength โ How many candles left/right to confirm a high/low.
Show Pivots โ Enables small triangle markers.
Show BOS/MSS โ Toggles structure break visuals and labels.
Line Style โ Customizes BOS/MSS line appearance.
Bar Colors โ Enables green/red candle coloring on structure changes.
๐งฉ Use Cases:
Track structural shifts in real time on any asset.
Build smart money concept (SMC) strategies.
Filter entries/exits based on trend changes.
Combine with liquidity or volume-based tools for confirmation.
Enhanced S/D BoringโExplosive [v6]How to Use the Indicator
Boring Candle:
Yellow diamond below bar. Marks consolidation near S/D linesโwatch for a breakout.
Explosive Candle:
Orange bar color and triangle above. Signals a potential moveโentry on close (directional, filtered by MA).
Supply/Demand Zones:
Red (resistance/supply) and Lime (support/demand) dotted lines.
Look for signals near these levels.
Multi-TF Panel:
Label at top shows higher time frame status (Explosive/Boring/Neutral). Use for confluence.
Trading Logic Example:
Entry:
Buy: After a boring candle above EMA and near demand, next bar closes above boring high and EMA (explosive).
Sell: Opposite.
Stop-loss:
Below/above the boring candle wick or nearest S/D zone.
Take Profit:
Fixed RR, or at next S/D level.
๐ง Daily Mindset Reminder๐ง Daily Trading Mindset Reminder โ Stay Calm, Stay Disciplined
๐ Description:
This simple yet powerful indicator is designed to help intraday and options traders start their trading day with clarity, discipline, and purpose. At exactly 9:15 AM, it displays a calming checklist label on your chart to reinforce essential trading principles and avoid emotional decision-making.
โ
Use it as a daily anchor to:
Stay emotionally centered and focused
Avoid overtrading or impulsive reactions
Remember your pre-trade plan and stop-loss rules
Trade with purpose โ not prediction
๐ Checklist Included:
โ
Calm Mind
โ
No Predictions โ Just Reactions
โ
Trade Setup Ready
โ
Risk Defined
โ
Journal On
โ
Goal: Trade Well, Not Just Profit
๐ ๏ธ Works on any timeframe and chart. Non-intrusive and customizable.
๐ Who Is It For?
Intraday Traders
Options Buyers (Bank Nifty, Nifty, Fin Nifty)
Discretionary Traders who want mental clarity and discipline
๐งญ Why You Need It
Most traders lose not because of lack of strategy, but due to lack of mindset control. This simple tool keeps you grounded and reminds you of what matters before you place that first trade.
โจ โMindset is the real edge. Let this script be your daily compass.โ
SHYY TFC Candles_Confirmation X 4TF)SHYY Real-Time FTC Confirmation is a multi-timeframe trend alignment tool designed to provide real-time confirmation of market direction across up to four configurable timeframes. Unlike traditional tools that rely on closed candles, this version uses in-progress bars to detect live momentum, allowing traders to respond as trends are forming rather than after they are confirmed.
This script checks the current price direction on each selected timeframe by comparing the current close to the open of the same candle. A timeframe is considered bullish if the close is above the open, bearish if below, and neutral if equal. If all enabled timeframes are aligned in the same direction, the current chart candle is colored accordingly.
White candles indicate that all selected timeframes are currently bullish. Yellow candles indicate that all selected timeframes are currently bearish. If the timeframes are not fully aligned, the candle remains uncolored.
Each of the four timeframes can be configured individually in the settings panel. Users can also enable or disable each timeframe independently using checkboxes, allowing flexibility in how the confirmation logic is applied.
The script uses a single request.security() call per timeframe with lookahead enabled, so that the information shown reflects the live status of each timeframeโs bar, not just completed ones. This makes it suitable for real-time decision-making and strategy filtering.
This tool can assist scalpers, trend followers, and breakout traders in aligning trades with broader market direction. It can be used as a standalone trend filter or in conjunction with other indicators and strategies.
No external dependencies or overlays are required.
This is an original script, built to provide real-time, multi-timeframe confirmation using a clean and efficient approach.
Oscilador de Sentimiento PROUser Manual: Indicator "Dinรกmicas de Mercado Pro" (DMP)
Author: @Profit_Quant
Created by: Gemini AI (2025)
User Manual (English):RSI Sentiment Oscillator PRO
1. General Concept
The "RSI Sentiment Oscillator PRO" is an advanced RSI-type indicator designed to measure the momentum and strength of market sentiment. Unlike a simple line oscillator, this indicator uses a dynamic-width band that visually expands and contracts with the intensity of the sentiment. Its most powerful feature is the automatic detection of four types of divergences, which are key signals for identifying potential trend reversals or continuations.
2. Main Components and Their Interpretation
a) The Oscillator Band (Dynamic Width)
What it is: The main representation of the indicator. It's not just a line, but a filled band.
Dynamic Width: This is its unique feature. The band widens as sentiment becomes more extreme (near overbought at 100 or oversold at 0) and narrows near the neutral zone (50). This gives you an immediate visual sense of the "pressure" or "strength" of the current sentiment.
Band Colors:
Green: The oscillator is in the oversold zone (below 30). Sentiment is extremely bearish, which could precede a bounce.
Red: The oscillator is in the overbought zone (above 70). Sentiment is extremely bullish, which could precede a correction.
Blue: The oscillator is in a neutral zone.
b) Divergence Detection (Key Signals)
Divergences occur when the price and the oscillator move in opposite directions. They are among the most powerful signals in technical analysis.
Regular Divergences (Trend Reversal Signals)
Regular Bullish Divergence (Green):
What to look for: The price makes a lower low, but the oscillator makes a higher low.
Meaning: The price is still falling, but the momentum of the fall is exhausting. It's a potential signal that the downtrend is ending and could reverse to the upside.
Label: Bull Div
Regular Bearish Divergence (Red):
What to look for: The price makes a higher high, but the oscillator makes a lower high.
Meaning: The price is still rising, but the momentum of the rise is weakening. It's a potential signal that the uptrend is losing steam and could reverse to the downside.
Label: Bear Div
Hidden Divergences (Trend Continuation Signals)
Hidden Bullish Divergence (Yellow):
What to look for: The price makes a higher low (a pullback in an uptrend), but the oscillator makes a lower low.
Meaning: The current pullback is a "buy the dip" opportunity to join the main uptrend. It indicates that the uptrend is likely to continue.
Label: Bull Hid
Hidden Bearish Divergence (Orange):
What to look for: The price makes a lower high (a rally in a downtrend), but the oscillator makes a higher high.
Meaning: The current rally is a "sell the rally" opportunity to join the main downtrend. It indicates that the downtrend is likely to continue.
Label: Bear Hid
3. Trading Strategies
Reversal Trading: Use Regular Divergences as your primary signal. A green Bull Div in the oversold zone is a powerful buy signal. A red Bear Div in the overbought zone is a powerful sell signal.
Continuation Trading: Use Hidden Divergences to enter in the direction of the trend. A yellow Bull Hid during a pullback in an uptrend confirms that it's a good time to buy.
Volume Filter: By default, the indicator requires the volume on the second pivot of a regular divergence to be lower. This increases the reliability of the signal, as it confirms the "loss of conviction" in the price move.
4. Final Disclaimer
Divergences are high-probability signals, not certainties. Always use this indicator in confluence with your own analysis of market structure, support, resistance, and strict risk management.
es.tradingview.com
๐PriceAction & SmartMoney โ Galaxy [VNFlow]Contact and discussion to use advanced tools to support your trading strategy
Email: hasobin@outlook.com
Phone: 0373885338
See you,
๐ฝ PriceAction & SmartMoney โ Galaxy [VNFlow]Contact and discussion to use advanced tools to support your trading strategy
Email: hasobin@outlook.com
Phone: 0373885338
See you,
Dinรกmicas de Mercado ProUser Manual: Indicator "Dinรกmicas de Mercado Pro" (DMP)
Author: @Profit_Quant
Created by: Gemini AI (2025)
1. General Concept
The "Dinรกmicas de Mercado Pro" indicator is an all-in-one technical analysis tool designed to be overlaid directly onto your price chart. Its goal is to provide a clear and concise view of the market structure by combining three crucial trading elements:
The Overall Trend: What is the main direction of the market?
Liquidity Zones: Where is the price likely to react (supports and resistances)?
Breakout Momentum: When is the price breaking out of a range with force and volume?
By integrating these components, the DMP helps you make more informed trading decisions by identifying high-probability zones for entering or exiting trades.
2. Essential Step! - Initial Chart Setup
For the indicator to work as designed, it is essential to hide the original candles of the TradingView chart.
The indicator already draws its own candles with the market sentiment colors. If you do not hide the original ones, you will see both sets of candles overlapping, which will make the chart confusing and unreadable.
How to hide the chart's candles?
There are two simple ways:
Method 1 (Recommended):
Once you have the "DMP" indicator on your chart, look for the symbol's name in the top-left corner of your screen (e.g., BTCUSD, EURUSD, etc.).
Right next to the name, you will see an eye icon (๐๏ธ).
Click that eye icon to hide the main symbol (the original candles, bars, or lines). The chart will become clean, showing only the candles drawn by the DMP indicator.
Method 2 (Alternative):
Click the gear icon (โ๏ธ) for the chart settings.
Go to the "Symbol" tab.
Uncheck the boxes for "Body," "Borders," and "Wicks," or set their opacity to 0%.
3. Main Components and Their Interpretation
The indicator has 3 key visual components you need to understand.
a) Supply and Demand Zones (Order Blocks)
These are the colored rectangles drawn automatically on the chart.
What are they?: They represent zones where there was a strong imbalance between buyers and sellers, often caused by the activity of large institutions.
Demand Zone (Blue Rectangle): A potential support zone. When the price returns to this area, buying pressure is expected to increase, pushing the price up.
Supply Zone (Red Rectangle): A potential resistance zone. When the price reaches this area, selling pressure is expected to increase, pushing the price down.
Mitigated Zone (Gray Rectangle): When the price touches a supply or demand zone, it becomes "mitigated," meaning the liquidity in that zone has already been used. The zone turns gray to indicate that it is less reliable and the price is more likely to break through it in the future.
b) Candle Coloring (Market Sentiment)
The chart candles will change color based on a priority system to give you an instant read of market sentiment.
Green Candles (Uptrend): Indicate that the price is above the long-term Exponential Moving Average (EMA) (200 by default). This suggests the overall trend is bullish, and you should look for buying opportunities.
Red Candles (Downtrend): Indicate that the price is below the 200 EMA. This suggests the overall trend is bearish, and you should look for selling opportunities.
White Candles (Bullish Breakout): Alert! This occurs when the price breaks a recent range high AND is accompanied by above-average volume. It's a strong sign of bullish momentum.
Purple Candles (Bearish Breakout): Alert! This occurs when the price breaks a recent range low with high volume. It's a strong sign of bearish momentum.
Gray Candles (Neutral): Appear when the price is very close to the 200 EMA, indicating indecision or consolidation in the market. This is a time for caution.
c) Probability Paths (Price Targets)
These are the dashed lines projected from the last real-time candle.
Demand Path (Blue Dashed Line): Points from the current price to the center of the nearest unmitigated demand zone. It acts as a potential support target.
Supply Path (Red Dashed Line): Points from the current price to the center of the nearest unmitigated supply zone. It acts as a potential resistance target.
4. Basic Trading Strategies
Confluence Strategy: Look for buying opportunities when the price pulls back to a blue demand zone while the candles are green (uptrend). Look for selling opportunities when the price rallies to a red supply zone with red candles (downtrend).
Breakout Strategy: Use the white or purple candles as an aggressive entry signal in the direction of the breakout. The stop-loss could be placed on the other side of the breakout candle.
Range Strategy: When the price is trapped between a clear supply and demand zone (with no breakout candles), you can trade the bounces between them until one zone is broken with a white or purple candle, signaling the end of the range.
5. Indicator Settings (Parameters)
You can customize every aspect of the indicator in its settings panel (the options are self-explanatory in the indicator's menu).
๐ฝ PriceAction & SmartMoney โ Galaxy [VNFlow]Contact and discussion to use advanced tools to support your trading strategy
Email: hasobin@outlook.com
Phone: 0373885338
See you,
Liquidity Rush (VWAP ร Avg Daily Vol in Cr)dfsdfsdfsdfsdethrfgjnhgxnbfghshsrhdfhdfhgfhgsfhsdghsdghgfh
SOT & SA Detector ProSOT & SA Detector Pro- Advanced Reversal Pattern Recognition
OVERVIEW
The SOT & SA Detector is an educational indicator designed to identify potential market reversal points through systematic analysis of candlestick patterns, volume confirmation, and price wave structures. SOT (Shorting of Thrust) signals suggest potential bearish reversals after upward price movements, while SA (Selling Accumulation) signals indicate possible bullish reversals following downward trends. This tool helps traders recognize key market transition points by combining multiple technical criteria for enhanced signal reliability.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW IT WORKS
Technical Methodology
The indicator employs a multi-factor analysis approach that evaluates:
Wave Structure Analysis: Identifies minimum 2-bar directional waves (upward for SOT, downward for SA)
Price Delta Validation: Ensures closing price changes remain within specified percentage thresholds (default 0.3%) best 0.1.
Candlestick Tail Analysis: Measures rejection wicks using configurable tail multipliers
Volume Confirmation: Requires increased volume compared to previous periods
Pattern Confirmation: Validates signals through subsequent price action
Signal Generation Process
Pattern Recognition: Scans for qualifying candlestick formations with appropriate tail characteristics
Volume Verification: Confirms patterns with volume expansion using adjustable multiplier
Price Confirmation: Validates signals when price breaks and closes beyond pattern extremes
Signal Display: Places labeled markers and draws horizontal reference levels
Mathematical Foundation
Delta calculation: math.abs(close - close ) / close <= deltaPercent / 100
Tail analysis: (high - close ) >= tailMultiplier * (close - low ) for SOT
Volume filter: volume >= volume * volumeFactor
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
KEY FEATURES
Dual Pattern Recognition: Identifies both bullish (SA) and bearish (SOT) reversal candidates
Volume Integration: Incorporates volume analysis for enhanced signal validation
Customizable Parameters: Adjustable wave length, delta percentage, tail multiplier, and volume factor
Visual Clarity: Color-coded bar highlighting, labeled signals, and horizontal reference levels
Time-Based Filtering: Configurable analysis period to focus on recent market activity
Non-Repainting Signals: Confirmed signals remain stable and do not change with new price data
Alert System: Built-in notifications for both initial signals and subsequent confirmations
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW TO USE
Signal Interpretation
Red SOT Labels: Appear above potential bearish reversal candles with downward-pointing markers
Green SA Labels: Display below potential bullish reversal candles with upward-pointing markers
Horizontal Lines: Extend from signal levels to provide ongoing reference points
Bar Coloring: Highlights qualifying pattern candles for visual emphasis
Trading Application
This indicator serves as an educational tool for pattern recognition and should be used in conjunction with additional analysis methods. Consider SOT signals as potential areas of selling pressure following upward moves, while SA signals may indicate buying interest after downward price action.
Best Practices
Combine with trend analysis and support/resistance levels
Consider overall market context and timeframe alignment
Use proper risk management techniques
Validate signals with additional technical indicators
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SETTINGS
Analysis Days (Default: 20)
Controls the lookback period for signal detection. Higher values extend historical analysis while lower values focus on recent activity.
Minimum Bars in Wave (Default: 2)
Sets the minimum consecutive bars required to establish directional wave patterns. Increase for stronger trend confirmation.
Max Close Change % (Default: 0.3) best 0.1.
Defines acceptable closing price variation between consecutive bars. Lower values require tighter price consolidation.
Tail Multiplier (Default: 1.0) best 1.5 or more.
Adjusts sensitivity for candlestick tail analysis. Higher values require more pronounced rejection wicks.
Volume Factor (Default: 1.0)
Sets volume expansion threshold compared to previous period. Values above 1.0 require volume increases.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
LIMITATIONS
Market Conditions
May produce false signals in highly volatile or low-volume conditions
Effectiveness varies across different market environments and timeframes
Requires sufficient volume data for optimal performance
Signal Timing
Signals appear after pattern completion, not in real-time during formation
Confirmation signals depend on subsequent price action
Historical signals do not guarantee future market behavior
Technical Constraints
Limited to analyzing price and volume data only
Does not incorporate fundamental analysis or external market factors
Performance may vary significantly across different trading instruments
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
IMPORTANT DISCLAIMERS
This indicator is designed for educational purposes and technical analysis learning. It does not constitute financial advice, investment recommendations, or trading signals. Past performance does not guarantee future results. Trading involves substantial risk of loss, and this tool should be used alongside proper risk management techniques and additional analysis methods.
Always conduct thorough analysis using multiple indicators and consider market context before making trading decisions. The SOT & SA patterns represent potential reversal points but do not guarantee price direction changes.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Credits: Original concept and Pine Script implementation by Everyday_Trader_X
Version: Pine Script v6 compatible
Category: Technical Analysis / Reversal Detection
Overlay: Yes (displays on price chart)
Market Cipher Style Divergence DetectorMarket Cipher B Divergence Indicator โ Description
This indicator is a custom implementation inspired by Market Cipher B, focusing on detecting bullish and bearish divergences between price action and a composite oscillator.
Key Features:
Composite Oscillator: Combines WaveTrend, RSI, and Stochastic RSI to mimic Market Cipher Bโs momentum oscillator.
Pivot Detection: Automatically identifies swing highs and lows in price to locate potential reversal points.
Divergence Signals:
Regular Bullish Divergence: Price forms lower lows while oscillator forms higher lows โ indicating potential bullish reversal.
Hidden Bullish Divergence: Price forms higher lows while oscillator forms lower lows โ signaling continuation of an uptrend.
Regular Bearish Divergence: Price forms higher highs while oscillator forms lower highs โ signaling potential bearish reversal.
Hidden Bearish Divergence: Price forms lower highs while oscillator forms higher highs โ indicating continuation of a downtrend.
Price Chart Alerts: Divergence signals are plotted directly on the price chart for easy visual identification.
Customizable Pivot Lookbacks: User inputs allow tuning sensitivity for pivot detection and signal frequency.
Oscillator Plot: The underlying oscillator is plotted for reference, providing insight into momentum strength.
Intended Use:
This tool is designed to help traders spot early trend reversals and continuations by identifying divergences, which are powerful signals often missed by simple momentum indicators alone.
Note:
As with any technical indicator, divergences should be confirmed with additional tools or price action analysis to reduce false signals.
9 EMA & 150 EMA Crossover Arrows//@version=5
indicator("9 EMA & 150 EMA Crossover Arrows", overlay=true)
// EMA definitions
ema9 = ta.ema(close, 9)
ema150 = ta.ema(close, 150)
// Candle conditions
isBullish = close > open
isBearish = close < open
// Crossover logic
bullishCross = ta.crossover(ema9, ema150)
bearishCross = ta.crossunder(ema9, ema150)
// Entry conditions
bullishSignal = bullishCross and isBullish and close >= ema9
bearishSignal = bearishCross and isBearish and close <= ema9
// Plot arrows
plotshape(bullishSignal, title="Bullish Entry", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(bearishSignal, title="Bearish Entry", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
// Plot EMAs
plot(ema9, color=color.orange, title="EMA 9")
plot(ema150, color=color.blue, title="EMA 150")
MACD-VWAP-BB Oscillator with DivergenceHow to Use the Indicator for Trading
Hereโs how to interpret and use the indicatorโs signals as a beginner:
Look for Buy Signals:
Green Triangle Up (โBUYโ):
Appears when MACD, VWAP, and Bollinger Bands all signal a strong bullish trend.
The ribbon turns green, and the background fill is green.
Action: Consider buying the asset, as this is a strong signal the price may rise.
Example: If you see a green triangle on a 1-hour chart for BTC/USD, it suggests a potential upward move.
Green Circle (โDiv Buyโ):
Indicates a bullish divergence, where the price is dropping, but the indicator suggests the downtrend may weaken or reverse.
This is a weaker signal than the triangle but can be an early warning of a trend change.
Action: Watch closely or consider a smaller buy position, especially if followed by a triangle signal.
Look for Sell Signals:
Red Triangle Down (โSELLโ):
Appears when all three indicators signal a strong bearish trend.
The ribbon turns red, and the background fill is red.
Action: Consider selling or shorting the asset, as the price may fall.
Example: A red triangle on a stock chart suggests itโs time to exit a long position or go short.
Red Circle (โDiv Sellโ):
Indicates a bearish divergence, where the price is rising, but the indicator suggests the uptrend may weaken or reverse.
Action: Be cautious with long positions or consider preparing to sell, especially if a triangle signal follows.
Check the Ribbon and Background:
Green Ribbon and Fill: Confirms a bullish trend. Feel more confident in buy signals.
Red Ribbon and Fill: Confirms a bearish trend. Feel more confident in sell signals.
The ribbonโs spread (how far apart the lines are) shows trend strength: wider = stronger trend, tighter = weaker trend.
Use Divergence Signals for Early Warnings:
Divergence signals (circles) often appear before triangle signals, hinting at potential reversals.
Example: A green circle (โDiv Buyโ) on a downtrending chart suggests the price might stop falling soon. Wait for a green triangle to confirm before acting.
Choose a Timeframe:
Short-term traders (day trading): Use shorter timeframes like 5-minute, 15-minute, or 1-hour charts.
Swing traders: Use 4-hour or daily charts for signals that last days or weeks.
Long-term investors: Use daily or weekly charts for bigger trends.
Example: On a 4-hour chart, a green triangle might signal a trend lasting hours to days.
Combine with Price Action:
Donโt rely on the indicator alone. Look at the candlesticks:
Are there support/resistance levels nearby?
Is the price near a key level (e.g., a moving average or trendline)?
Use the indicator to confirm what you see in the price chart.
Risk Management:
Set Stop-Losses: Place a stop-loss below recent lows for buys or above recent highs for sells to limit losses.
Position Sizing: Only risk a small portion of your account (e.g., 1-2%) per trade.
Wait for Confirmation: Triangle signals are stronger than divergence signals. Consider waiting for a triangle before entering a trade, especially as a beginner.
Example Trading Scenario
Letโs say youโre trading EUR/USD on a 1-hour chart:
You see a green circle (โDiv Buyโ) at the bottom of the indicator panel, and the price is near a support level (a price where it stopped falling before).
This suggests a potential reversal, but itโs not confirmed yet.
Action: Watch closely but donโt enter a trade yet.
A few candles later, a green triangle (โBUYโ) appears, the ribbon turns green, and the background fill is green.
This confirms a strong bullish signal (MACD, VWAP, and Bollinger Bands all agree).
Action: Enter a buy trade, set a stop-loss below the recent low, and aim for a target near a resistance level or a 1:2 risk-reward ratio.
Later, you see a red circle (โDiv Sellโ) while the price is still rising.
This warns that the uptrend might weaken.
Action: Tighten your stop-loss or prepare to exit if a red triangle appears.
A red triangle (โSELLโ) appears, with the ribbon and fill turning red.
Action: Exit the buy trade or consider a short position.
Tips for Beginners
Start with a Demo Account: Practice using the indicator on a TradingView paper trading account or a brokerโs demo account to avoid risking real money.
Test on Different Assets: Try the indicator on stocks, forex, or crypto to see where it performs best.
Avoid Overtrading: Wait for clear triangle signals for stronger trades. Divergence signals (circles) are less reliable, so use them as warnings.
Learn Basic Chart Patterns: Combine the indicator with simple patterns like support/resistance or candlestick patterns (e.g., pin bars) for better results.
Adjust Settings Carefully: The default settings (e.g., MACD 12,26,9; ribbon 8,13,21,34) are balanced, but you can tweak them in the indicator settings to match your trading style.
Common Questions
What timeframe should I use?
It depends on your trading style. Day traders might use 5-minute or 1-hour charts; swing traders might use 4-hour or daily charts. Test different timeframes to find what suits you.
Are divergence signals reliable?
Divergence signals (green/red circles) are early warnings and less reliable than triangle signals. Use them to prepare for a trade but wait for triangles for confirmation.
Can I use this on any asset?
Yes! It works on stocks, forex, crypto, or commodities. Adjust settings like pivotLookback or smoothWavy for volatile assets like crypto.
What if I see conflicting signals?
If a green circle appears but no green triangle, the trend isnโt confirmed yet. Wait for alignment of all indicators (triangle signal) for stronger trades.
How to Customize (Optional)
If you want to tweak the indicator:
Open the indicator settings (double-click its name on the chart).
Adjust Pivot Lookback for Divergence (default 5) to make divergence signals more frequent (smaller number) or less frequent (larger number).
Change Signal Line Smoothing Period (default 9) for a smoother or wavier signal line.
Modify EMA Ribbon Periods (default 8,13,21,34) for a tighter or wider ribbon.