Candlestick analysis
AntoQQE - BarsThis script is a variation on the QQE (Quantitative Qualitative Estimation) concept applied to RSI. It calculates a smoothed RSI line, then determines a “Dynamic Average Range” around that line. By tracking the RSI’s movement relative to these upper (shortBand) and lower (longBand) levels, it determines when price momentum shifts enough to suggest a possible trend flip. The script plots color-coded candles based on these momentum conditions:
• RSI Calculation and Smoothing
An RSI value is obtained over a specified period, then smoothed by an EMA. This smoothed RSI serves as the core measure of momentum.
• Dynamic Average Range (DAR)
The script computes the volatility of the smoothed RSI using two EMAs of its bar-to-bar movements. It multiplies this volatility factor by a QQE multiplier to create upper and lower bands that adapt to changes in RSI volatility.
• Trend Flips
When the smoothed RSI crosses above or below its previous band level (shortBand or longBand), the script interprets this as a shift in momentum and sets a trend state accordingly (long or short).
• Candle Coloring
Finally, the script colors each candle according to how far the smoothed RSI is from a neutral baseline of 50:
Candles turn green when the RSI is sufficiently above 50, suggesting bullish momentum.
Candles turn red when the RSI is sufficiently below 50, indicating bearish momentum.
Candles turn orange when they are near the 50 level, reflecting a more neutral or transitional phase.
Traders can use these colored candles to quickly see when the RSI’s momentum has moved into overbought/oversold zones—or is shifting between bullish and bearish conditions—without needing to consult a separate oscillator window. The adaptive nature of the band calculations can help in spotting significant shifts in market sentiment and volatility.
Hammer Candle Alert//@version=5
indicator("Hammer Candle Alert", overlay=true)
// Hammer Candle ki pehchan ke liye conditions
body_size = math.abs(close - open)
upper_shadow = high - math.max(close, open)
lower_shadow = math.min(close, open) - low
total_range = high - low
is_hammer = (lower_shadow >= 2 * body_size) and (upper_shadow <= body_size * 0.5) and (total_range > 0)
// Alert generate karne ke liye condition
if (is_hammer)
alert("Hammer Candle Formed!", alert.freq_once_per_bar_close)
// Hammer Candle ko chart par dikhane ke liye
plotshape(series=is_hammer, location=location.belowbar, color=color.green, style=shape.labelup, text="Hammer")
High Probability Liquid Bar Signals high probability liquid bar and show if the red bar generates sell signal and if the green bar generates buy signal
ForexMasterStochastic//@version=5
indicator(title="ForexMasterStochastic", shorttitle="Stoch", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
periodK = input.int(14, title="%K Length", minval=1)
smoothK = input.int(3, title="%K Smoothing", minval=1)
periodD = input.int(3, title="%D Smoothing", minval=1)
k = ta.sma(ta.stoch(close, high, low, periodK), smoothK)
d = ta.sma(k, periodD)
plot(k, title="%K", color=#2962FF)
plot(d, title="%D", color=#FF6D00)
h0 = hline(80, "Upper Band", color=#787B86)
hline(50, "Middle Band", color=color.new(#787B86, 50))
h1 = hline(20, "Lower Band", color=#787B86)
fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Background")
Weekend Filter Candlestick [odnac]Custom Candlestick Chart with Weekend Visibility Toggle
This indicator customizes the appearance of candlesticks by using a dark gray theme for better visibility.
Additionally, it provides an option to hide weekend candles, allowing traders to focus on weekday price action.
Features:
✅ Dark gray candlestick design for a clean and minimalistic look.
✅ Weekend hiding option – Users can enable or disable weekend candles with a simple toggle.
✅ Helps traders avoid weekend noise and focus on key market movements.
How to Use:
Add the indicator to your chart.
Use the "Hide Weekend Candles" setting to toggle weekend visibility.
When enabled, weekend candles will be hidden for a cleaner chart.
When disabled, all candles, including weekends, will be displayed.
This indicator is useful for traders who prefer to analyze weekday trends without unnecessary weekend fluctuations. 🚀
YJ Trading Indicator - Advanced Patterns & Signals//@version=5
indicator("YJ Trading Indicator - Advanced Patterns & Signals", overlay=true)
// Moving Averages for trend confirmation
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
trendUp = ema50 > ema200
trendDown = ema50 < ema200
// Fibonacci Levels Calculation
pivotHigh = ta.highest(high, 50)
pivotLow = ta.lowest(low, 50)
fibLevels = array.new_float(6, 0.0)
array.set(fibLevels, 0, pivotHigh)
array.set(fibLevels, 1, pivotHigh - (pivotHigh - pivotLow) * 0.236)
array.set(fibLevels, 2, pivotHigh - (pivotHigh - pivotLow) * 0.382)
array.set(fibLevels, 3, pivotHigh - (pivotHigh - pivotLow) * 0.5)
array.set(fibLevels, 4, pivotHigh - (pivotHigh - pivotLow) * 0.618)
array.set(fibLevels, 5, pivotLow)
// Supertrend Indicator
= ta.supertrend(3, 14)
plot(supertrendLine, color=supertrendDirection == 1 ? color.green : color.red, title="Supertrend")
// RSI Divergence Detection
rsi = ta.rsi(close, 14)
bullishDivergence = rsi < 30 and ta.lowest(close, 5) == low
bearishDivergence = rsi > 70 and ta.highest(close, 5) == high
// MACD Crossover Detection
= ta.macd(close, 12, 26, 9)
macdBullishCross = ta.crossover(macdLine, signalLine)
macdBearishCross = ta.crossunder(macdLine, signalLine)
// Candlestick Pattern Detection
bullishEngulfing = close > open and close > high and open < close
bearishEngulfing = close < open and close < low and open > close
morningStar = close < open and (close - open ) < ta.atr(5) and close > open
eveningStar = close > open and (close - open ) < ta.atr(5) and close < open
doji = math.abs(close - open) < (high - low) * 0.1
spinningTop = (close - open) < (high - low) * 0.3 and (high - low) > ta.atr(5)
// Chart Patterns Detection
headAndShoulders = high > high and high > high and low < low and low < low
doubleTop = high == high and high < high
doubleBottom = low == low and low > low
ascendingTriangle = high > high and low > low
descendingTriangle = low < low and high < high
// Alerts & Plotting
plotshape(bullishEngulfing, location=location.belowbar, color=color.green, style=shape.labelup, title="Bullish Engulfing")
plotshape(bearishEngulfing, location=location.abovebar, color=color.red, style=shape.labeldown, title="Bearish Engulfing")
plotshape(morningStar, location=location.belowbar, color=color.blue, style=shape.triangleup, title="Morning Star")
plotshape(eveningStar, location=location.abovebar, color=color.orange, style=shape.triangledown, title="Evening Star")
plotshape(doubleTop, location=location.abovebar, color=color.red, style=shape.cross, title="Double Top")
plotshape(doubleBottom, location=location.belowbar, color=color.green, style=shape.cross, title="Double Bottom")
plotshape(ascendingTriangle, location=location.belowbar, color=color.blue, style=shape.flag, title="Ascending Triangle")
plotshape(descendingTriangle, location=location.abovebar, color=color.purple, style=shape.flag, title="Descending Triangle")
plotshape(macdBullishCross, location=location.belowbar, color=color.green, style=shape.arrowup, title="MACD Bullish Cross")
plotshape(macdBearishCross, location=location.abovebar, color=color.red, style=shape.arrowdown, title="MACD Bearish Cross")
alertcondition(bullishEngulfing, title="Bullish Engulfing Alert", message="Bullish Engulfing detected!")
alertcondition(bearishEngulfing, title="Bearish Engulfing Alert", message="Bearish Engulfing detected!")
alertcondition(macdBullishCross, title="MACD Bullish Crossover", message="MACD Bullish Cross detected!")
alertcondition(macdBearishCross, title="MACD Bearish Crossover", message="MACD Bearish Cross detected!")
Session Boxes//@version=6
indicator("Session Boxes", overlay=true)
// Sessions Definitionen
tokyo_start = timestamp(year(time), month(time), dayofmonth(time), 0, 0)
tokyo_end = timestamp(year(time), month(time), dayofmonth(time), 9, 0)
london_start = timestamp(year(time), month(time), dayofmonth(time), 7, 0)
london_end = timestamp(year(time), month(time), dayofmonth(time), 16, 0)
newyork_start = timestamp(year(time), month(time), dayofmonth(time), 12, 0)
newyork_end = timestamp(year(time), month(time), dayofmonth(time), 21, 0)
// Farben (dezent)
color_tokyo = color.rgb(204, 204, 204, 50)
color_london = color.rgb(170, 170, 170, 50)
color_newyork = color.rgb(136, 136, 136, 50)
// Funktion zum Zeichnen der Session-Boxen
sessionBox(startTime, endTime, sessionColor) =>
var int startIndex = na
var int endIndex = na
var float sessionHigh = na
var float sessionLow = na
isSession = (time >= startTime and time <= endTime)
if isSession
if na(startIndex)
startIndex := bar_index
sessionHigh := high
sessionLow := low
endIndex := bar_index
sessionHigh := math.max(sessionHigh, high)
sessionLow := math.min(sessionLow, low)
if not na(startIndex) and not na(endIndex)
box.new(left=int(startIndex), right=int(endIndex), top=sessionHigh, bottom=sessionLow, bgcolor=sessionColor, border_color=sessionColor)
// Sessions auf dem Chart zeichnen
sessionBox(tokyo_start, tokyo_end, color_tokyo)
sessionBox(london_start, london_end, color_london)
sessionBox(newyork_start, newyork_end, color_newyork)
RSI Buy & Sell Signalgenerates Buy and Sell signals using the Relative Strength Index (RSI) indicator on TradingView. The indicator allows users to customize the RSI period length, overbought level (default 70), and oversold level (default 30). A Buy signal is triggered when the RSI crosses above the oversold level, indicating a potential price reversal from a bearish trend, marked by a green triangle below the candlestick with the label BUY. Conversely, a Sell signal is generated when the RSI crosses below the overbought level, signaling a potential price reversal from a bullish trend, marked by a red triangle above the candlestick with the label SELL. The script also includes automatic alert notifications through the alertcondition() function, helping traders receive instant updates without constant chart monitoring.
Improved Trading Scriptits indicates the next candel. A highly accurate trend-following indicator for the 1-minute timeframe, designed for real-time execution in the Quotex OTC market.
Buy Signal: Appears below the candle → Next candle is bullish (green).
Sell Signal: Appears above the candle → Next candle is bearish (red).
This non-repainting indicator ensures precise signals for profitable trading.
Demand/Supply Absorption PatternHey everyone,
I'm publishing this indicator to seek feedback and support from the community.
This indicator is designed to identify, confirm, and send alerts whenever a Demand/Supply absorption pattern appears on the chart.
Core Logic:
Impulse Move – A single candle or a cluster of candles with a strong bullish/bearish move, characterized by a price range and volume significantly exceeding the ATR and average volume. (I've already implemented this logic and highlighted these zones with rectangles.)
Absorption Phase – Following this move, signs of exhaustion in the previous Demand/Supply emerge. These signs can include small-bodied candles like Doji or Inside Bars, combined with low volume, indicating a potential absorption phase.
Breakout Confirmation – Finally, a breakout candle in the opposite direction confirms the reversal after the consolidation phase.
Challenges & Community Support
I've encountered difficulties in fully implementing steps 2 and 3. While detecting strong impulsive moves and sending alerts has already been helpful in tracking potential setups, completing the full pattern requires waiting 3-4 hours (on a 1-hour chart) or even until the next day (on a 4-hour chart). This delay makes it easy to miss potential price movements in real time.
I’d love to get feedback or suggestions from the community to improve this indicator further.
Thanks for your support!
Cheers! 🚀
Combined Stochastic, ADX & BreakoutTrading View Indicator Explanation
Entry Signal Logic
This indicator identifies two specific buying opportunities during an uptrend following a correction:
Entry Signal #1 - Post-Correction Breakout
Wait for price to establish an uptrend above EMA9
Look for at least one lower high (correction)
Entry trigger: Breakout above the previous candle's high
Stop loss: Place below the most recent swing low
Entry Signal #2 - Strong Trend Correction
Requires a blue triangle marker above the candle (on closing basis)
Must occur during a strong uptrend (confirmed by high ADX reading)
Requires a deep technical correction (measured by Stochastic)
Entry conditions:
Price must be above EMA9
Current candle must break above previous candle's high
Stop loss: Place below the most recent swing low
Notes
Sell signals have been removed to reduce chart clutter
Recommended exit strategy: Sell at new swing highs
The second signal specifically filters for stronger trend conditions
Technical Indicators Used
EMA9: Trend direction filter
Stochastic: Measures depth of correction
ADX: Confirms strength of uptrend
Price action: Candle high/low relationships
This is designed to catch continuation moves in established uptrends after healthy corrections, emphasizing high-probability entries with clearly defined stop levels.
Alessandro SpecialThis indicator based on Alessandro's special highlights a sweep of liquidity combined with an engulfing close.
NIFTY 50 Reversal Strategy🎯 Entry Rules:
🔴 Bearish Reversal Setup (Short Trade)
🔹 Conditions to Enter a SHORT Trade:
Price hits a strong resistance (Pivot Point, Supply Zone, or Fibonacci 61.8%)
Bearish candlestick confirmation:
Bearish Engulfing
Shooting Star (Long wick on top)
Doji (Indecision) after an uptrend
EMA Crossover: EMA 10 crosses below EMA 50
RSI above 70 (overbought) or shows Bearish Divergence
VWAP Rejection (Price touches VWAP & drops)
Volume Drops or Spikes Bearishly (Volume confirmation)
✅ ENTRY: Enter a SHORT position on the next candle close after confirmation.
🎯 TARGETS:
Target 1: Next Pivot Support or 0.5% drop
Target 2: Fibonacci 50% retracement
Target 3: VWAP Mean Reversion
🛑 STOP-LOSS:
Above the recent swing high / wick (+0.2% buffer)
ATR-based SL for volatility
🟢 Bullish Reversal Setup (Long Trade)
🔹 Conditions to Enter a LONG Trade:
Price hits a strong support (Pivot Point, Demand Zone, or Fibonacci 61.8%)
Bullish candlestick confirmation:
Bullish Engulfing
Hammer / Pin Bar (Long wick at bottom)
Doji (Indecision) at Support
EMA Crossover: EMA 10 crosses above EMA 50
RSI below 30 (oversold) or shows Bullish Divergence
VWAP Support (Price touches VWAP & bounces)
Volume Surge in Bullish Candles
✅ ENTRY: Enter a LONG position on the next candle close after confirmation.
🎯 TARGETS:
Target 1: Next Pivot Resistance or 0.5% rise
Target 2: Fibonacci 50% retracement
Target 3: VWAP Mean Reversion
🛑 STOP-LOSS:
Below the recent swing low / wick (-0.2% buffer)
ATR-based SL for volatility
5Ema Indicatorits famous 5 ema strategy.whenever there is a 5 min candle that is not touching the 5 ema , then we take short trade on next candle crossing low of previous candle
Combined NIFTY ATM Options ChartSK Combined ATM
Summary
Overlay/Compare: Quick and simple but keeps two separate data series on the same chart.
Spread Chart: Creates a synthetic price line (not candlesticks) showing the combined movement.
Pine Script: Offers full customization to build a synthetic candlestick chart by defining how to combine the OHLC data from both options.
ATR 3x Multiplier StrategyVolatility and Candle Spikes in Trading
Volatility
Volatility refers to the degree of variation in the price of a financial asset over time. It measures how much the price fluctuates and is often associated with risk and uncertainty in the market. High volatility means larger price swings, while low volatility indicates more stable price movements.
Key aspects of volatility:
Measured using indicators like Average True Range (ATR), Bollinger Bands, and Implied Volatility (IV).
Influenced by factors such as market news, economic events, and liquidity.
Higher volatility increases both risk and potential profit opportunities.
Candle Spikes
A candle spike (or wick) refers to a sudden price movement that forms a long shadow or wick on a candlestick chart. These spikes can indicate strong buying or selling pressure, liquidity hunts, or stop-loss triggers.
Types of candle spikes:
Bullish Spike (Long Lower Wick): Indicates buyers rejected lower prices, pushing the price higher.
Bearish Spike (Long Upper Wick): Suggests sellers rejected higher prices, pushing the price lower.
Stop-Loss Hunt: Market makers may trigger stop-losses by creating artificial spikes before reversing the price.
News-Induced Spikes: Economic data releases or unexpected events can cause sudden price jumps.
Understanding volatility and candle spikes can help traders manage risk, spot entry/exit points, and avoid false breakouts. 🚀📈
ATR 3x Multiplier StrategyBeta version
Volatility and Candle Spikes in Trading
Volatility
Volatility refers to the degree of variation in the price of a financial asset over time. It measures how much the price fluctuates and is often associated with risk and uncertainty in the market. High volatility means larger price swings, while low volatility indicates more stable price movements.
Key aspects of volatility:
Measured using indicators like Average True Range (ATR), Bollinger Bands, and Implied Volatility (IV).
Influenced by factors such as market news, economic events, and liquidity.
Higher volatility increases both risk and potential profit opportunities.
Candle Spikes
A candle spike (or wick) refers to a sudden price movement that forms a long shadow or wick on a candlestick chart. These spikes can indicate strong buying or selling pressure, liquidity hunts, or stop-loss triggers.
Types of candle spikes:
Bullish Spike (Long Lower Wick): Indicates buyers rejected lower prices, pushing the price higher.
Bearish Spike (Long Upper Wick): Suggests sellers rejected higher prices, pushing the price lower.
Stop-Loss Hunt: Market makers may trigger stop-losses by creating artificial spikes before reversing the price.
News-Induced Spikes: Economic data releases or unexpected events can cause sudden price jumps.
Understanding volatility and candle spikes can help traders manage risk, spot entry/exit points, and avoid false breakouts. 🚀📈
Wick to Candle Ratio with Multiple ColorsThe display in question likely provides visual representations or data related to the concept of the dot-based wick-to-body ratio. This ratio is a term often used in financial markets, particularly in the context of candlestick charts.
In candlestick charts, each candlestick represents a specific time period (such as a minute, hour, day, etc.) and provides four pieces of price data: the opening price, closing price, highest price, and lowest price of an asset within that timeframe. The "body" of the candlestick is the area between the opening and closing prices, while the "wicks" (or shadows) are the lines extending from the body, representing the highest and lowest prices during the period.
The dot-based wick-to-body ratio refers to a method of quantifying the relative lengths of the wicks compared to the body using dots or points. In this context, a display illustrating this ratio might show different candlesticks with highlighted dots representing the ratio between the length of the wick and the body. A higher ratio could indicate more volatility in price movements during that timeframe, while a lower ratio might suggest comparatively stable price action.
Machine Learning: Lorentzian Classification/ ====================
// ==== Background ====
// ====================
// When using Machine Learning algorithms like K-Nearest Neighbors, choosing an
// appropriate distance metric is essential. Euclidean Distance is often used as
// the default distance metric, but it may not always be the best choice. This is
// because market data is often significantly impacted by proximity to significant
// world events such as FOMC Meetings and Black Swan events. These major economic
// events can contribute to a warping effect analogous a massive object's
// gravitational warping of Space-Time. In financial markets, this warping effect
// operates on a continuum, which can analogously be referred to as "Price-Time".
// To help to better account for this warping effect, Lorentzian Distance can be
// used as an alternative distance metric to Euclidean Distance. The geometry of
// Lorentzian Space can be difficult to visualize at first, and one of the best
// ways to intuitively understand it is through an example involving 2 feature
// dimensions (z=2). For purposes of this example, let's assume these two features
// are Relative Strength Index (RSI) and the Average Directional Index (ADX). In
// reality, the optimal number of features is in the range of 3-8, but for the sake
// of simplicity, we will use only 2 features in this example.
// Fundamental Assumptions:
// (1) We can calculate RSI and ADX for a given chart.
// (2) For simplicity, values for RSI and ADX are assumed to adhere to a Gaussian
// distribution in the range of 0 to 100.
// (3) The most recent RSI and ADX value can be considered the origin of a coordinate
// system with ADX on the x-axis and RSI on the y-axis.
// Distances in Euclidean Space:
// Measuring the Euclidean Distances of historical values with the most recent point
// at the origin will yield a distribution that resembles Figure 1 (below).
//
// |
// |
// |
// ...:::....
// .:.:::••••••:::•::..
// .:•:.:•••::::••::••....::.
// ....:••••:••••••••::••:...:•.
// ...:.::::::•••:::•••:•••::.:•..
// ::•:.:•:•••••••:.:•::::::...:..
// |--------.:•••..•••••••:••:...:::•:•:..:..----------
// 0 :•:....:•••••::.:::•••::••:.....
// ::....:.:••••••••:•••::••::..:.
// .:...:••:::••••••••::•••....:
// ::....:.....:•::•••:::::..
// ..:..::••..::::..:•:..
// .::..:::.....:
// |
// |
// |
// |
// _|_ 0
//
// Figure 1: Neighborhood in Euclidean Space
// Distances in The Space:
// However, the same set of historical values measured using The Distance will
// yield a different distribution that resembles Figure 2 (below).
//
//
// ::.. | ..:::
// ..... | ......
// .••••::. | :••••••.
// .:•••••:. | :::••••••.
// .•••••:... | .::.••••••.
// .::•••••::.. | :..••••••..
// .:•••••••::.........::••••••:..
// ..::::••••.•••••••.•••••••:.
// ...:•••••••.•••••••••::.
// .:..••.••••••.••••..
// |---------------.:•••••••••••••••••.---------------
// 0 .:•:•••.••••••.•••••••.
// .••••••••••••••••••••••••:.
// .:••••••••••::..::.::••••••••:.
// .::••••••::. | .::•••:::.
// .:••••••.. | :••••••••.
// .:••••:... | ..•••••••:.
// ..:••::.. | :.•••••••.
// .:•.... | ...::.:••.
// ...:.. | :...:••.
// :::. | ..::
// _|_ 0
//
// Figure 2: Neighborhood in the Space
// Observations:
// (1) In the Space, the shortest distance between two points is not
// necessarily a straight line, but rather, a geodesic curve.
// (2) The warping effect of Lorentzian distance reduces the overall influence
// of outliers and noise.
// (3) The Distance becomes increasingly different from Euclidean Distance
// as the number of nearest neighbors used for comparison increases.
Beki cAn indicator combination of 3 things.
1 ) trend analysis
2 ) average price
3 ) price reversals