Price Action: Engulfing PatternsBullish Engulfing Pattern Detection: A bullish engulfing pattern is identified when the previous candle is bearish (close < open ), the current candle is bullish (close > open), and the current candle's body engulfs the previous candle's body (close >= open and open <= close ).
Bearish Engulfing Pattern Detection: A bearish engulfing pattern is identified when the previous candle is bullish (close > open ), the current candle is bearish (close < open), and the current candle's body engulfs the previous candle's body (open >= close and close <= open ).
Plotting the Patterns: The plotshape function is used to mark the detected patterns on the chart. Bullish engulfing patterns are marked below the bar with a green upward label, while bearish engulfing patterns are marked above the bar with a red downward label.
Candlestick analysis
Chandelier Exit ProCe script Pine Script v5 met en œuvre une version avancée de l'indicateur Chandelier Exit, utilisé pour déterminer des niveaux de stop-loss dynamiques basés sur la volatilité du marché. Il inclut des fonctionnalités améliorées telles que l'ATR dynamique, la gestion des risques, l'analyse multi-timeframe (MTF) et des alertes personnalisables.
Ustad e Muhtram Buy/Sell Signal// Pine Script (TradingView) for Custom High-Accuracy Indicator
//@version=5
indicator("Ustad e Muhtram Buy/Sell Signal", overlay=true)
// Define inputs
fastLength = input(9, title="Fast EMA")
slowLength = input(21, title="Slow EMA")
rsiLength = input(14, title="RSI Length")
adxLength = input(14, title="ADX Length")
atrLength = input(14, title="ATR Length")
// Calculate EMAs
emaFast = ta.ema(close, fastLength)
emaSlow = ta.ema(close, slowLength)
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// ADX Calculation
= ta.dmi(adxLength)
// ATR Calculation
atr = ta.atr(atrLength)
// Buy/Sell Conditions
buyCondition = ta.crossover(emaFast, emaSlow) and rsi > 50 and adx > 20
sellCondition = ta.crossunder(emaFast, emaSlow) and rsi < 50 and adx > 20
// Plot Buy/Sell Signals
plotshape(buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY Signal")
plotshape(sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL Signal")
MCR Candles IndicatorThis indicator will do the following:
For a bearish blue momentum candle:
1. The candle must be a bearish candle.
2. Price must be trading below the 20ema.
3. The body of the candle must be larger than the ATR 7 period.
4. Make the color of the candle that meets these three criteria blue.
For a bullish yellow momentum candle:
1. The candle must be a bullish candle.
2. Price must be trading above the 20ema.
3. The body of the candle must be larger than the ATR 7 period.
4. Make the color of the candle that meets these three criteria yellow.
VWAP [cryptalent]VWAP Indicator with Adjustable Source
Overview
This TradingView indicator calculates Daily, Weekly, and Monthly VWAP (Volume Weighted Average Price) with the flexibility to select different price sources (Open, High, Low, Close, HLC3, etc.). It also displays previous period VWAP levels, helping traders analyze past liquidity zones.
Key Features:
✅ Adjustable Source – Users can choose the price used for VWAP calculations (e.g., Close, High, Low, Open).
✅ Multi-Timeframe VWAP – Tracks Daily, Weekly, and Monthly VWAP to provide a broader market view.
✅ Historical VWAP Levels – Displays previous VWAP values for comparison and reference.
✅ Step Line Style – Ensures clear distinction between different periods and prevents overlapping.
✅ Visible in the Price Scale – The latest and historical VWAP values are displayed in the right-hand price scale for easy reference.
Customization:
You can easily modify the input settings to match your trading style.
Adjust the VWAP source price to test different perspectives (e.g., Open vs. High vs. Close).
[TehThomas] - MA Cross with DisplacementThis TradingView script, "MA Cross with Displacement," is designed to detect potential long and short trade opportunities based on moving average (MA) crossovers combined with price displacement confirmation. The script utilizes two simple moving averages (SMA) and highlights potential trade signals when a crossover occurs alongside a strong price movement (displacement).
Why This Indicator is Useful
This indicator enhances the standard moving average crossover strategy by incorporating a displacement condition, making trade signals more reliable. Many traders rely on moving average crossovers to determine trend reversals, but false signals often occur due to minor price fluctuations. By requiring a significant price movement (displacement), this indicator helps filter out weak or insignificant crossovers, leading to more high-probability trade opportunities.
How It Works
Calculates Two Moving Averages (MA)
The user can set two different MA periods:
MA 1 (blue line): Default period is 9 (shorter-term trend).
MA 2 (red line): Default period is 21 (longer-term trend).
These moving averages smooth out price fluctuations to identify overall trends.
Detects Crossovers
Bullish crossover: The blue MA crosses above the red MA + displacement candle → Potential long signal.
Example of bullish cross with displacement:
Bearish crossover: The blue MA crosses below the red MA + displacement candle → Potential short signal.
Example of bearish cross with displacement:
Confirms Displacement (Strong Price Move)
A price displacement threshold is used (default: 1.1% of the previous candle size).
For a valid trade signal, a crossover must occur alongside a strong price movement.
Bullish Displacement Condition: Price increased by more than the threshold.
Bearish Displacement Condition: Price decreased by more than the threshold.
Visual Indicators on the Chart
Bars are colored green when there is a bullish displacement.
Bars are colored red when there is a bearish displacement.
These color changes help traders quickly identify potential trade setups.
How to Use the Indicator
Add the Script to Your Chart
Copy and paste the script into TradingView's Pine Script Editor.
Click "Add to Chart" to activate it.
Customize the Settings
Adjust the moving average periods to fit your trading strategy.
Modify the displacement threshold based on market volatility.
Change the bar colors for better visualization.
Look for Trade Signals
Long Trade (Buy Signal)
The blue MA crosses above the red MA (bullish crossover).
A green bar appears, confirming bullish displacement.
Short Trade (Sell Signal)
The blue MA crosses below the red MA (bearish crossover).
A red bar appears, confirming bearish displacement.
Use in Conjunction with Other Indicators
This indicator works best when combined with support & resistance levels, RSI, MACD, or volume analysis to improve trade accuracy.
Final Thoughts
The MA Cross with Displacement Indicator improves the reliability of moving average crossovers by requiring strong price movements to confirm a trade signal. This helps traders avoid false breakouts and weak trends, making it a powerful tool for identifying high-probability trades.
__________________________________________
Thanks for your support!
If you found this idea helpful or learned something new, drop a like 👍 and leave a comment—I’d love to hear your thoughts! 🚀
Make sure to follow me for more price action insights, free indicators, and trading strategies. Let’s grow and trade smarter together! 📈✨
CRT Strategy with 2:1 Risk/RewardHigher Timeframe Range: The strategy calculates the range from the most recent candle on the 1-hour chart.
Entry Conditions: The entry signals use a simple crossover (or you can replace this with any other condition you'd like). A long entry happens when the current close crosses above the highest close of the past 10 bars, and a short entry happens when the current close crosses below the lowest close.
Stop Loss & Take Profit: The stop loss is set based on the HTF range, and the take profit is 2x the range for a 2:1 risk-to-reward ratio.
Plotting: The stop loss and take profit levels are plotted on the chart for visualization.
Customization:
You can adjust the timeframe (htf) to any higher timeframe you'd like (e.g., 1-hour, 4-hour).
The entry condition (crossover and crossunder) is just an example. You can replace this with any other strategy or indicator.
You can also tweak the risk-to-reward ratio or other aspects of the strategy
24-Hour Volume and Fibonacci Levels StrategyExplanation:
24-Hour High and Low: The script tracks the highest and lowest prices within the past 24 hours.
Fibonacci Levels: It calculates the Fibonacci retracement levels (23.6%, 38.2%, 61.8%, and 78.6%) based on the high and low of the past 24 hours.
Volume: The script plots a 20-period simple moving average (SMA) of the volume to give an indication of the market's activity.
Plotting Fibonacci Levels: The Fibonacci retracement levels are plotted on the chart with distinct colors.
EMA Crossover Trading Strategy - SivaBuy Signal When 5EMA cross above 21EMA
Sell Signal When 5EMA Cross below 21EMA
AFX EBPTitle: Engulfing Day Trading Strategy – Version 1.0
Description:
The Engulfing Day Trading Strategy is a simple yet effective tool for identifying bullish and bearish engulfing candlestick patterns. This indicator helps traders spot potential trend reversals by marking engulfing patterns on the chart and plotting key percentage retracement levels.
🔹 Features:
✅ Detects Bullish & Bearish Engulfing Patterns
✅ Trend-Based Filtering using SMA (50 & 200)
✅ Automatic Box Drawing around engulfing candles
✅ Key Percentage Levels (20%, 50%, 75%) for trade planning
✅ Customizable Alerts for real-time trade signals
📌 How It Works:
Bullish Engulfing: The current green candle completely engulfs the previous red candle.
Bearish Engulfing: The current red candle completely engulfs the previous green candle.
The indicator plots retracement levels from the high to low of the engulfing structure.
Boxes highlight the engulfing zone for easy visualization.
🎯 Trading Strategy:
For bullish setups: Look for price action above the 50% retracement level for potential buys.
For bearish setups: Watch for price breaking below the 50% retracement level for potential sells.
This is a great tool for intraday traders looking for price action setups with high-probability trade opportunities. 🚀
Wick Size in USD with 10-Bar AverageWick Size in USD with 10-Bar Average
Version: 1.0
Author: QCodeTrader
🔍 Overview
This indicator converts the price wicks of your candlestick chart into USD values based on ticks, providing both raw and smoothed data via a 10-bar simple moving average. It helps traders visualize the monetary impact of price extremes, making it easier to assess volatility, potential risk, and plan appropriate stop loss levels.
⚙️ Key Features
Tick-Based Calculation:
Converts wick sizes into ticks (using a fixed tick size of 0.01, typical for stocks) and then into USD using a customizable tick value.
10-Bar Moving Average:
Smooths out the wick values over the last 10 bars, giving you a clearer view of average wick behavior.
Bullish/Bearish Visual Cues:
The chart background automatically highlights bullish candles in green and bearish candles in red for quick visual assessment.
Stop Loss Optimization:
The indicator highlights long wick sizes, which can help you set more accurate stop loss levels. Even when the price moves in your favor, long wicks may indicate potential reversals—allowing you to account for this risk when planning your stop losses.
User-Friendly Customization:
Easily adjust the USD value per tick through the settings to tailor the indicator to your specific instrument.
📊 How It Works
Wick Calculation:
The indicator calculates the upper and lower wicks by measuring the distance between the candle’s high/low and its body (open/close).
Conversion to Ticks & USD:
These wick sizes are first converted from price points to ticks (dividing by a fixed tick size of 0.01) and then multiplied by the user-defined tick value to convert the measurement into USD.
Smoothing Data:
A 10-bar simple moving average is computed for both the upper and lower wick values, providing smoothed data that helps identify trends and deviations.
Visual Representation:
Columns display the raw wick sizes in USD.
Lines indicate the 10-bar moving averages.
Background Color shifts between green (bullish) and red (bearish) based on candle type.
⚡ How to Use
Add the Indicator:
Apply it to your chart to begin visualizing wick sizes in monetary terms.
Customize Settings:
Adjust the Tick Value in USD in the settings to match your instrument’s tick value.
(Note: The tick size is fixed at 0.01, which is standard for many stocks.)
Optimize Your Stop Loss:
Analyze the raw and averaged wick values to understand volatility. Long wicks—even when the price moves in your favor—may indicate potential reversals. This insight can help you set more accurate stop loss levels to protect your gains.
Analyze:
Use the indicator’s data to gauge market volatility and assess the significance of price movements, aiding in more informed trading decisions.
This indicator is perfect for traders looking to understand the impact of extreme price movements in monetary terms, optimize stop loss levels, and effectively manage risk across stocks and other instruments with similar tick structures.
Buy & Sell Zone IndicatorFeatures:
✅ Uses RSI, MACD, MA, EMA, BB, Fibonacci, and Support & Resistance
✅ Displays only Buy (Green) and Sell (Red) Zones
✅ No distractions – just clear zones for entry & exit
✅ Works on all time frames
Enhanced SPY Rhythm Formations Detector with Alerts//@version=6
indicator("Enhanced SPY Rhythm Formations Detector with Alerts", overlay=true)
// Inputs
maLength1 = input.int(50, title="EMA Length 1", minval=1)
maLength2 = input.int(200, title="EMA Length 2", minval=1)
shortMaLength1 = input.int(5, title="Short EMA Length 1", minval=1)
shortMaLength2 = input.int(10, title="Short EMA Length 2", minval=1)
shortMaLength3 = input.int(20, title="Short EMA Length 3", minval=1)
rsiLength = input.int(14, title="RSI Length", minval=1)
macdShort = input.int(12, title="MACD Short Length", minval=1)
macdLong = input.int(26, title="MACD Long Length", minval=1)
macdSignal = input.int(9, title="MACD Signal Length", minval=1)
atrLength = input.int(14, title="ATR Length", minval=1)
atrMultiplier = input.float(1.5, title="ATR Multiplier for Target Price", minval=0.1)
// Calculations
ma1 = ta.ema(close, maLength1)
ma2 = ta.ema(close, maLength2)
shortMa1 = ta.ema(close, shortMaLength1)
shortMa2 = ta.ema(close, shortMaLength2)
shortMa3 = ta.ema(close, shortMaLength3)
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, macdShort, macdLong, macdSignal)
macdHist = macdLine - signalLine
atr = ta.atr(atrLength)
// Moving Average Crossovers
goldenCross = ta.crossover(ma1, ma2)
deathCross = ta.crossunder(ma1, ma2)
// Short MAs Crossovers
shortCross1 = ta.crossover(shortMa1, shortMa2)
shortCross2 = ta.crossover(shortMa2, shortMa3)
shortCross3 = ta.crossover(shortMa1, shortMa3)
shortCross1Down = ta.crossunder(shortMa1, shortMa2)
shortCross2Down = ta.crossunder(shortMa2, shortMa3)
shortCross3Down = ta.crossunder(shortMa1, shortMa3)
// RSI Divergence Detection
rsiHigh = ta.highest(rsi, 20)
rsiLow = ta.lowest(rsi, 20)
priceHigh = ta.highest(high, 20)
priceLow = ta.lowest(low, 20)
bearishDivergence = (high == priceHigh and rsi < rsiHigh)
bullishDivergence = (low == priceLow and rsi > rsiLow)
// MACD Histogram Zero Cross
macdZeroCrossUp = ta.crossover(macdHist, 0)
macdZeroCrossDown = ta.crossunder(macdHist, 0)
// Day Trading Signals
dayLongEntry = shortCross1 and rsi < 30
dayShortEntry = shortCross1Down and rsi > 70
// Swing Trading Signals
swingLongEntry = goldenCross and macdHist > 0
swingShortEntry = deathCross and macdHist < 0
// Next Bar Prediction
nextBarUp = close > open and close + (atr * atrMultiplier) > high
nextBarDown = close < open and close - (atr * atrMultiplier) < low
// Shaded Bar Shadow for Next Bar Prediction
bgcolor(nextBarUp ? color.new(color.green, 90) : na, title="Next Bar Up")
bgcolor(nextBarDown ? color.new(color.red, 90) : na, title="Next Bar Down")
// Blinking Alerts
var bool blink = false
blink := not blink
if (dayLongEntry)
label.new(bar_index, low, text="Day Long Entry", color=blink ? color.green : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Day Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (dayShortEntry)
label.new(bar_index, high, text="Day Short Entry", color=blink ? color.red : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Day Short Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingLongEntry)
label.new(bar_index, low, text="Swing Long Entry", color=blink ? color.blue : color.white, style=label.style_label_up, textcolor=color.black, size=size.small)
alert("Swing Long Entry Signal Detected!", alert.freq_once_per_bar_close)
if (swingShortEntry)
label.new(bar_index, high, text="Swing Short Entry", color=blink ? color.orange : color.white, style=label.style_label_down, textcolor=color.black, size=size.small)
alert("Swing Short Entry Signal Detected!", alert.freq_once_per_bar_close)
// Plotting
plot(ma1, color=color.blue, title="EMA Length 1 (50)")
plot(ma2, color=color.red, title="EMA Length 2 (200)")
plot(shortMa1, color=color.green, title="Short EMA Length 1 (5)")
plot(shortMa2, color=color.orange, title="Short EMA Length 2 (10)")
plot(shortMa3, color=color.purple, title="Short EMA Length 3 (20)")
Custom Bar Coloring_WKColor your bar display according to the relative positions comparing to SMA.
This is for WK layout.
Custom Bar Coloring_DailyColor your bar according to SMA. This is for daily layout.
Suggest to trade only when bar color=black or red.
Reversal Trade strategya simple trading strategy based on the reversal candlestick pattern (Morning/Evening star).
FVG Reversal Sentinel🔵 FVG Reversal Sentinel – Multi-Timeframe Fair Value Gap Indicator
The FVG Reversal Sentinel is a powerful TradingView indicator designed to help traders identify and track Fair Value Gaps (FVGs) across multiple timeframes, all within a single chart.
This tool allows you to select up to five separate timeframes, ensuring you never miss key market shifts, whether you are scalping, day trading, or swing trading. You can use this indicator in any asset (Cryptos, Futures, Indices, Forex Pairs, etc.).
🔵 - Key Features -
Multi-Timeframe FVG Tracking – Select and display up to five different timeframes on one chart, providing a comprehensive view of market structure.
Customizable Colors – Adjust bullish and bearish FVG colors to match your chart theme for a seamless trading experience.
Enhanced Market Context – Quickly identify key liquidity zones and refine your entries and exits with precision.
Hide the lower timeframes FVGs to get a clear view in a custom timeframe.
Show or hide mitigated FVGs to declutter the chart.
FVGs boxes are going to be displayed only when the candle bar closes
FVGs are going to be mitigated only when the body of the candle closes above or below the FVG area.
No repainting
Whether you're looking to fine-tune your entries or gain a broader market perspective, the FVG Reversal Sentinel indicator ensures you have the tools to stay ahead of price action and capitalize on market inefficiencies.
🔵 - Customization-
You can change the indicator settings as you see fit to achieve the best results for your use case.
TIMEFRAMES
This indicator provides the ability to select up to 5 timeframes. These timeframes are based on the trader's timeframes including any custom timeframes.
Select the desired timeframe from the options list.
Add the label text you would like to show for the selected timeframe.
Check or uncheck the box to display or hide the timeframe from your chart.
FVG SETTINGS
Length of boxes: allows you to select the length of the box that is going to be displayed for the FVGs.
Delete boxes after fill?: allows you to show or hide mitigated FVGs on your chart.
Hide FVGs lower than enabled timeframes?: allows you to show or hide lower timeframe FVGs on your chart. Example - You are in a 15 minutes timeframe chart, if you choose to hide lower timeframe FVGs you will not be able to see 5 minutes FVG defined in your Timeframes Settings, only 15 minutes or higher timeframe FVGs will be displayed on your chart.
BOX VISUALS
Bullish FVG box color: the color and opacity of the box for the bullish FVGs.
Bearish FVG box color: the color and opacity of the box for the bearish FVGs.
LABELS VISUALS
Bullish FVG labels color: the color for bullish labels.
Bearish FVG labels color: the color for bearish labels.
Labels size: the size of the text displayed in the labels.
Labels position: the position of the label inside the FVGs boxes (right, left or center).
BORDER VISUALS
Border width: the width of the border (the thickness).
Bullish FVG border color: the color and the opacity of the bullish box border.
Bearish FVG border color: the color and the opacity of the bearish box border.
🔵 - How to use the indicator -
Just add the indicator in your chart and click in the settings option to customize it.
Make sure you select the desired timeframes and set the colors and opacity for the FVGs boxes.
This indicator can be used in many trading strategies, such as:
SILVER BULLET
iFVG
iFVG RETEST
These strategies are based on the use of FVGs, this tool can help you analyze the market and make the right decision.
🔵 - How was the indicator designed? -
I have spent a lot of time testing other open source indicators from the community. All of these indicators do a great job, but they have a problem, they not only mitigate FVGs when a candle closes above or below the FVG, they also mitigate FVGs when the candle closes exactly to the tick (not above or below the FVG). This is a problem for many strategies that rely on FVGs mitigation.
What makes this indicator different is that it focuses on just mitigating imbalances at the right time for these strategies.
I have taken ideas and some pieces of code from many community indicator developers, such as:
@twingall
@tflab
@marktools
@nacho-fx
@pmk07
... and many other people, to whom I thank for their valuable work and have allowed me to create this tool by making modifications to their source code.
🔵 - Disclaimer -
This tool is intended solely for informational and educational purposes and should not be regarded as financial, investment, or trading advice. It's not designed to predict market movements or offer specific recommendations. Users should be aware that past performance is not indicative of future results and should not rely on any indicator for financial decisions.