Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === شموع ابتلاعية ===
bullEngulf = close > open and open < close and close > open
bearEngulf = close < open and open > close and close < open
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: BOS + CHOCH ===
bosUp = high > high and low > low
bosDown = low < low and high < high
chochUp = close > high and close < high
chochDown = close < low and close > low
smcBuy = bosUp and chochUp
smcSell = bosDown and chochDown
// === مناطق السيولة ===
liqHigh = ta.highest(high, 30)
liqLow = ta.lowest(low, 30)
liquidityBuyZone = close < liqLow
liquiditySellZone = close > liqHigh
// === حساب النقاط لكل صفقة ===
buyScore = (trendBull ? 1 : 0) + (rsiBull ? 1 : 0) + (volHigh ? 1 : 0) + (bullEngulf ? 1 : 0) + (smcBuy ? 1 : 0) + (bbBreakUp ? 1 : 0) + (nearSupport ? 1 : 0) + (crossUp ? 1 : 0) + (atrActive ? 1 : 0) + (liquidityBuyZone ? 1 : 0)
sellScore = (trendBear ? 1 : 0) + (rsiBear ? 1 : 0) + (volHigh ? 1 : 0) + (bearEngulf ? 1 : 0) + (smcSell ? 1 : 0) + (bbBreakDown ? 1 : 0) + (nearResistance ? 1 : 0) + (crossDown ? 1 : 0) + (atrActive ? 1 : 0) + (liquiditySellZone ? 1 : 0)
// === شروط الإشارات مع منع التكرار خلال آخر 5 شموع ===
var int lastBuyBar = na
var int lastSellBar = na
canBuy = buyScore >= 5 and (na(lastBuyBar) or bar_index - lastBuyBar > 5)
canSell = sellScore >= 5 and (na(lastSellBar) or bar_index - lastSellBar > 5)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy
showSell = canSell
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = low
tpLevels = array.new_float(5)
array.set(tpLevels, 0, 0.618)
array.set(tpLevels, 1, 1.0)
array.set(tpLevels, 2, 1.272)
array.set(tpLevels, 3, 1.618)
array.set(tpLevels, 4, 2.0)
slLevel = -0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(buyLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(buyLines, slLine)
if (showSell)
entry = high
tpLevels = array.new_float(5)
array.set(tpLevels, 0, -0.618)
array.set(tpLevels, 1, -1.0)
array.set(tpLevels, 2, -1.272)
array.set(tpLevels, 3, -1.618)
array.set(tpLevels, 4, -2.0)
slLevel = 0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(sellLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(sellLines, slLine)
// === نسبة المخاطرة ===
label.new(bar_index, showBuy ? low : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
label.new(bar_index, showSell ? high : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
指標和策略
Gold vs DXYThe 30-day rolling correlation between Gold (XAU/USD) and the US Dollar Index (DXY) shows how closely the two move together — or more often, in opposite directions — over the last 30 trading days. In most market environments, the relationship is pretty straightforward: when the dollar goes up, gold tends to go down, and vice versa. That’s because gold is priced in dollars, so a stronger dollar makes it more expensive for international buyers, which usually softens demand.
But it’s not always that simple. There are times when this inverse correlation breaks down. For example, if real yields (like the US 10-year yield minus inflation expectations) are rising, that can pressure gold even if the dollar is falling — because higher real returns elsewhere make gold less attractive. Another case is when other currencies, like the euro or yen, rally strongly on their own central bank decisions. This can pull DXY lower without necessarily signaling weakness in the U.S. economy — meaning gold might not benefit much.
There are also “risk-on” moments where investors rotate into equities or crypto, selling off both gold and the dollar in favor of yield or momentum. And during periods of crisis or uncertainty, both gold and the dollar can rise together as safe-haven assets, breaking the usual pattern entirely.
That’s why tracking the rolling correlation is helpful. It shows whether the historical relationship between gold and the dollar is still holding — or if we’re entering a different market regime. It’s not about predicting exact price moves, but about understanding the current backdrop. When gold and DXY are moving out of sync as expected, it can support your trade thesis. But when the correlation flattens or flips, it’s often a sign to dig deeper — macro forces may be shifting.
Capitalizedmoney HTF Structure + Trend// === How It Works ===
// This script detects swing highs and lows on a higher timeframe (HTF),
// draws trendlines between recent swing points,
// and identifies the overall HTF trend as Bullish, Bearish, or Neutral.
// A label updates every 10 bars, showing the current HTF trend direction.
// Useful for aligning lower timeframe trades with higher timeframe structure.
Cross-Correlation Lead/Lag AnalyzerCross-Correlation Lead/Lag Analyzer (XCorr)
Discover which instrument moves first with advanced cross-correlation analysis.
This indicator analyzes the lead/lag relationship between any two financial instruments using rolling cross-correlation at multiple time offsets. Perfect for pairs trading, market timing, and understanding inter-market relationships.
Key Features:
Universal compatibility - Works with any two symbols (stocks, futures, forex, crypto, commodities)
Multi-timeframe analysis - Automatically adjusts lag periods based on your chart timeframe
Real-time correlation table - Shows current correlation values for all lag scenarios
Visual lead/lag detection - Color-coded plots make it easy to spot which instrument leads
Smart "Best" indicator - Automatically identifies the strongest relationship
How to Use:
Set your symbols in the indicator settings (default: NQ1! vs RTY1!)
Adjust correlation length (default: 20 periods for smooth but responsive analysis)
Watch the colored lines:
• Red/Orange: Symbol 2 leads Symbol 1 by 1-2 periods
• Blue: Instruments move simultaneously
• Green/Purple: Symbol 1 leads Symbol 2 by 1-2 periods
Check the table for exact correlation values and the "Best" relationship
Interpreting Results:
Correlation > 0.7: Strong positive relationship
Correlation 0.3-0.7: Moderate relationship
Correlation < 0.3: Weak/no relationship
Highest line indicates the optimal timing relationship
Popular Use Cases:
Index Futures : NQ vs ES, RTY vs IWM
Sector Rotation : XLF vs XLK, QQQ vs SPY
Commodities : GC vs SI, CL vs NG
Currency Pairs : EURUSD vs GBPUSD
Crypto : BTC vs ETH correlation analysis
Technical Notes:
Cross-correlation measures linear relationships between two time series at different time lags. This implementation uses Pearson correlation with adjustable periods, calculating correlations from -2 to +2 period offsets to detect leading/lagging behavior.
Perfect for quantitative analysts, pairs traders, and anyone studying inter-market relationships.
XAUUSD Scalper Levels (ChatGPT v2.5)The Pine v6 indicator plots predefined short/long trading zones and breakout levels on XAUUSD, watches for price entering those zones or crossing the breakout lines, and when that happens it builds a formatted message (entry, SL, up to three TPs, and an invalidation note) plus a risk-based lot size calculated from your equity, risk %, and contract value; it then fires an `alert()` with that message and, on the last bar, shows a floating label displaying the next-trade lot suggestion.
Confirmed Entry Signal (10 Methods)//@version=5
indicator("Confirmed Entry Signal (10 Methods)", overlay=true)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم (RSI) ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === الشموع الابتلاعية ===
bullEngulf = close > open and close > open and open < close
bearEngulf = close < open and close < open and open > close
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR (التقلب) ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: CHOCH + BOS ===
// BOS: كسر القمة أو القاع السابق (بسيطة)
bosUp = high > high and low > low
bosDown = low < low and high < high
// CHOCH: انعكاس الاتجاه (تغيير هيكلي)
chochUp = close > high and close < high
chochDown = close < low and close > low
// === تجميع التأكيدات ===
buyConfirm = 0
sellConfirm = 0
buyConfirm := buyConfirm + (trendBull ? 1 : 0)
buyConfirm := buyConfirm + (rsiBull ? 1 : 0)
buyConfirm := buyConfirm + (volHigh ? 1 : 0)
buyConfirm := buyConfirm + (bullEngulf ? 1 : 0)
buyConfirm := buyConfirm + ((bosUp and chochUp) ? 1 : 0)
buyConfirm := buyConfirm + (bbBreakUp ? 1 : 0)
buyConfirm := buyConfirm + (nearSupport ? 1 : 0)
buyConfirm := buyConfirm + (crossUp ? 1 : 0)
buyConfirm := buyConfirm + (atrActive ? 1 : 0)
sellConfirm := sellConfirm + (trendBear ? 1 : 0)
sellConfirm := sellConfirm + (rsiBear ? 1 : 0)
sellConfirm := sellConfirm + (volHigh ? 1 : 0)
sellConfirm := sellConfirm + (bearEngulf ? 1 : 0)
sellConfirm := sellConfirm + ((bosDown and chochDown) ? 1 : 0)
sellConfirm := sellConfirm + (bbBreakDown ? 1 : 0)
sellConfirm := sellConfirm + (nearResistance ? 1 : 0)
sellConfirm := sellConfirm + (crossDown ? 1 : 0)
sellConfirm := sellConfirm + (atrActive ? 1 : 0)
// === شرط ظهور الصفقة المؤكدة (5 تأكيدات على الأقل) ===
showBuy = buyConfirm >= 5
showSell = sellConfirm >= 5
// === عرض الإشارات على الشارت ===
plotshape(showBuy, title="BUY Signal", location=location.belowbar, style=shape.labelup, size=size.small, color=color.black)
plotshape(showSell, title="SELL Signal", location=location.abovebar, style=shape.labeldown, size=size.small, color=color.black)
Impulse Alert - Demand (Buy) [Fixed]🔵 Impulse Alert – Demand (Buy)
This indicator is designed to detect high-probability Demand Zones based on impulsive bullish price action, helping traders get alerted only when it matters most.
🧠 Core Logic:
Scans the chart for 2 consecutive bullish impulsive candles with significant range (body size)
Also captures single large bullish impulse candles that often mark institutional buying
Marks the origin of the move as a potential Demand Zone
Sends alerts when such bullish setups form, allowing you to monitor charts passively
⚙️ Features:
✅ Alerts on impulsive move formations
✅ Detects both 2-candle and single-candle impulses
✅ Custom zone detection logic based on pip size and momentum
✅ Cleaner & smarter: removes distractions and avoids false signals
📌 Best Used For:
Smart Money / Supply & Demand traders
Identifying potential institutional buy zones
Executing trades with HTF confluence
Traders who want to get alerted without screen-watching
🔁 Suggested Strategy:
Set HTF directional bias (H1, H4, D1)
Use this indicator on LTF (1M–15M) for impulsive bullish entries
Wait for price to return to the marked zone for low-risk entries
💡 Pro Tip: Combine with your Supply Zone (Sell) indicator to track both sides of market structure and increase R:R
👤 Created by: Rohit Jadhav | YT/Insta/X - @GrowthByTrading
📬 Want updates, enhancements, or personal versions? Leave feedback or reach out through profile!
WaveTrend with CrossesWaveTrend with Crosses — Spot Golden & Dead Crosses with Precision!
WaveTrend with Crosses is a customized version of the classic WaveTrend oscillator, enhanced with clean visual signals to help you pinpoint momentum shifts through golden and dead crosses.
✅ Key Features
Momentum analysis based on WaveTrend (WT1 & WT2)
Detects Golden Cross (WT1 crosses above WT2) and
Dead Cross (WT1 crosses below WT2)
Customizable Overbought/Oversold zones (defaults: ±60, ±53)
Visual circle markers on valid crossovers for easy recognition
Built-in alert system to notify you of real-time cross signals
📊 How to Use
Add the indicator to your chart and choose your desired symbol & timeframe.
The blue shaded area shows the divergence between WT1 and WT2 — a visual cue for momentum buildup.
Circle markers:
Red circle: Dead cross — potential bearish momentum
Green circle: Golden cross — potential bullish reversal
Customize the settings to fit your personal trading strategy if needed.
🛠 User Inputs
n1, n2: Channel lengths (default: 10 and 21)
obLevel, osLevel: Overbought/Oversold thresholds (default: ±60 / ±53)
standardValue: Threshold used to validate significant crossovers (default: 60)
🔔 Alert System
Get notified with alerts like "Golden Cross" or "Dead Cross" when key crossovers occur,
helping you react quickly and confidently.
⚠️ Notes
Past performance is not indicative of future results — always backtest and use in conjunction with other tools.
Low timeframes may generate frequent signals; filtering or confirmation is recommended.
💡 Author's Note
Simple and effective — this tool is designed to focus solely on cross-based entries.
Ideal for momentum-based scalping or swing trading strategies.
Feel free to customize and tweak as needed! 😄
فلتر فني كامل - تنبيه بيع وشراء//@version=5
indicator("فلتر فني كامل - تنبيه بيع وشراء", overlay=true)
// إعدادات المتوسطات
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// مؤشر القوة النسبية RSI
rsi = ta.rsi(close, 14)
// MACD
= ta.macd(close, 12, 26, 9)
// شمعة مؤسسية: جسم كبير + فوليوم مرتفع
body = math.abs(close - open)
isBigCandle = body > ta.sma(body, 10)
volumeCondition = volume > ta.sma(volume, 20)
// شروط شراء
buyCond = close > ema50 and ema50 > ema200 and rsi < 30 and macdLine > signalLine and isBigCandle and volumeCondition
// شروط بيع
sellCond = close < ema50 and ema50 < ema200 and rsi > 70 and macdLine < signalLine and isBigCandle and volumeCondition
// رسم إشارات على الشارت
plotshape(buyCond, title="إشارة شراء", location=location.belowbar, color=color.green, style=shape.labelup, text="شراء")
plotshape(sellCond, title="إشارة بيع", location=location.abovebar, color=color.red, style=shape.labeldown, text="بيع")
// التنبيه
alertcondition(buyCond, title="تنبيه شراء", message="إشارة شراء حسب الفلتر الفني")
alertcondition(sellCond, title="تنبيه بيع", message="إشارة بيع حسب الفلتر الفني")
3-Bar Reversal and Engulfing3-bar reversal and engulfing candle signals, and a trendline filter.
It should be used to identify consolidation breakouts in a trending market.
Impulse Alert - Supply (Sell) [Fixed]🟥 Supply Zone (Sell) – Institutional Order Block Detector
This custom indicator automatically detects valid Supply Zones (Sell Zones) based on Smart Money Concepts and institutional trading behavior.
🔍 How It Works:
Identifies strong bearish impulsive moves after price forms a potential Order Block
Valid supply zones are plotted after:
A valid rally–base–drop or drop–base–drop structure
A shift in structure or clear imbalance is detected
The zone is created from the last bullish candle before a strong bearish engulfing move
Zones remain on chart until price revisits and reacts
📊 Use Case:
Ideal for traders using Smart Money Concepts (SMC), Supply & Demand, or ICT-inspired strategies
Perfect for scalping, day trading, or swing setups
Designed for confluence with HTF bias and LTF execution
⚙️ Features:
Supply Zone auto-plotting
Customizable zone color and opacity
Alerts when price returns to the zone (retest entry opportunity)
🧠 Tip for Best Use:
Use in confluence with:
HTF Supply zones (manual or other indicator)
Market Structure breaks
Fair Value Gaps or Imbalance zones
Strong impulsive moves from HTF to LTF
🔁 Future Additions (Coming Soon):
Demand Zone detection
Zone strength rating system
Refined zone filters (volume, candle size, etc.)
Alerts for mitigation or invalidation
📌 Created by: Rohit Jadhav | Real-time market trader | YT/Insta - @GrowthByTrading
💬 Feedback? Drop a comment or connect via profile for updates and tutorials!
90/30 Minute Cycle BoxesThis indicator automatically draws time-based cycle boxes to help visualize market structure and cyclical behavior.
Features:
90-Minute Primary Cycles: Highlights each 90-minute interval with a colored box, showing the high and low of that period.
30-Minute Sub-Cycles: Each 90-minute box is divided into 3 sub-boxes representing 30-minute phases.
Multi-Timeframe Compatible: Works on all timeframes, adapting dynamically to your chart.
Visual Clarity: Alternating box colors make it easy to track price action within and across cycles.
This tool is ideal for traders who use time cycles in their analysis, especially those applying ICT, Smart Money Concepts, or time-based market theories.
Average Daily Range in TicksPurpose: The ADR Ticks Indicator calculates and displays the average daily price range of a financial instrument, expressed in ticks, over a user-specified number of days. It provides traders with a measure of average daily volatility, which can be used for position sizing, setting stop-loss/take-profit levels, or assessing market activity.
Calculation: Computes the average daily range by taking the difference between the daily high and low prices, averaging this range over a customizable number of days, and converting the result into ticks (using the instrument's minimum tick size).
Customization: Includes a user input to adjust the number of days for the average calculation and a toggle to show/hide the ADR Ticks value in the table.
Risk Management: Helps traders estimate typical daily price movement to set appropriate stop-loss or take-profit levels.
Market Analysis: Offers insight into average daily volatility, useful for day traders or swing traders assessing whether a market is trending or ranging.
Technical Notes:
The indicator uses barstate.islast to update the table only on the last bar, reducing computational load and preventing overlap.
The script handles different chart timeframes by pulling daily data via request.security, making it robust across various instruments and timeframes.
MA20/EMA200 Crossover Alert# MA20/EMA200 Crossover Alert with Telegram Integration
**Description:**
This indicator identifies key trend reversals by detecting when the 20-period Simple Moving Average (MA20) crosses the 200-period Exponential Moving Average (EMA200). These crossovers are widely recognized as significant signals for medium to long-term trend changes.
**Key Features:**
- Real-time detection of MA20/EMA200 crossovers on any timeframe (optimized for 1H)
- Visual signals with up/down triangles at crossover points
- Background color highlights for easy identification
- Built-in alert system with JSON-formatted messages for Telegram webhook integration
- Clean, customizable interface with adjustable MA/EMA periods
**Signals:**
- 🟢 **Bullish Signal**: MA20 crosses above EMA200 (potential uptrend beginning)
- 🔴 **Bearish Signal**: MA20 crosses below EMA200 (potential downtrend beginning)
**Alert Integration:**
The indicator includes pre-formatted alert messages designed for direct integration with Telegram bots via webhooks. Each alert contains:
- Symbol and exchange information
- Current price at crossover
- Signal type (BULLISH/BEARISH)
- Descriptive message
**Best Use Cases:**
- Trend following strategies
- Position entry/exit timing
- Multi-timeframe analysis
- Automated trading system triggers
**Note:** This indicator works best on liquid markets and higher timeframes (1H, 4H, 1D) to reduce false signals. Always combine with other analysis methods for confirmation.
**Tags:** ma, ema, moving average, crossover, trend, telegram, alert, webhook, trading, signal
52/26/13/4 High WeekThis is a tool to identify the 52-week high of a candlestick for use in breakout strategies. It can be used in conjunction with Pocket Pivot and EMA or Volume.
It is ideal for studying price behavior and trend following.
Trinity Multi Time Frame Trend Dashboard and SignalsUpdated the logic behind the buy and sell signals to them for more responsiveness and also included an ADX filter.
Indicator TesterIndicator Tester
Designed to evaluate and backtest a composite trading signal based on multiple technical indicators across volatility, volume, momentum, and moving average categories. It is suitable for assets like Bitcoin, on all timeframes.
Key Features:
Indicator Selection: Allows users to enable/disable indicators such as CCI, Bollinger Bands, RVI, MFI, VZO, EFI, KVO, VPT, COPP, RSI, StochRSI, MOM, TRIX, SMI, MA Cross, RTI, and Simple MA, with customizable parameters.
Customizable Inputs:
Individual indicator settings (e.g., lengths, thresholds).
Flip threshold to adjust the signal activation point.
Backtest settings including custom start date, signal type (Long & Short, Long Only, Short Only), and fees.
Table positions for performance and settings display.
Visualization:
Plots an equity curve (orange for positive signals, white otherwise) and a buy-and-hold equity curve (blue).
Displays a performance table comparing indicator equity, drawdown, standard deviation, Sharpe, Sortino, and Omega ratios with buy-and-hold metrics.
A settings table shows backtest start date, fees, number of indicators used, and flip threshold.
Usage:
Enables traders to test and optimize a strategy by combining selected indicators, with performance metrics calculated from the equity curve.
The equity curve and backtest tables help compare the strategy against a buy-and-hold approach.
Ideal for overlay on a 1-day chart to analyze historical performance, as depicted in the Bitcoin/USD chart.
ICT Unicorn Strategy [RoboQuant]Baseline Calculation –
• A «period‑length» «moving average / VWAP / Donchian midline» establishes directional bias.
Momentum Layer –
• A «RSI / MACD histogram / custom oscillator» gauges buying vs. selling pressure.
Signal Generation –
• A long/short arrow prints when both:
Price closes «above / below» the baseline, and
Momentum crosses «+/- zero line / threshold X».
• Color‑coded background highlights confirmed trends; gray background warns of chop.
SMA CrossoverThis is a SMA crossover I used Grok to build. The source code is open so you guys can add it to your stuff.
I could not find what I was looking for so I had it built.
I am a house painter not a coder. XD
Williams FractalsBoaBias Fractals High & Lows is an indicator based on Bill Williams' fractals that helps identify key support and resistance levels on the chart. It displays horizontal lines at fractal highs (red) and lows (green), which extend to the current bar. Lines automatically disappear if the price breaks through them, leaving only the relevant levels. Additionally, the indicator shows the price values of active fractals on the price scale for convenient monitoring.
Key Features:
Customizable Fractals: Choose between 3-bar or 5-bar fractals (default: 3-bar).
Period: Adjust the number of periods for calculation
Visualization: Red lines for highs (resistance), green for lows (support). Lines are fixed on the chart and persist during scrolling or scaling changes.
Alert System: Notifications for the formation of a new fractal high/low and for level breaks (Fractal High Formed, Fractal Low Formed, Fractal High Broken, Fractal Low Broken).
How to Use:
Add the indicator to the chart.
Configure parameters: select the fractal type (3 or 5 bars) and period.
Set up alerts in TradingView to receive notifications about new fractals or breaks.
Use the lines as levels for entry/exit positions, stop-losses, or take-profits in fractal-based strategies.
Troubleshooting: If Levels Are Not Fixed on the Chart
If the levels (fractal lines) do not stay fixed on the chart and fail to move with it during scrolling or scaling (e.g., they remain stationary while the chart shifts), this is typically due to the indicator's scale settings in TradingView. The indicator may be set to "No scale," causing the lines to desynchronize from the chart's price scale.
What to Do:
Locate the Indicator Label: On the chart, find the indicator label in the top-left corner of the pane (or where "BoaBias Fractals High & Lows" is displayed).
Right-Click the Label: Click the right mouse button on this label.
Adjust the Scale:
In the context menu, look for the "Scale" or "Pin to scale" option.
If it shows "Pin to scale (now no scale)" or similar, select "Pin to right scale" (or "Pin to left scale," depending on your chart's main price scale—usually the right).
Refresh the Chart: After changing the setting, refresh the chart (press F5 or reload the page), or toggle the indicator off and on again to apply the changes.
After this, the lines should move and scale with the chart during scrolling (horizontal or vertical) or zooming. If the issue persists, check:
TradingView Limits: The indicator may draw too many lines (maximum ~500 per script). If there are many historical fractals, older lines might not display.
Chart Settings: Ensure the chart is not in logarithmic scale (if applicable) or that auto-scaling is enabled.
Indicator Version: Verify you are using the latest script version (Pine Script v6) and check for errors in the TradingView console.
This indicator is ideal for traders working with Bill Williams' chaos theory or those seeking dynamic support/resistance levels. It is based on standard fractals but with enhancements for convenience: automatic removal of broken levels and integration with the price scale.
Note: The indicator does not provide trading signals on its own — use it in combination with other tools. Test on historical data before real trading.
Code written in Pine Script v6. Original template: Mit Nayi.