@khaicao| APB HistogramIntroducing the APB Histogram Indicator
A Powerful Tool for Visualizing Price Momentum
The APB Histogram (Average Price Bar Histogram) is a unique and insightful indicator designed to help traders identify price momentum and potential trend reversals. By calculating a smoothed average of price action and plotting the difference between the APB Close and APB Open as a histogram, this indicator provides a clear visual representation of bullish and bearish pressure in the market.
Key Features:
✅ Smoothed Price Calculation – Uses a recursive formula to generate a dynamic average price bar, reducing noise and highlighting meaningful trends.
✅ Intuitive Histogram Display – Positive (green) bars indicate bullish momentum, while negative (red) bars signal bearish momentum.
✅ Customizable Colors – Adjust the bullish and bearish colors to match your trading style.
✅ Non-Overlay Design – Plotted in a separate panel for clear visualization without cluttering the main chart.
How to Use the APB Histogram:
Bullish Signals: When the histogram bars are green and rising, it suggests increasing buying pressure.
Bearish Signals: When the histogram bars are red and falling, it indicates growing selling pressure.
Trend Confirmation: Use alongside other indicators, recommended to use with Stochastic (8,3,3) to confirm trend strength.
Perfect For:
Swing Traders looking for momentum shifts
Day Traders needing quick visual cues on price direction
Trend Followers confirming entry and exit points
Try the APB Histogram today and enhance your trading strategy with a cleaner, more intuitive view of market momentum!
🔹 Like & Follow for more unique indicators!
🔹 Comment below if you have any questions or improvement suggestions!
Happy Trading! 🚀
Candlestick analysis
Custom Buy/Sell Indicator with AlertsGives buy and sell indicators based on VWAP and order imbalance
Prior OHLMCPrior OHLC Plus Median - Free Open Source Indicator
This indicator plots essential reference levels from previous time periods to help traders identify potential support, resistance, and pivot zones. It displays the Open, High, Low, Close, and importantly, the Median (HL2) levels from the prior year, month, week, and day.
What It Does:
Plots OHLC levels from previous year, month, week, and day periods
Includes median levels (High + Low / 2) for each timeframe
Automatically updates as new periods begin
Clean, customizable display that won't clutter your charts
Why These Levels Matter:
Prior period levels serve as important reference points because they represent areas where significant price action occurred previously. These levels often act as magnets for future price movement - not because of any mystical properties, but due to the collective memory of market participants and algorithmic trading systems that reference these same historical points.
The median levels are particularly valuable yet frequently overlooked. While traders commonly watch prior highs and lows, the median often provides cleaner reaction points with less noise than the extreme levels.
Practical Application:
These levels work best as part of a comprehensive trading approach. Use them to:
Identify potential entry and exit zones
Set logical stop-loss and take-profit levels
Gauge the strength of breakouts and breakdowns
Confluence with other technical analysis tools
Important Note:
This indicator provides reference levels, not trading signals. Like any technical tool, these levels should be combined with proper risk management, market context, and additional confirmation methods. They're one valuable piece of the trading puzzle - not a standalone solution.
Available as open source - feel free to modify and adapt to your specific trading needs.
Unified Sentiment Candles Overlay (SMA)Unified Sentiment Candles (SMA) Indicator
The Unified Sentiment Candles (SMA) is a custom overlay indicator designed to provide a smoothed visualization of market sentiment by plotting synthetic candles based on the Simple Moving Average (SMA) of open, high, low, and close prices. It helps traders identify trend direction and potential reversals more clearly.
How to Use:
- Observe Candle Colors: Green candles indicate bullish sentiment (close ≥ open), while red candles suggest bearish sentiment (close < open).
- Trend Identification: Consistent green candles point to an uptrend, whereas consistent red candles may signal a downtrend.
- Support & Resistance Zones: The SMA-based candles smooth out short-term volatility, assisting in spotting key support and resistance levels.
- Entry & Exit Signals: Look for color changes or candle pattern formations within the synthetic candles to time entries and exits more effectively.
Settings:
SMA Length : Adjust this parameter to control the smoothing period. A shorter length makes the indicator more responsive, while a longer length smooths out more noise.
This indicator is best used in conjunction with other technical analysis tools to confirm signals and improve trading accuracy.
This script is open-source and licensed under the Mozilla Public License 2.0. Use and modify it at your own discretion.
HTF CandlesThis indicator helps to visualize what is happening on the higher timeframe on your current chart without having to change intervals. Quickly see gaps, imbalances, trends on the higher timeframe while you are trading. Works excellent for seeing 5m or 15m trend on a 1m chart for example.
NSE Advance/Decline Ratio//@version=5
indicator("NSE Advance/Decline Ratio", overlay=false)
advance = request.security("NSE:ADVANCE", "D", close)
decline = request.security("NSE:DECLINE", "D", close)
adr = advance / decline
plot(adr, title="Advance/Decline Ratio", color=color.blue)
hline(1, "Neutral", color=color.gray)
1-Min Change of State Buy/Sell SignalBuy & Sell Indicator. Calls a signal based on break of structure, momentum and trend
Пробиття фракталів з медіаною та адаптивним фільтромWe are going to describe the indicator in English. The indicator is based on the concept of fractal breakouts with volume confirmation using median and adaptive filtering.
### Indicator Description:
**Indicator Name:** Fractal Breakout with Volume Median and Adaptive Filter
**Overview:**
This indicator identifies breakout signals based on fractals (price reversals) and confirms them with volume analysis. The breakout signals (both buy and sell) are generated when the price breaks a fractal level (high for buy, low for sell) and the current volume exceeds the median volume of previous breakouts by a certain adaptive multiplier. The adaptive multiplier adjusts for different timeframes to provide more relevant signals.
**Key Features:**
1. **Fractal Detection:**
- Fractals are detected using a user-defined period (default is 2).
- A top fractal (bearish reversal pattern) is formed when there is a central bar with the highest high among `len` bars on both sides.
- A bottom fractal (bullish reversal pattern) is formed when there is a central bar with the lowest low among `len` bars on both sides.
2. **Breakout Logic:**
- A buy breakout occurs when the price closes above the last top fractal level.
- A sell breakout occurs when the price closes below the last bottom fractal level.
- The breakout must happen on the current bar (i.e., the breakout is new: the previous bar was not above the top fractal for buy, or below the bottom fractal for sell).
3. **Volume Confirmation:**
- The indicator maintains two arrays (one for buy breakouts and one for sell breakouts) that store the volumes of previous breakout bars.
- For a breakout to be confirmed, the current volume must exceed the median volume of the respective array (buy or sell) multiplied by an adaptive multiplier.
- The adaptive multiplier is calculated based on the current timeframe. It is designed to be lower on higher timeframes.
4. **Adaptive Multiplier:**
- The base multiplier is set by the user (default 1.2).
- The actual multiplier is adjusted by the formula: `baseMultiplier * (1.0 - min(timeframe_in_hours, 1.0) * 0.5)`. This reduces the multiplier on timeframes of 1 hour and above.
5. **Signal Alternation:**
- The indicator alternates between buy and sell signals. After a buy signal, only a sell signal can occur, and vice versa.
6. **Visualization:**
- Fractals are marked with triangles (red downward for top, green upward for bottom).
- Breakout signals are marked with labels (green "BUY" below the bar, red "SELL" above the bar).
7. **Alerts:**
- Alert conditions are set for both buy and sell breakouts.
**Input Parameters:**
- `Period Fractal (len)`: The number of bars used to detect fractals (default: 2).
- `Number of Breakouts for Median (volLookback)`: The number of previous breakouts to consider for median volume calculation (default: 10).
- `Base Volume Multiplier (baseMultiplier)`: The base volume multiplier (default: 1.2). This is adjusted for higher timeframes.
**How It Works:**
1. **On each bar:**
- Check for the formation of new top or bottom fractals.
- Update the last top and bottom fractal levels if new fractals are found.
2. **Breakout Conditions:**
- For a buy breakout:
- The previous bar was not above the last top fractal level (i.e., no breakout in progress).
- The current bar closes above the last top fractal level.
- The current volume is greater than the median volume of previous buy breakouts multiplied by the adaptive multiplier (or if there are no previous buy breakouts, the volume condition is skipped).
- Similarly for sell breakout.
3. **Update Arrays:**
- When a breakout occurs, the current volume is added to the respective array (buyVolumes for buy, sellVolumes for sell) and the array is trimmed to the specified lookback period.
4. **Signal Generation:**
- A buy signal is plotted as a green "BUY" label below the bar.
- A sell signal is plotted as a red "SELL" label above the bar.
5. **Alerts:**
- Alerts are triggered when a breakout signal occurs.
**Additional Notes:**
- The median is calculated as the middle value of the sorted array (or the average of the two middle values for even-sized arrays).
- The adaptive multiplier ensures that on higher timeframes (like 1 hour and above) the volume requirement is less strict because volume patterns differ.
**Potential Use:**
Traders can use this indicator to identify potential trend continuations or reversals with volume confirmation. The adaptive volume filter makes it suitable for multiple timeframes.
CrumpBot Short - Górny Knot z filtrem wzrostu (knots)The indicator works on the same principle as Crumpbot, this one is for shorts
Candle Range Detector by TradeTech AnalysisCandle Range Detector by TradeTech Analysis
This advanced indicator identifies and visualizes price compression zones based on inside bar formations, then tracks how price behaves around those zones — offering valuable insights into liquidity sweeps, range expansions, and trap/mitigation behavior.
The script builds upon the foundational concept of range-based price action, commonly used by institutional traders, and adds automation, mitigation tracking, and sweep detection to map how price reacts around these critical ranges.
🔍 How It Works:
• Range Formation: A new range is detected when the current candle forms entirely within the high and low of the previous candle (i.e., an inside bar). This behavior often indicates price compression and potential breakout zones.
• Range Extension: Once a range is confirmed, the script projects upper and lower boundaries (using either a percentage-based multiplier or Fibonacci log extension), providing context for expected breakout zones.
• Mitigation Tracking: The script continuously monitors whether price breaks above or below the projected extensions, marking that range as mitigated — useful for confirming whether liquidity was absorbed.
• Sweep Detection: If price re-visits a mitigated zone and shows signs of a liquidity sweep (via wick + close behavior), the indicator triggers visual sweep labels and optional alerts.
🧠 Optional Visual Enhancements:
• Highlight range-forming candles with light blue background (toggle on/off)
• Midpoint dotted line for symmetry analysis
• Labels for “Range High” and “Range Low” for visual clarity
• Dynamic box drawing that adapts upon mitigation or continuation
⚙️ Customizable Features:
• Choose between Normal and Fibonacci-based detection modes
• Toggle visibility of range boxes, extension lines, and sweep markers
• Configure sweep alerts, mitigation window size, and visual transparency
⸻
🧪 Use Cases
• Identify consolidation zones before major price moves
• Confirm liquidity sweeps for entry/exit traps
• Visualize and test mitigation behavior of past zones
• Combine with Order Flow or Volume Profile tools to enhance context
⸻
⚠️ This is a fully original implementation that goes beyond classical inside-bar scanners by incorporating mitigation, extension projection, and liquidity sweeps — making it a powerful tool for intraday, swing, and even Smart Money-based trading setups.
Moving Average Crossover Fast Moving Average (default: 9-period ) — reacts quickly to price changes.
Slow Moving Average (default: 21-period ) — smooths out long-term trends.
How It Works:
A Buy Signal is generated when the fast MA crosses above the slow MA, indicating potential upward momentum.
A Sell Signal is triggered when the fast MA crosses below the slow MA, signaling possible bearish momentum.
Features:
Customizable fast and slow MA periods.
Clear BUY/SELL labels directly on the chart.
Works on any timeframe or asset (stocks, crypto, forex, etc.).
Great for trend-following and swing trading strategies.
SMA Cross 20x50 CryptoSMA 20 SMA 50, whenever they cross the chart will display a GOLDEN CROSS or CROSS of DEATH.
The user will have the option to choose the SMA values as well as, the option to show crosses or text is available.
MACD with Colored HistogramA script specifying the difference between convergence and divergence indicated with an icon.
TAO Sweep + Full Bottom DetectionTao liquidity sweep detector. Uses analysis of btc dominance PA and eth/btc PA as confluences. Uses volume moving average to catch sweeps of the lows.
🕯️ Candlestick Pattern Identifier by Sanal✅ Features:
Identifies common single, double, and triple candlestick patterns
Displays pattern names directly above/below candles
Color-coded for bullish/bearish clarity
Customizable settings to toggle patterns
📌 Candlestick Patterns Included:
🔹 Bullish:
Hammer
Inverted Hammer
Bullish Engulfing
Piercing Line
Morning Star
Three White Soldiers
🔹 Bearish:
Shooting Star
Hanging Man
Bearish Engulfing
Dark Cloud Cover
Evening Star
Three Black Crows
S&P Power Hour Liquidity Sweep StrategyThis indicator is designed for intraday traders who want to take advantage of liquidity grabs, break of structure (BOS), and optimal entry points during the most volatile hours of the trading day: the NYSE Power Hours (09:30–10:30 AM and 02:30–04:00 PM EST).
Key Features:
Power Hour Detection:
Automatically identifies the two most liquid hours of the trading session.
Liquidity Sweep Detection:
Highlights when price sweeps a recent swing high or low — a common trap before reversals.
Break of Structure (BOS):
Confirms trend shift after a liquidity sweep with smart money-style BOS markers.
Fair Value Gap (FVG) Highlighting: (Optional)
Spot institutional imbalances between candles to fine-tune trade entries.
How It Works:
Wait for price to sweep a swing high or low during the power hours.
Look for a break of structure (BOS) in the opposite direction.
Enter on the next candle or FVG retest.
The indicator will plot a yellow circle for entry, a red line for stop, and a green line for the target (based on your RR setting).
Customizable Inputs:
Swing sensitivity (lookback bars)
Risk-to-reward ratio
Optional FVG visibility
Best Used With:
Higher timeframe bias (15m/1H)
Order blocks or volume analysis
Avoiding major news events
Whether you're a scalper or precision-based intraday trader, this tool helps you spot high-probability reversal setups with clean visuals and clear confirmations.
1-Min Change of State Buy/Sell SignalBuy & Sell Indicator. signals a trade based on BOS (Break of Structure), Momentum, and trend
[km] Pivot Points ColoredScript Overview: Your Compass in a Complex Market – Supporting Your Next Move with Daily & Weekly Pivots
This indicator is designed to be a powerful compass that answers those questions, guiding your trading decisions.
This script automatically displays Pivot Points (PP), along with Resistance (R) and Support (S) lines, for both Daily and Weekly timeframes. These lines represent key market turning points, price levels that many traders worldwide actively watch. With this single tool, you'll gain immediate clarity on crucial levels across all timeframes, from day trading to swing trading.
These Pivot Points will powerfully assist your trade judgment. Add it to your chart and experience its effectiveness for yourself!
Key Features: Deeper Analysis for Your Trading
Daily & Weekly Pivot Display: See both daily pivots, for tracking intraday movements, and weekly pivots, for understanding broader trends, simultaneously. This allows you to overlap and confirm key levels across different timeframes right on your chart.
Extensive Line Style Customization: Freely customize the color, thickness, and line style (solid, dashed, etc.) for the Pivot Point, and each Resistance and Support line. Adjust them to match your chart's theme and personal preferences for optimal visibility.
Flexible Pivot Period Specification: You can set the period used for pivot calculations. This allows you to adjust the sensitivity of the pivot lines according to your specific analytical objectives.
Traditional Pivot Calculation: By default, the indicator uses the Traditional Pivot calculation method, which is the most common and widely utilized by traders. Capture market movements precisely with this simple yet powerful approach.
ORB Breakout Indicator - NQ1!The purpose of this indicator is to assist traders in rapidly identifying high-probability Opening Range Breakout (ORB) setups on the NQ1! 1-minute time frame (Nasdaq Futures)
Key Features:
Opening Range: Automatically plots the high and low of the 1st 15min of the (NYSE session) (09:30–09:45 EST)
Breakout Signals : Illustrates the first candle that breaks upward or downward and:
Green arrow for a bullish breakout
Red arrow for a bearish breakout
Clean Visuals: Dynamic lines show the high and low of the ORB window for easy reference.
(DON'T USE THIS ONLY FOR ENTRY SIGNALS, PAIR THIS WITH OTHER INFLUENCES TO GET HIGH PROBABILITY BREAKOUTS)
Trading in The Day 1h Ver1 [VNFlow]Trading in the Day 1h Ver1 :
This TradingView script combines multiple professional tools into one for short-term trend-following and intraday trade planning. It includes:
Auto-anchored AVWAPs for 1-day, 2-day, Week-to-Date (WTD), and Month-to-Date (MTD) levels.
A 5-day Moving Average (EMA or SMA) automatically adjusted based on timeframe and exchange hours.
Optional Pivot Points (support/resistance) with classic floor trader formulas.
High/Low of current and previous day as potential S/R zones.
Buy/Sell signal labels based on MA and AVWAP alignment (shows only the first of consecutive signals).
Clean visuals with toggle options to customize which elements are shown.
Perfect for traders using multi-timeframe confirmation, anchored VWAP, and classic support/resistance techniques.
Pip Badan Candle Terakhir//@version=5
indicator("Pip Badan Candle Terakhir", overlay=true)
badan = math.abs(close - open)
pip = badan * 100
textPip = str.tostring(pip, "#.0") + " pip"
var label lbl = na
if not na(lbl)
label.delete(lbl)
lbl := label.new(bar_index, (high + low) / 2, textPip,
style=label.style_label_up,
textcolor=color.white,
size=size.normal,
color=close > open ? color.green : color.red)
My script/@version=5
indicator("dvp - Engulfing Strategy", overlay=true)
// Moving Averages
sma1 = input.int(6,"Trend SMA")
ema1 = input.int(3,"Engulf EMA")
sma6 = ta.sma(close, sma1)
ema3 = ta.ema(close, ema1)
// Helper candles
c3 = close < open // 3 days ago was a red candle
c2 = close > open // 2 days ago was a green candle
engulfed = (low < low ) and (high > high ) // bullish engulfing
c0_bull = close > open // current candle is green
close_above_c2high = close > high
c3_below_sma6 = close < sma6
c0_above_ema3 = close > ema3
// Bullish Engulfing Conditions
bullishSignal = c3 and c2 and engulfed and c0_bull and close_above_c2high and c3_below_sma6 and c0_above_ema3
// Plotting text for bullish engulfing
plotshape(bullishSignal, title="Bullish Engulfing", location=location.belowbar, color=color.green, style=shape.labelup, text="BuE")
// Optional: Bearish Engulfing Detection
c3_bear = close > open // 3 days ago green
c2_bear = close < open // 2 days ago red
engulfed_bear = (high > high ) and (low < low )
c0_bear = close < open // current red
close_below_c2low = close < low
c3_above_sma6 = close > sma6
c0_below_ema3 = close < ema3
bearishSignal = c3_bear and c2_bear and engulfed_bear and c0_bear and close_below_c2low and c3_above_sma6 and c0_below_ema3
plotshape(bearishSignal, title="Bearish Engulfing", location=location.abovebar, color=color.red, style=shape.labeldown, text="BeU")
// Plotting Moving Averages
plot(sma6, color=color.orange, title="SMA 6")
plot(ema3, color=color.blue, title="EMA 3")
```
Pips per Candle - XAUUSD//@version=5
indicator("Pips per Candle - XAUUSD", overlay=true)
// Opsi tampilkan label di atas atau bawah
tampilkan_di_atas = input.bool(true, "Tampilkan di atas candle")
tampilkan_di_bawah = input.bool(true, "Tampilkan di bawah candle")
tampilkan_berdasarkan = input.string("High-Low", title="Hitung pips berdasarkan", options= )
// Hitung pip
perbedaan = tampilkan_berdasarkan == "High-Low" ? high - low : math.abs(close - open)
pip = perbedaan * 100 // 1 point = 100 pip untuk XAU
// Bersihkan label lama
var label labels = array.new_label()
if bar_index > 1
for i = 0 to array.size(labels) - 1
label.delete(array.get(labels, i))
array.clear(labels)
// Tampilkan label
if tampilkan_di_atas
array.push(labels, label.new(bar_index, high, text=str.tostring(pip, "#.0") + " pip", style=label.style_label_up, textcolor=color.white, size=size.small, color=color.orange))
if tampilkan_di_bawah
array.push(labels, label.new(bar_index, low, text=str.tostring(pip, "#.0") + " pip", style=label.style_label_down, textcolor=color.white, size=size.small, color=color.maroon))