Candlestick analysis
Pin Bar Detector (open)The Pin Bar Detector script is designed to identify and highlight pin bars (reversal candles) on a price chart. It scans for bullish and bearish pin bars based on wick-to-body ratio, candle size, and price structure.
🔹 Features & How It Works
✅ Detects Both Bullish & Bearish Pin Bars
Bullish Pin Bar (Hammer): Long lower wick, small body near the top, and little to no upper wick.
Bearish Pin Bar (Shooting Star): Long upper wick, small body near the bottom, and little to no lower wick.
✅ Wick-to-Body Ratio Calculation
The wick must be at least 2x the size of the body to be considered a valid pin bar.
The script dynamically checks if the upper or lower wick dominates the candle to classify it.
✅ Key Level Filtering (Optional)
The script can be modified to only detect pin bars at VWAP, 50 EMA, Support/Resistance, or First 15-Min High/Low for stronger trade signals.
✅ Customizable Inputs
Users can adjust the minimum wick-to-body ratio to refine detection.
Option to show/hide pin bars that form in choppy or sideways markets.
✅ Pin Bar Confirmation (Optional)
Can include a volume filter to detect pin bars with significant market participation.
Can add ATR confirmation to check if the pin bar forms during high volatility periods.
🔹 How to Use It in Your Trading
1️⃣ Enable the script on your chart to automatically highlight pin bars.
2️⃣ Wait for confirmation (volume spike or key level rejection) before entering a trade.
3️⃣ Use stop-loss below/above the pin bar wick to control risk.
4️⃣ Target key resistance/support levels for take-profit.
🔹 Final Thoughts
Pin bars are powerful reversal signals, but they work best at strong support/resistance zones with volume confirmation.
This script helps eliminate false pin bars by ensuring the wick-to-body ratio is valid.
Can be combined with VWAP, 50 EMA, and ATR to create a high-probability trading system.
Volume Spike BoxThis indicator highlights the highest volume candlestick in a specified number of bars. It extends for the same length in the future as the specified number of bars for identifying potential support and resistance
Major Bar Engulfing StrategyBelow is a concise overview and step-by-step guide on how to interpret and use the **Major Bar Engulfing Strategy** indicator.
---
## 1. Description
The **Major Bar Engulfing Strategy** indicator is designed to identify key turning points (“Major Bars”) and potential trade continuation signals based on higher-timeframe (HTF) and lower-timeframe (LTF) engulfing logic. It helps you see when price has significantly shifted structure at a higher timeframe, and then pinpoints bullish or bearish “engulfing” candles that align with the current trend direction.
### Key Components
1. **Major Bar Detection (HTF)**
- The script tracks a *higher timeframe* high and low (labeled “Major Bar High” & “Major Bar Low” on your chart).
- When the HTF close breaks above the previous Major Bar High, it signals a *new bullish major bar*.
- When the HTF close breaks below the previous Major Bar Low, it signals a *new bearish major bar*.
2. **Trend Direction**
- If a new major bar forms by breaking above the old high, the trend is flagged as “bullish.” Breaking below the old low flags the trend as “bearish.”
- A large triangle (`▲` or `▼`) appears on the bar where the trend flips from bullish to bearish or vice versa.
3. **Bar Coloring**
- **Bullish Major Bar**: Fully bright green (`#00ff72`).
- **Bearish Major Bar**: Fully red.
- **Subsequent Bars After Bullish Major Bar**: Green (`#00ff72`) at 50% transparency.
- **Subsequent Bars After Bearish Major Bar**: Red at 50% transparency.
- This coloring remains until a new major bar changes the trend.
4. **Engulfing Candle Diamonds**
- **Higher Timeframe Engulfing** (HTF) – Green diamond above the candle if bullish engulfing; red diamond below if bearish engulfing.
- **Lower Timeframe Engulfing** (LTF) – Green diamond above the candle if bullish engulfing; red diamond below if bearish engulfing.
- These diamonds help you see when a candle at either timeframe engulfs the previous one in a trend-aligned direction.
5. **Pullback Logic**
- A simple pullback is detected if multiple consecutive bars move against the current trend on the HTF or LTF. Once pullback criteria are met, the next engulfing bar in trend direction is flagged as a signal.
6. **Advanced Retouch Logic** (Optional)
- When enabled, the script checks if the engulfing bar significantly exceeds the previous 2 bar highs/lows and if price “retouches” a certain zone before confirming a final entry signal. This logic is mostly “under the hood” but adds nuance to when final signals appear.
---
## 2. How to Use
1. **Add the Indicator to Your Chart**
- In TradingView, open the **Indicators** menu and add the **Major Bar Engulfing Strategy** indicator to any symbol/timeframe chart.
2. **Select Appropriate Timeframes**
- Open the “Settings” of the indicator (gear icon), and specify the **Higher Timeframe** (e.g., 4H) and the **Lower Timeframe** (e.g., 1H).
- Ideally, your **chart timeframe** should be equal to or lower than the Higher Timeframe you set, so the higher-timeframe logic can unfold properly.
3. **Interpret the Major Bar Lines**
- You’ll see two lines on your chart (by default, bright green for “Major Bar High” and red for “Major Bar Low”). These lines represent the *current* HTF structure boundaries.
4. **Look for a Change in Major Bar**
- If the higher-timeframe close goes beyond the Major Bar High or Low, a **new major bar** is declared, and the **bar color** on your chart will fully switch to bright green (bullish) or full red (bearish).
- The indicator also draws a **triangle** (up for bullish, down for bearish) on the exact bar where the overall *trend flips* from up to down or down to up.
5. **Note the Candle Colors**
- The exact bar that changes the major bar to bullish → *fully bright green*.
- The exact bar that changes the major bar to bearish → *fully red*.
- Follow-up bars stay the same color but at 50% transparency, indicating the prevailing trend until a new major bar triggers.
6. **Engulfing Candle Diamonds**
- Diamonds *above* the bar = bullish engulf.
- Diamonds *below* the bar = bearish engulf.
- **HTF Engulf** uses separate conditions from **LTF Engulf** but both display as diamonds (different titles in the input/Style panel).
- When a pullback is detected and then an engulfing candle occurs in the trend direction, you may see these diamonds as potential re-entry or continuation signals.
7. **Advanced Retouch Logic (Optional)**
- If “Use Advanced Retouch Entry Logic?” is enabled in the settings, the script adds stricter engulfing and “retouch zone” checks. While these conditions are not visually distinct except for internal signals, it can influence when final signals are counted as valid. You might see the “Advanced Entry Signal” marker (●) appear on your chart’s lower region.
8. **Customize in the Style Tab**
- Adjust colors, shape sizes, line thickness, and visibility from the **Style** tab in the indicator’s settings. This includes the Major Bar High/Low lines, triangle flip icons, diamond engulf icons, and debug signal markers.
---
## 3. Practical Tips
- **Timeframe Alignment**:
- If you set the higher timeframe too large compared to your chart, changes might be infrequent. Consider a ratio like 4:1 or 6:1 (e.g., HTF = 4H, chart timeframe = 1H).
- **Pullback & Engulf Settings**:
- Lower the `Pullback Bar Count Threshold` (e.g., from 3 to 2) or the `Minimum Body % for Engulfing` if you want more frequent detection of signals.
- **Multiple Confirmation**:
- Major Bar color changes, trend-flip triangles, and engulfing diamonds can all combine to give you a sense of structure shifts and potential continuation moves.
- **No Automated Orders**:
- This is an **indicator**, not a strategy; it will not place trades automatically. You can use it for discretionary guidance or integrate the logic into your own trading approach.
---
## 4. Disclaimer
This indicator is for **educational** and **informational** purposes only. It does **not** guarantee profitability or success in trading. Always perform your own analysis and risk management. Use at your own discretion.
---
**Enjoy monitoring higher-timeframe structure, trend flips, and engulfing setups with the Major Bar Engulfing Strategy indicator!**
AMD421This is a simple yet efficient indicator based on my personal trading strategy. I created it to keep myself grounded and aligned with my approach to trading.
Let me know if you'd like it then give it a like.
Candle Body Size Highlighter with Alertsan alert and marker to show that a candle body difference between open and close has closed above a certain size
USDT.D + USDT.C ALL TIMEFRAMESThis indicator combines the dominance of USDT (USDT.D) and USDC (USDC.D) to track total stablecoin market share across all timeframes. It displays the combined dominance as candlesticks, providing a clearer view of market liquidity shifts and investor sentiment.
📌 How to Use:
Green candles indicate rising stablecoin dominance (potential risk-off sentiment).
Red candles indicate declining stablecoin dominance (potential risk-on sentiment).
Works on all timeframes, from intraday scalping to macro trend analysis.
This tool is essential for traders looking to analyze stablecoin liquidity flow, identify market turning points, and refine trading strategies based on stablecoin dominance behavior. 🚀
Highlight Specific Candles hi this indicator helps ni highlighting any partcular day or particular candle
this is helpful in studying the tred and chart for analysis.
Custom MA Crossover (1-10min)//@version=5
indicator("Custom MA Crossover (1-10min)", overlay=true, shorttitle="CMA Cross 1-10min")
// Inputs
fast_length = input.int(5, title="Fast MA Length", minval=1) // Adjusted for shorter timeframes
slow_length = input.int(14, title="Slow MA Length", minval=1) // Adjusted for shorter timeframes
ma_type = input.string(title="MA Type", options= , defval="EMA")
use_timeframe_filter = input.bool(true, title="Restrict to 1-10min Timeframes?")
volume_filter = input.bool(true, title="Use Volume Filter?")
min_volume = input.float(1.5, title="Minimum Volume Multiplier", step=0.1) // Filter for higher volume candles
// Timeframe Check
is_allowed_timeframe = (timeframe.isminutes and timeframe.multiplier >= 1 and timeframe.multiplier <= 10) or not use_timeframe_filter
// Calculations
fast_ma = ma_type == "SMA" ? ta.sma(close, fast_length) : ta.ema(close, fast_length)
slow_ma = ma_type == "SMA" ? ta.sma(close, slow_length) : ta.ema(close, slow_length)
// Volume Filter
volume_avg = ta.sma(volume, 20) // 20-period average volume
is_high_volume = volume >= volume_avg * min_volume
// Crossover signals with filters
bullish = ta.crossover(fast_ma, slow_ma) and is_allowed_timeframe and (not volume_filter or is_high_volume)
bearish = ta.crossunder(fast_ma, slow_ma) and is_allowed_timeframe and (not volume_filter or is_high_volume)
// Plotting
plot(fast_ma, color=color.new(color.blue, 0), title="Fast MA")
plot(slow_ma, color=color.new(color.red, 0), title="Slow MA")
// Plot signals
plotshape(bullish, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Bullish Signal")
plotshape(bearish, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Bearish Signal")
// Alerts
alertcondition(bullish, title="Bullish Crossover", message="Fast MA crossed above Slow MA on a 1-10min chart")
alertcondition(bearish, title="Bearish Crossover", message="Fast MA crossed below Slow MA on a 1-10min chart")
Bullish Engulfing with 150% Height//@version=5
indicator("Bullish Engulfing with 150% Height", overlay=true)
// Definisikan candle sebelumnya
previous_candle = close
previous_high = high
previous_low = low
previous_open = open
// Definisikan kondisi Bullish Engulfing
bullish_engulfing = close > open and close < open and close > open and open < close
// Definisikan kriteria tinggi candle sebelumnya lebih dari 150% dari tinggi candle sebelumnya
candle_height_criteria = (previous_high - previous_low) > 1.5 * (high - low )
// Gabungkan kedua kondisi
condition = bullish_engulfing and candle_height_criteria
// Plot sinyal pada chart
plotshape(condition, style=shape.labelup, location=location.belowbar, color=color.green, text="Bullish Engulfing", size=size.small)
Refined MACD Heikin Ashi Indicator v1.2 with ATR VisualsRefined MACD Heikin Ashi Indicator v1.2
Overview
This advanced MACD-based trading indicator integrates Heikin Ashi trend confirmation with MACD crossovers, enhanced by ATR-based stop-loss and take-profit levels. It provides buy and sell signals (triangles) derived from Heikin Ashi and MACD double confirmation, while ATR-based take-profit and stop-loss markers act as optional trade management tools.
🚀 Works on both regular and Heikin Ashi candles
🔹 Recommended for manual entries with LuxAlgo Smart Money Concepts – an exceptional supply & demand indicator for confluence trading.
Key Features
✅ Dual Confirmation System – Combines Heikin Ashi trend shifts & MACD crossovers for reliable entry/exit signals.
✅ Buy & Sell Triangles – Standalone signals based on HA & MACD confirmation for precise trade execution.
✅ ATR-Based Risk Management (Optional) –
Potential Take-Profit & Stop-Loss Levels calculated dynamically based on market volatility.
✅ Multi-Timeframe Adaptability – Works across all timeframes for strategic trading.
✅ Compatible with Regular Candles – The indicator processes Heikin Ashi values internally, allowing seamless use on any chart type.
✅ Great for Manual Trading – Best when used alongside LuxAlgo Smart Money Concepts for supply & demand confluence.
How It Works
🔹 MACD & Heikin Ashi Confirmation for Entries & Exits –
Bullish Entry (Buy Signal) – Green Triangle appears when both Heikin Ashi and MACD confirm an uptrend.
Bearish Exit (Sell Signal) – Red Triangle appears when Heikin Ashi and MACD confirm a downtrend.
🔹 ATR-Based Stop-Loss & Take-Profit (Optional) –
Red Dots – Suggested Stop-Loss levels based on ATR.
Green Dots – Suggested Take-Profit targets based on ATR.
🔹 No Need for Heikin Ashi Chart – The indicator calculates Heikin Ashi values internally, meaning it works on any chart type.
🔹 Enhanced Manual Trading – Combine with LuxAlgo Smart Money Concepts for precision trading.
Who is This For?
📌 Trend Traders – Identify high-probability trend reversals.
📌 Swing Traders – ATR-based targets help manage risk effectively.
📌 Multi-Timeframe Analysts – Works across different timeframes for better trade confirmation.
📌 Smart Money Traders – Use alongside LuxAlgo Smart Money Concepts for supply & demand insights.
How to Use
1️⃣ Add to Chart – Works on stocks, crypto, forex, and more.
2️⃣ Adjust Settings – Customize MACD lengths, ATR multipliers, and styling.
3️⃣ Follow Buy & Sell Triangles for Entries/Exits – These signals work independently based on Heikin Ashi & MACD double confirmation.
4️⃣ Use ATR-Based SL/TP as Optional Trade Management – The red and green dots can help plan potential exit points, but they are not required to follow the trade signals.
5️⃣ Optimize with Multi-Timeframe Analysis – Works best when viewed across different timeframes for confirmation.
6️⃣ Boost Accuracy – Combine with LuxAlgo Smart Money Concepts for refined entry/exit points based on institutional supply & demand zones.
Customization Options
MACD Fast Length (default: 10)
MACD Slow Length (default: 26)
MACD Signal Length (default: 9)
ATR Multiplier for Stop-Loss (default: 1.8)
ATR Multiplier for Take-Profit (default: 3)
Example Use Case:
Side by side on 4H and 15M charts, showing:
✅ Green & Red Triangles marking potential good buy/sell entries & exits.
✅ ATR-based Stop-Loss (Red Dots) and Take-Profit (Green Dots) acting as optional trade management tools.
✅ Supply & Demand Zones from LuxAlgo Smart Money Concepts providing high-probability manual trade setups.
Kutu Çizme GöstergesiDip ve Tepelerden dönüşleri yakalamaya yardımcı olabilecek bir kutu çizer. Geliştirme süreci devam etmektedir.
Дивергенции Как этот скрипт будет отображаться на графике
1. Медвежьи дивергенции:
• Когда цена достигает нового максимума (обозначается стрелкой вниз с красным цветом), но RSI не подтверждает это движение (падает), вы увидите красную метку “🔻” над соответствующей свечой.
2. Бычьи дивергенции:
• Когда цена достигает нового минимума (обозначается стрелкой вверх с зеленым цветом), но RSI не подтверждает это движение (растет), вы увидите зеленую метку “🔺” под соответствующей свечой.
3. RSI:
• Индикатор RSI будет отображаться в отдельной панели под основным графиком. На этой панели будут горизонтальные линии для уровней перекупленности (70) и перепроданности (30).