CISD with Alerts [neo|]█ OVERVIEW
CISD (or Change in State of Delivery) is an ICT concept and reversal pattern which may allow traders to identify reversals or changes in market structure early, compared to using traditional market structure. This script aims to correctly identify, and update these levels and provide alerts, so that traders can take advantage of this concept with ease.
█ CONCEPTS
Simply put, CISD may be identified when price closes above the open of the candle which started the most recent downtrend or liquidity sweep. Generally, it is most powerful when applied to key points in the market as a confirmation from where you may want price to reverse.
For example, when price is in a downtrend, we take the open of the last consecutive downwards candle and observe the CISD once price closes above it, beginning an uptrend.
Examples:
COMEX:GC1!
CME_MINI:NQ1!
█ How to use
To use the indicator, simply apply it to your chart and modify any of your desired inputs.
• Bullish CISD color allows you to change the color of +CISD levels.
• Bearish CISD color allows you to change the color of -CISD levels.
• Line width allows you to modify the width of +-CISD lines.
• Line extension bars allows you to change how far ahead CISD levels are drawn (by default it is 5).
• Keep old CISD levels will allow you to preserve all past CISD levels if you would like to observe the logic.
• Enable stat table will let you add a table on your chart which will tell you the current CISD trend, as well as your ticker and timeframe.
• Table position allows you to customize where the table will appear on your chart.
Chart patterns
Trendingline ZMDConfirming the Breakout
To avoid false breakouts, consider these confirmation signals:
A candle close beyond the trendline.
Increased volume during the breakout.
Retesting the trendline as support/resistance.
Trading the Breakout
Entry: Enter a trade after confirmation signals.
Stop Loss: Place a stop loss slightly beyond the trendline to limit risk.
Take Profit: Set profit targets based on support/resistance levels or Fibonacci extensions.
Trendline Retest Strategy
After breaking a trendline, the price often retests the broken trendline before continuing in the new direction. If the price respects the trendline as a new support/resistance, it adds further confirmation.
By following these steps, traders can effectively use trendline breakouts to identify high-probability trading opportunities.
Breakout & Breakdown Detector with CPRwhwn a break out is indicated enter into a buy position and whwn breakdown is indicated exit trade
[JPMM]SuperTrendThis indicator is built on a combination of indicators: SuperTrend, RSI, Stochastic, ADX, EMA.
It works on the principle of finding accumulation zones combined with momentum.
You can buy or sell when you see a BUY/SELL signal, but this is an indicator used to accumulate positions, so you have to divide your capital into many equal parts to accumulate (the safest is over 50 parts).
You can adjust the overbought/oversold zone of RSI in the settings, this can help you choose better BUY/SELL zones.
Please use it and give feedback!
TrendSync Pro (SMC)📊 TrendSync Pro (SMC) – Advanced Trend-Following Strategy with HTF Alignment
Created by Shubham Singh
🔍 Strategy Overview
TrendSync Pro (SMC) is a precision-based smart trend-following strategy inspired by Smart Money Concepts (SMC). It combines: Real-time pivot-based trendline detection
Higher Time Frame (HTF) filtering to align trades with dominant trend
Risk management via adjustable Stop Loss (SL) and Take Profit (TP)
Directional control — trade only bullish, bearish, or both setups
Realistic backtesting using commissions and slippage
Pre-optimized profiles for scalpers, intraday, swing, and long-term traders
🧠 How It Works:
🔧 Strategy Settings Image:
beeimg.com
The strategy dynamically identifies trend direction by using swing high/low pivots. When a new pivot forms: It draws a trendline from the last significant pivot
Detects whether the trend is up (based on pivot lows) or down (based on pivot highs)
Waits for price to break above/below the trendline
Confirms with HTF price direction (HTF close > previous HTF close = bullish)
Only then it triggers a long or short trade
It exits either at TP, SL, or a manual trendline break
🛠️ Adjustable Parameters:
Trend Period: Length for pivot detection (affects sensitivity of trendlines)
HTF Timeframe: Aligns lower timeframe entries with higher timeframe direction
SL% and TP%: Customize your risk-reward profile
Commission & Slippage: Make backtests more realistic
Trade Direction: Choose to trade: Long only, Short only, or Both
🎛️ Trade Direction Control:
In settings, you can choose: Bullish Only: Executes only long entries
Bearish Only: Executes only short entries
Both: Executes both long and short entries when conditions are met
This allows you to align trades with your own market bias or external analysis.
📈 Entry Logic: Long Entry:
• Price crosses above trendline
• HTF is bullish (HTF close > previous close)
• Latest pivot is a low (trend is considered up)
Short Entry:
• Price crosses below trendline
• HTF is bearish (HTF close < previous close)
• Latest pivot is a high (trend is considered down)
📉 Exit Logic: Hit Take Profit or Stop Loss
Manual trendline invalidation: If price crosses opposite of the trend direction
⏰ Best Timeframes & Recommended Settings:
Scalping (1m to 5m):
HTF = 15m | Trend Period = 7
SL = 0.5% | TP = 1% to 2%
Intraday (15m to 30m):
HTF = 1H | Trend Period = 10–14
SL = 0.75% | TP = 2% to 3%
6 Hour Trading (30m to 1H):
HTF = 4H | Trend Period = 20
SL = 1% | TP = 4% to 6%
Swing Trading (4H to 1D):
HTF = 1D | Trend Period = 35
SL = 2% | TP = 8% to 12%
Long-Term Investing (1D+):
HTF = 1W | Trend Period = 50
SL = 3% | TP = 15%+
Note: These are recommended base settings. Adjust based on volatility, asset class, or personal trading style.
📸 Testing Note:
beeimg.com
TradingView limits test length to 20k bars (~40 trades on smaller timeframes). To show long-term results: Test on higher timeframes (e.g., 1H, 4H, 1D)
Share images of backtest result in description
Host longer test result screenshots on Imgur or any public drive
📍 Asset Behavior Insight:
This strategy works on multiple assets, including BTC, ETH, etc.
Performance varies by trend strength:
Sometimes BTC performs better than ETH
Other times ETH gives better results
That’s normal as both assets follow different volatility and trend behavior
It’s a trend-following setup. Longer and clearer the trend → better the results.
✅ Best Practices: Avoid ranging markets
Use proper SL/TP for each timeframe
Use directional filter if you already have a directional bias
Always forward test before going live
⚠️ Trading Disclaimer:
This script is for educational and backtesting purposes only. Trading involves risk. Always use risk management and never invest more than you can afford to lose.
Multi-Timeframe S/R & Breakout Projection1) What This Script Does
Collects S/R levels from the 15-minute and 1-hour timeframes, using each timeframe’s pivot detection.
Sorts those pivot-based levels by their distance from the current price, so you see the nearest levels first.
Draws up to a user-defined number of those levels as horizontal rays on the current chart.
Checks breakouts at the nearest S/R line (the one with the smallest distance from price):
Real Breakout: price breaks above a level and sustains above it for the specified number of bars.
False Breakout: price breaks above but quickly closes back below within the specified lookback.
On confirmation of a real or false breakout, that S/R line changes color to green if price is going higher, or red if price is going lower.
Displays a small table in the corner with:
Daily Trend: bullish or bearish, using an SMA on a 30-minute timeframe.
Sentiment: bullish or bearish, using RSI on the same 30-minute timeframe.
2) How It Works
Multi-Timeframe Pivot Detection
The script uses request.security() to fetch pivot highs/lows from two higher timeframes (15m and 60m).
It collects up to a user-specified number of these pivots (numRecent) from each TF.
Sorting & Plotting S/R Lines
Once pivot values are gathered, the script calculates their “distance” from current price.
It sorts them so that the S/R lines drawn on your chart are the nearest ones first.
Each line is drawn with a color and style you can customize:
srRayColor sets the overall color (e.g. yellow).
srRayStyleOptions can be Solid, Dashed, or Dotted.
Breakout Determination
After drawing the lines, the script looks at the nearest line and applies two specialized checks (f_isFalseBreakout & f_isRealBreakout):
A real breakout occurs if price closes above (or below) and remains on that side for breakLook bars.
A false breakout occurs if price closes above (or below) but quickly returns.
When a breakout is confirmed, that nearest line changes color to:
Green if price is ultimately going up,
Red if price is going down.
Daily Trend & Sentiment Table
A small table in the bottom-right corner shows:
Daily Trend: uses a 30-minute SMA to see if your price is above/below on that timeframe.
Sentiment: uses the RSI (also on 30m). A value over 50 suggests bullish sentiment; under 50 suggests bearish.
3) How to Use It
Timeframes & Pivots
Choose how many pivots (numRecent) from each TF to fetch (up to 10 total). A higher number means you’ll see more historical S/R lines.
Customize pivotLeft & pivotRight for how “wide” the pivot detection is.
Line Customization
In the script’s Inputs tab, you’ll find:
S/R Rays Color – sets the hue of the lines.
S/R Line Style – pick from Solid, Dashed, or Dotted.
Liquidity Lines Color – color for the smaller pivot lines from your chart timeframe’s pivot detection.
Breakout Lookback
breakLook determines how many bars must confirm or refute the breakout. Adjust it based on how conservative or aggressive you want the breakout detection.
Check the Table
In the bottom-right, watch the script’s “Daily Trend” & “Sentiment”. This can be a quick filter for trades:
“Bullish” daily trend with a bullish sentiment is often more favorable for long trades.
Conversely, “Bearish” daily trend & sentiment can confirm short ideas.
Scenarios
If you see a “Real Breakout” label near the line, the script recolors that line green or red, indicating a possible continuous move.
A “False Breakout” label suggests the price has quickly retraced.
4) Originality & Concepts
Multi-Timeframe Approach: Many S/R indicators fetch only local pivot lines; here, we explicitly gather pivot points from two separate TFs (15m & 60m) and project them onto your lower timeframe chart.
Distance-Based Sorting ensures you only see the nearest lines on the chart, preventing clutter from excessive lines.
Breakout Logic used is straightforward but effective: it checks if price truly holds beyond a level (real breakout) or fails to hold (false breakout).
Line Recoloring provides immediate visual feedback on the success or failure of the breakout.
5) Chart Usage
Plot this script on a relatively low timeframe chart (like the 1m, 5m, or 15m) to see the higher timeframe S/R lines.
Select how many S/R lines you want to show, choose the line style, set your pivot detection parameters, then watch for breakouts.
Tips:
Start with fewer lines (maxLevels=3 or 5) so the chart remains clear.
You can experiment with a small breakLook if you want more immediate breakout signals, or a higher breakLook if you need stronger confirmation.
Enjoy using the “Multi-Timeframe S/R & Breakout Projection” script! It simplifies the manual process of spotting higher timeframe pivot lines and helps you quickly assess potential breakouts or fakes on your intraday charts, all while giving you a snapshot of the higher timeframe’s trend and sentiment.
Grok Scalper M5
//@version=5
indicator("Grok Scalper M5", overlay=true, shorttitle="GROK-M5")
// === Inputs ===
// --- Geral ---
timeframe = input.timeframe("5", "Timeframe (ex.: 5 para M5)", group="Configurações Gerais")
side_threshold = input.float(0.3, "Lateral Threshold (%)", minval=0.1, maxval=1.0, step=0.1, group="Configurações Gerais", tooltip="Diferença mínima para definir tendência")
// --- Períodos ---
ema5_period = input.int(5, "EMA5 Period", minval=1, group="Períodos")
ema9_period = input.int(9, "EMA9 Period", minval=1, group="Períodos")
ema20_period = input.int(20, "EMA20 Period", minval=1, group="Períodos")
ema41_period = input.int(41, "EMA41 Period", minval=1, group="Períodos")
ema8_period = input.int(8, "EMA8 Period (Sinal)", minval=1, group="Períodos")
sma50_period = input.int(50, "SMA50 Period", minval=1, group="Períodos")
sma100_period = input.int(100, "SMA100 Period", minval=1, group="Períodos")
ma200_period = input.int(200, "MA200 Period", minval=1, group="Períodos")
hilo_period = input.int(13, "HiLo Period", minval=1, group="Períodos")
rsi_period = input.int(5, "RSI Period", minval=1, group="Períodos")
candle_up = input.color(color.green, "Candle Up", group="Cores")
candle_down = input.color(color.red, "Candle Down", group="Cores")
candle_side = input.color(color.blue, "Candle Side", group="Cores")
ma_up = input.color(color.green, "Médias Up", group="Cores")
ma_down = input.color(color.red, "Médias Down", group="Cores")
ma_side = input.color(color.yellow, "Médias Side", group="Cores")
rsi_buy = input.int(40, "RSI Buy Level", minval=0, maxval=100, group="Filtros")
rsi_sell = input.int(60, "RSI Sell Level", minval=0, maxval=100, group="Filtros")
vol_mult = input.float(1.5, "Volume Multiplier", minval=1.0, step=0.1, group="Filtros", tooltip="Volume mínimo para validar sinal")
/
ema5 = ta.ema(close, ema5_period)
ema9 = ta.ema(close, ema9_period)
ema20 = ta.ema(close, ema20_period)
ema41 = ta.ema(close, ema41_period)
ema8 = ta.ema(close, ema8_period)
sma50 = ta.sma(close, sma50_period)
sma100 = ta.sma(close, sma100_period)
ma200 = ta.sma(close, ma200_period)
// HiLo
hilo = ta.sma((high + low) / 2, hilo_period)
// RSI
rsi = ta.rsi(close, rsi_period)
rsiBuyCond = rsi > rsi_buy and rsi > rsi
rsiSellCond = rsi < rsi_sell and rsi < rsi
// Volume
volMA = ta.sma(volume, 10)
volCond = volume >= volMA * vol_mult
// Tendência
diff = math.abs((ema5 - ema20) / close) * 100
isUp = ema5 > ema20 and close > hilo and diff > side_threshold
isDown = ema5 < ema20 and close < hilo and diff > side_threshold
isSide = not isUp and not isDown
// Coloração
maColor = isUp ? ma_up : isDown ? ma_down : ma_side
plot(ema5, color=maColor, title="EMA5", linewidth=1)
plot(ema9, color=maColor, title="EMA9", linewidth=1)
plot(ema20, color=maColor, title="EMA20", linewidth=1)
plot(ema41, color=maColor, title="EMA41", linewidth=1)
plot(ema8, color=maColor, title="EMA8", linewidth=1)
plot(sma50, color=maColor, title="SMA50", linewidth=1)
plot(sma100, color=maColor, title="SMA100", linewidth=1)
plot(ma200, color=maColor, title="MA200", linewidth=2)
plot(hilo, color=color.purple, title="HiLo", linewidth=1)
JW Momentum IndicatorJW Momentum Indicator
This indicator provides clear and actionable buy/sell signals based on a combination of volume-enhanced momentum, divergence detection, and volatility adjustment. It's designed to identify potential trend reversals and momentum shifts with a focus on high-probability setups.
Key Features:
Volume-Enhanced Momentum: The indicator calculates a custom oscillator that combines momentum with volume, giving more weight to momentum when volume is significant. This helps to identify strong momentum moves.
Divergence Detection: It detects bullish and bearish divergences using pivot highs and lows, highlighting potential trend reversals.
Volatility-Adjusted Signals: The indicator adjusts signal sensitivity based on the Average True Range (ATR), making it more reliable in varying market conditions.
Clear Visuals: Buy and sell signals are clearly indicated with up and down triangles, while divergences are highlighted with distinct labels.
How to Use:
Buy Signals: Look for green up triangles or bullish divergence labels.
Sell Signals: Look for red down triangles or bearish divergence labels.
Oscillator and Thresholds: Use the plotted oscillator and thresholds to confirm signal strength.
Parameters:
Momentum Period: Adjusts the length of the momentum calculation.
Volume Average Period: Adjusts the length of the volume average calculation.
Volatility Period: Adjusts the length of the ATR calculation.
Volatility Multiplier: Adjusts the sensitivity of the volatility-adjusted signals.
Disclaimer:
This indicator is for informational purposes only and should not be considered financial advice. Always conduct 1 thorough research and use appropriate risk management techniques when trading.
GQT GPT - Volume-based Support & Resistance Zones V2搞钱兔,搞钱是为了更好的生活。
Title: GQT GPT - Volume-based Support & Resistance Zones V2
Overview:
This strategy is implemented in PineScript v5 and is designed to identify key support and resistance zones based on volume-driven fractal analysis on a 1-hour timeframe. It computes fractal high points (for resistance) and fractal low points (for support) using volume moving averages and specific price action criteria. These zones are visually represented on the chart with customizable lines and zone fills.
Trading Logic:
• Entry: The strategy initiates a long position when the price crosses into the support zone (i.e., when the price drops into a predetermined support area).
• Exit: The long position is closed when the price enters the resistance zone (i.e., when the price rises into a predetermined resistance area).
• Time Frame: Trading signals are generated solely from the 1-hour chart. The strategy is only active within a specified start and end date.
• Note: Only long trades are executed; short selling is not part of the strategy.
Visualization and Parameters:
• Support/Resistance Zones: The zones are drawn based on calculated fractal values, with options to extend the lines to the right for easier tracking.
• Customization: Users can configure the appearance, such as line style (solid, dotted, dashed), line width, colors, and label positions.
• Volume Filtering: A volume moving average threshold is used to confirm the fractal signals, enhancing the reliability of the support and resistance levels.
• Alerts: The strategy includes alert conditions for when the price enters the support or resistance zones, allowing for timely notifications.
⸻
搞钱兔,搞钱是为了更好的生活。
标题: GQT GPT - 基于成交量的支撑与阻力区间 V2
概述:
本策略使用 PineScript v5 实现,旨在基于成交量驱动的分形分析,在1小时级别的图表上识别关键支撑与阻力区间。策略通过成交量移动平均线和特定的价格行为标准计算分形高点(阻力)和分形低点(支撑),并以自定义的线条和区间填充形式直观地显示在图表上。
交易逻辑:
• 进场条件: 当价格进入支撑区间(即价格跌入预设支撑区域)时,策略在没有持仓的情况下发出做多信号。
• 离场条件: 当价格进入阻力区间(即价格上升至预设阻力区域)时,持有多头头寸则会被平仓。
• 时间范围: 策略的信号仅基于1小时级别的图表,并且仅在指定的开始日期与结束日期之间生效。
• 备注: 本策略仅执行多头交易,不进行空头操作。
可视化与参数设置:
• 支撑/阻力区间: 根据计算得出的分形值绘制支撑与阻力线,可选择将线条延伸至右侧,便于后续观察。
• 自定义选项: 用户可以调整线条样式(实线、点线、虚线)、线宽、颜色及标签位置,以满足个性化需求。
• 成交量过滤: 策略使用成交量移动平均阈值来确认分形信号,提高支撑和阻力区间的有效性。
• 警报功能: 当价格进入支撑或阻力区间时,策略会触发警报条件,方便用户及时关注市场变化。
⸻
Fibonacci Trend TradingRules:
1. Trading Bias
Bullish
Price > EMA 200 = Bullish
Price < EMA 200 = Bearish
2. Trade signal
- Fibonacci retracement @ 50% - 61.8% for LONG
- Fibonacci retracement @61.8% - 78.6% for SHORT
- Look for engulfing candle before entering
3. TP, recent high
4. Trail Stop EMA 10 crossover or session end.
5. Trading session London and NY
Heikin Ashi Buy/Sell with Custom TimeframeSimple indicator that can catch trend,it helps to catch trends,prevent noise and uses heikin ashi calculation
Impulse Candle IdentifierWhat It Does
• Marks bullish impulse candles with a green triangle.
• Marks bearish impulse candles with a red triangle.
• Optionally highlights the impulse candles in the background.
Customize It
• Increase body_multiplier to only catch the most aggressive candles.
• Adjust volume_multiplier if your market has low or high volume fluctuations.
Canadian Elections & PM TimelineThis script displays major Canadian federal election years along with the names and party affiliations of elected Prime Ministers, directly on your price chart. It provides a quick visual reference for key political events that may have had market impact, helping traders correlate price movements with changes in leadership.
15-Min Breakout Strategy✅ Marks the highest high & lowest low from the 2nd and 3rd 15-minute candles
✅ Plots horizontal lines from the 3rd candle onwards (not extending forever)
✅ Detects when the next candle (4th or beyond) crosses these levels
✅ Plots a Green "Buy Signal" if price breaks the highest high
✅ Plots a Red "Sell Signal" if price breaks the lowest low
LUX CLARA - EMA + VWAP (No ATR Filter) - v6EMA STRAT SHOUT OUTOUTLIERSSSSS
Overview:
an intraday strategy built around two core principles:
Trend Confirmation using the 50 EMA (Exponential Moving Average) in relation to the VWAP (Volume-Weighted Average Price).
Entry Signals triggered by the 8 EMA crossing the 50 EMA in the direction of that confirmed trend.
Key Logic:
Bullish Trend if the 50 EMA is above VWAP. Only long entries are allowed when the 8 EMA crosses above the 50 EMA during that bullish phase.
Bearish Trend if the 50 EMA is below VWAP. Only short entries are allowed when the 8 EMA crosses below the 50 EMA during that bearish phase.
Intraday Focus: Trades are restricted to a user-defined session window (default 7:30 AM–11:30 AM), aligning entries/exits with peak intraday liquidity.
Exit Rule: Positions close automatically when the 8 EMA crosses back in the opposite direction of the entry.
Why It Works:
EMA + VWAP helps detect both immediate momentum (EMAs) and overall institutional bias (VWAP).
By confining trades to a set intraday window, the strategy aims to capture morning volatility while avoiding choppy afternoon or overnight sessions.
Customization:
Users can adjust EMA lengths, session times, or incorporate stops/targets for additional risk management.
It can be tested on various symbols and intraday timeframes to gauge performance and robustness.
Trend-Based Buy/Sell/Sideways SignalThick trend bands with gradient coloring
✅ Clear "BUY", "SELL", and "SIDEWAYS" signals with labels
✅ Proper visual elements to enhance clarity
D3m4h GIFVGDescription
D3m4h GIFVG is an indicator designed to automatically detect market imbalances—often referred to as FVGs (Fair Value Gaps)—and potential pivot-based shifts in market structure. It offers a dynamic approach to visualizing supply/demand inefficiencies and pivot-based trend changes. Key features include:
1. Pivot-Based Bullish/Bearish Detection
The indicator identifies higher-high/lower-low pivot logic as well as “outside bar” pivots.
It tracks when the market transitions from bullish to bearish ranges, or vice versa, by using multiple checks:
Pivot low/high detection
Break-of-structure (when price crosses the last pivot)
Opposing FVG detection to confirm an intraday pivot shift
2. FVG (Fair Value Gap) Detection
The script automatically scans for bullish or bearish FVG conditions:
Bullish FVG: Candle at position (bar_index - 2) has a high below the current candle’s low.
Bearish FVG: Candle at position (bar_index - 2) has a low above the current candle’s high.
When it detects an FVG, it draws a box on the chart to highlight the price gap (yellow boxes by default).
3. Pivot Range FVG
If an FVG forms while the market is in a bullish pivot range, the script can paint a special “blue” FVG to underscore its significance. The same logic applies if a newly formed FVG appears in a bearish pivot range.
4. Filled Gap Cleanup
You can optionally hide standard FVG boxes once they’re filled. For example, if the candle’s body (or candle range) covers that gap, the box is removed to keep your chart clean.
5. Pivot-Range FVG “Raided” Cleanup
If the pivot-based FVG is later filled from the opposing direction, it turns green and can optionally remove itself after a set number of bars.
6. Informative Table
A small table on the chart optionally displays whether or not the pivot-based FVG has been “raided”. You can toggle this table on/off in the settings.
How It Works
1. Pivot Shifts
The script tracks the last pivot high/low using a combination of candle-based pivot detection and break-of-structure checks (when price crosses the last pivot in the opposite direction).
When a shift is detected, the pivot range ID increments—this helps the script know when to remove old pivot-based FVGs or draw new ones.
2. FVG Formation
Each new bar checks if a bullish or bearish FVG formed (comparing the high of bar two bars ago to the current low, or the low of bar two bars ago to the current high).
If one is found, a box is drawn to highlight the imbalance. Its color and extension depend on script settings.
3. Imbalance or Pivot FVG
Standard imbalance boxes appear in yellow.
If the new imbalance coincides with a bullish or bearish pivot range, a special “pivot imbalance” box in blue is drawn.
3. Hide Filled
If a newly formed candle’s body fully covers the FVG, the box is considered filled. If Hide Filled Gaps is enabled, the box is deleted once it’s covered.
4. Raid Status
For the pivot-based (blue) FVG, once price invalidates it from the opposite side, it changes color to green and gets removed after a user-defined number of bars.
How to Use
1. Look for FVGs
Observe yellow boxes to identify potential intraday imbalances. Watch for price returning to fill these zones.
If you see a “blue” box, it signifies a pivot-based FVG in line with a recognized shift in structure—arguably a higher-probability zone.
2. “Hide Filled Gaps”
Turn this on if you only want to see currently active or partially filled imbalances. The script cleans up old, fully covered boxes to keep your chart neat.
3. Pivot Shifts
Note the script’s internal pivot logic. Each new pivot re-defines bullish or bearish states. Use these states to gauge the short-term trend shifts.
4. Toggle the Table
You can show or hide the chart table by enabling/disabling “Show Table” from the inputs. This table indicates if the pivot-based “GIFVG” has been “raided” or not.
5. Extend Count
Adjust the extendCount in the code if you want FVG boxes to extend further or shorter in time.
Underlying Concepts
Fair Value Gaps
Market inefficiencies that occur when price jumps, leaving a “gap” from the candle 2 bars ago to the current candle. They can act like mini supply/demand zones where price may revisit for balance.
Pivot Ranges
The script tries to maintain an internal sense of whether the market is in a bullish or bearish pivot range. When it sees a contrary FVG or break-of-structure, it flips the pivot state.
Outside Bars
A candle that has both a higher high and a lower low than the previous bar. The script uses these to mark significant pivot shifts.
By combining pivot-based logic with FVG detection, the D3m4h GIFVG indicator helps highlight potential areas of liquidity or unfilled value. Traders can use these zones to plan entries/exits or to confirm short-term trend shifts.
D3m4h GIFVGDescription
D3m4h GIFVG is an indicator designed to automatically detect market imbalances—often referred to as FVGs (Fair Value Gaps)—and potential pivot-based shifts in market structure. It offers a dynamic approach to visualizing supply/demand inefficiencies and pivot-based trend changes. Key features include:
1. Pivot-Based Bullish/Bearish Detection
The indicator identifies higher-high/lower-low pivot logic as well as “outside bar” pivots.
It tracks when the market transitions from bullish to bearish ranges, or vice versa, by using multiple checks:
Pivot low/high detection
Break-of-structure (when price crosses the last pivot)
Opposing FVG detection to confirm an intraday pivot shift
2. FVG (Fair Value Gap) Detection
The script automatically scans for bullish or bearish FVG conditions:
Bullish FVG: Candle at position (bar_index - 2) has a high below the current candle’s low.
Bearish FVG: Candle at position (bar_index - 2) has a low above the current candle’s high.
When it detects an FVG, it draws a box on the chart to highlight the price gap (yellow boxes by default).
3. Pivot Range FVG
If an FVG forms while the market is in a bullish pivot range, the script can paint a special “blue” FVG to underscore its significance. The same logic applies if a newly formed FVG appears in a bearish pivot range.
4. Filled Gap Cleanup
You can optionally hide standard FVG boxes once they’re filled. For example, if the candle’s body (or candle range) covers that gap, the box is removed to keep your chart clean.
5. Pivot-Range FVG “Raided” Cleanup
If the pivot-based FVG is later filled from the opposing direction, it turns green and can optionally remove itself after a set number of bars.
6. Informative Table
A small table on the chart optionally displays whether or not the pivot-based FVG has been “raided”. You can toggle this table on/off in the settings.
How It Works
1. Pivot Shifts
The script tracks the last pivot high/low using a combination of candle-based pivot detection and break-of-structure checks (when price crosses the last pivot in the opposite direction).
When a shift is detected, the pivot range ID increments—this helps the script know when to remove old pivot-based FVGs or draw new ones.
2. FVG Formation
Each new bar checks if a bullish or bearish FVG formed (comparing the high of bar two bars ago to the current low, or the low of bar two bars ago to the current high).
If one is found, a box is drawn to highlight the imbalance. Its color and extension depend on script settings.
3. Imbalance or Pivot FVG
Standard imbalance boxes appear in yellow.
If the new imbalance coincides with a bullish or bearish pivot range, a special “pivot imbalance” box in blue is drawn.
3. Hide Filled
If a newly formed candle’s body fully covers the FVG, the box is considered filled. If Hide Filled Gaps is enabled, the box is deleted once it’s covered.
4. Raid Status
For the pivot-based (blue) FVG, once price invalidates it from the opposite side, it changes color to green and gets removed after a user-defined number of bars.
How to Use
1. Look for FVGs
Observe yellow boxes to identify potential intraday imbalances. Watch for price returning to fill these zones.
If you see a “blue” box, it signifies a pivot-based FVG in line with a recognized shift in structure—arguably a higher-probability zone.
2. “Hide Filled Gaps”
Turn this on if you only want to see currently active or partially filled imbalances. The script cleans up old, fully covered boxes to keep your chart neat.
3. Pivot Shifts
Note the script’s internal pivot logic. Each new pivot re-defines bullish or bearish states. Use these states to gauge the short-term trend shifts.
4. Toggle the Table
You can show or hide the chart table by enabling/disabling “Show Table” from the inputs. This table indicates if the pivot-based “GIFVG” has been “raided” or not.
5. Extend Count
Adjust the extendCount in the code if you want FVG boxes to extend further or shorter in time.
Underlying Concepts
Fair Value Gaps
Market inefficiencies that occur when price jumps, leaving a “gap” from the candle 2 bars ago to the current candle. They can act like mini supply/demand zones where price may revisit for balance.
Pivot Ranges
The script tries to maintain an internal sense of whether the market is in a bullish or bearish pivot range. When it sees a contrary FVG or break-of-structure, it flips the pivot state.
Outside Bars
A candle that has both a higher high and a lower low than the previous bar. The script uses these to mark significant pivot shifts.
By combining pivot-based logic with FVG detection, the D3m4h GIFVG indicator helps highlight potential areas of liquidity or unfilled value. Traders can use these zones to plan entries/exits or to confirm short-term trend shifts.
Trendingline ZMDConfirming the Breakout
To avoid false breakouts, consider these confirmation signals:
A candle close beyond the trendline.
Increased volume during the breakout.
Retesting the trendline as support/resistance.
Trading the Breakout
Entry: Enter a trade after confirmation signals.
Stop Loss: Place a stop loss slightly beyond the trendline to limit risk.
Take Profit: Set profit targets based on support/resistance levels or Fibonacci extensions.
Trendline Retest Strategy
After breaking a trendline, the price often retests the broken trendline before continuing in the new direction. If the price respects the trendline as a new support/resistance, it adds further confirmation.
By following these steps, traders can effectively use trendline breakouts to identify high-probability trading opportunities.
Engulfing Candle Indicator with Single AlertEngulfing Candle Indicator with Alerts
This custom Pine Script indicator identifies Bullish and Bearish Engulfing Candles on the price chart, which are key reversal patterns. A Bullish Engulfing occurs when a smaller bearish candle is completely engulfed by a subsequent bullish candle, signaling a potential upward trend. Conversely, a Bearish Engulfing happens when a bullish candle is engulfed by a following bearish candle, indicating a possible downward trend.
The indicator highlights these patterns on the chart with green arrows for Bullish Engulfing and red arrows for Bearish Engulfing. It also includes an alert system that notifies the user whenever either of these patterns occurs.
The script uses an Average True Range (ATR) filter to ensure that the engulfing candles have sufficient size relative to market volatility. Additionally, users can adjust the minimum engulfing size to fine-tune the signal.
Grok Scalper M5 - Otimizado.r-bnwqim{position:relative;} .r-bt1l66{min-height:20px;} .r-bvlit7{margin-bottom:-12px;} .r-deolkf{box-sizing:border-box;} .r-dflpy8{height:1.2em;} .r-dnmrzs{max-width:100%;} .r-ehq7j7{background-size:contain;} .r-emqnss{transform:translateZ(0px);} .r-eqz5dr{flex-direction:column;} .r-ero68b{min-height:40px;} .r-fdjqy7{text-align:left;} .r-fm7h5w{font-family:"TwitterChirpExtendedHeavy","Verdana",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;} .r-h9hxbl{width:1.2em;} .r-icoktb{opacity:0.5;} .r-ifefl9{min-height:0px;} .r-impgnl{transform:translateX(50%) translateY(-50%);} .r-iphfwy{padding-bottom:4px;} .r-ipm5af{top:0px;} .r-jmul1s{transform:scale(1.1);} .r-jwli3a{color:rgba(255,255,255,1.00);} .r-kemksi{background-color:rgba(0,0,0,1.00);} .r-lp5zef{min-width:24px;} .r-lrsllp{width:24px;} .r-lrvibr{-moz-user-select:none;-webkit-user-select:none;user-select:none;} .r-m6rgpd{vertical-align:text-bottom;} .r-majxgm{font-weight:500;} .r-n6v787{font-size:13px;} .r-nwxazl{line-height:40px;} .r-o7ynqc{transition-duration:0.2s;} .r-peo1c{min-height:44px;} .r-poiln3{font-family:inherit;} .r-pp5qcn{vertical-align:-20%;} .r-q4m81j{text-align:center;} .r-qlhcfr{font-size:0.001px;} .r-qvk6io{line-height:0px;} .r-qvutc0{word-wrap:break-word;} .r-rjixqe{line-height:20px;} .r-rki7wi{bottom:12px;} .r-sb58tz{max-width:1000px;} .r-tjvw6i{text-decoration-thickness:1px;} .r-u6sd8q{background-repeat:no-repeat;} .r-u8s1d{position:absolute;} .r-ueyrd6{line-height:36px;} .r-uho16t{font-size:34px;} .r-vkv6oe{min-width:40px;} .r-vlxjld{color:rgba(247,249,249,1.00);} .r-vqxq0j{border:0 solid black;} .r-vrz42v{line-height:28px;} .r-vvn4in{background-position:center;} .r-wy61xf{height:72px;} .r-x3cy2q{background-size:100% 100%;} .r-x572qd{background-color:rgba(247,249,249,1.00);} .r-xigjrr{-webkit-filter:blur(4px);filter:blur(4px);} .r-yc9v9c{width:22px;} .r-yfoy6g{background-color:rgba(21,32,43,1.00);} .r-yy2aun{font-size:26px;} .r-yyyyoo{fill:currentcolor;} .r-z7pwl0{max-width:700px;} .r-z80fyv{height:20px;} .r-zchlnj{right:0px;} @-webkit-keyframes r-11cv4x{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}} @keyframes r-11cv4x{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}} .r-1xc71g{position:absolute;visibility:hidden;top:0;width:50px;pointer-events:none} .r-1xc71g.loaded{visibility:visible;top:50vh;width:50px}
Instalação:
Copie o código acima.
Abra o TradingView > "Indicadores" > "Editor Pine" > cole > "Salvar" > "Adicionar ao Gráfico".
Configuração:
Timeframe padrão é M5 (ajustável).
Cores e parâmetros podem ser alterados no menu de configurações.
Operação:
Compra: Seta verde, médias verdes, candle verde.
Venda: Seta vermelha, médias vermelhas, candle vermelho.