HDJ Multi-Divergence Trend Indicator(MACD/RSI/OBV/VOL)HDJ Indicator is named after the initials of the Chinese name of its author. The HDJ Indicator features powerful automatic detection of multi-indicator divergences (MACD/RSI/OBV/VOL) and includes multi-timeframe resonance recognition for identifying bullish and bearish trends.
The HDJ Indicator’s view consists of three main lines:
· Price Line (Closing Price, Green/Red)
· VWAP Line (Yellow)
· EMA200 Line (Blue)
The RSI value is displayed in real-time at the top-right corner of the indicator’s view.
Usage Guide :
1. Bottom Divergence / Top Divergence
Bottom Divergence Signal : Typically appears below the Price Line (Closing Price, Red), marked with a triangle symbol (△) and the name of the diverging indicator (in Green). The △ symbol corresponds to the candlestick’s position.
Top Divergence Signal : Typically appears above the Price Line (Closing Price, Green), marked with a triangle symbol (△) and the name of the diverging indicator (in Red). The △ symbol corresponds to the candlestick’s position.
Note: A divergence signal will only be displayed if two or more indicators show divergence simultaneously. Single-indicator divergences will not trigger a marker.
2. Bull / Bear Trend
Bull Trend : When the MACD Line and Signal Line of the MACD indicator are above the zero line on the 1-minute, 5-minute, 15-minute, and 1-hour timeframes, and the current timeframe’s MACD Line crosses above the Signal Line (while also above the zero line), and the current closing price is above both VWAP and EMA200, a "×" symbol with a green "Bull Trend" label will appear. The × symbol corresponds to the candlestick’s position.
Bear Trend : When the MACD Line and Signal Line of the MACD indicator are below the zero line on the 1-minute, 5-minute, 15-minute, and 1-hour timeframes, and the current timeframe’s MACD Line crosses below the Signal Line (while also below the zero line), and the current closing price is below both VWAP and EMA200, a "×" symbol with a red "Bear Trend" label will appear. The × symbol corresponds to the candlestick’s position.
3. RSI
· RSI < 30: Displayed in Red.
· RSI ≥ 30: Displayed in Green.
中文版:
HDJ指标采用了编写该指标的本作者的中文名字首字母为命名,HDJ指标有着强大的自动识别多重指标背离的功能(MACD/RSI/OBV/VOL),同时还带了多周期共振识别看涨、看跌趋势的功能。HDJ指标视图中主要由3条线组成, 分别是 价格线(收盘价, 绿色/红色)、VWAP线(黄色)、EMA200线(蓝色), 指标视图右上角实时显示的是RSI指标值。
使用方法:
1. 底背离 / 顶背离
- 底背离信号: 一般出现在 价格线(收盘价, 红色) 的下方, 三角形符号(△)+背离的指标名称作标记(绿色), △符号对应的是K线的坐标。
- 顶背离信号: 一般出现在 价格线(收盘价, 绿色) 的上方, 三角形符号(△)+背离的指标名称作标记(红色), △符号对应的是K线的坐标。
* 注意:单个指标背离不会被触发背离标记符号显示,仅显示两个指标以上的同时背离信号标记。
2. Bull / Bear 趋势
- Bull Trend:当 1分钟、5分钟、15分钟、1小时视图MACD指标的MACD线、Single线都在0轴上方时,并且HDJ指标所在当前周期MACD指标的MACD线上穿了Single线, 同时也在MACD指标0轴上方和当前周期的价格(收盘价)大于VWAP、EMA200, 此时会显示×符号带"Bull Trend"绿色标签的信号标记,×符号对应的是K线的坐标。
- Bear Trend: 当 1分钟、5分钟、15分钟、1小时视图MACD指标的MACD线、Single线都在0轴下方时,并且HDJ指标所在当前周期MACD指标的MACD线下穿了Single线, 同时也在MACD指标0轴下方和当前周期的价格(收盘价)小于VWAP、EMA200, 此时会显示×符号带"Bear Trend"红色标签的信号标记,×符号对应的是K线的坐标。
3. RSI
- RSI值 < 30 时显示红色,RSI值 >= 30 时显示绿色。
Penunjuk dan strategi
Timed Trade Close AlertEnables you to set up alerts that can be used to close all trades when used in conjunction with web hooks.
Firstly, you can enable a daily alert at a regular time to avoid spread blow outs during roll overs. ie: This will alert at the same time each day
Additionally, you can enable and program up to 8 individual alerts to address news events or any other situations that you would want to halt your trading. The day, hour and minute can be adjusted according
Bollinger Bands📊 Bollinger Bands Strategy: Ride the Waves of Volatility 🌊
Bollinger Bands are a powerful tool to identify overbought and oversold conditions, volatility breakouts, and price reversals. This strategy uses:
🔹 Middle Band – 20-period simple moving average
🔹 Upper & Lower Bands – 2 standard deviations away from the SMA
💡 Strategy Logic:
Buy Entry: When price closes below the lower band and RSI < 30 → Expect mean reversion.
Sell Entry: When price closes above the upper band and RSI > 70 → Possible pullback.
Exit: Near middle band or opposite band.
📈 You can also use Bollinger Band squeezes to detect upcoming breakouts. Less distance = low volatility → Expansion = potential big move!
🧠 Great for swing trading or intraday scalping with proper risk management.
Volatility-Adjusted Momentum Signal (VAMS)🔹 VAMS — Volatility-Adjusted Momentum Signal | QuantumResearch
Purpose:
VAMS is a composite momentum oscillator that merges price momentum and volatility momentum using z-score transformations. It helps identify meaningful trend shifts by emphasizing both directional move strength and the volatility regime.
How It Works:
The system builds two independent z-scores:
Price Z-Score: Measures how far current price deviates from its EMA.
Volatility Z-Score: Applies the same logic to volatility (standard deviation of price).
Both z-scores are combined to produce a Volatility-Adjusted Momentum Signal (Z_total), which is then compared to dynamic thresholds based on rolling standard deviation.
Signal Classification:
Bullish: Z_total exceeds upper dynamic threshold.
Bearish: Z_total falls below lower dynamic threshold.
Neutral: Values in between.
Display Features:
Oscillator line color-coded by signal state (bullish/bearish/neutral).
Background and bar colors reflect momentum strength using a gradient scale.
Real-time info table showing:
Z-score and rate-of-change (ROC) for both price and volatility.
Final momentum classification.
Key Features:
Fuses price and volatility into a single adaptive oscillator.
Dynamic thresholds prevent false signals in low-volatility environments.
Suitable for trend identification, momentum stacking, or signal confirmation.
Performance Notes:
VAMS has been tested on BTC, ETH, and ETH/BTC and consistently aligns well with trend inflection points — particularly during volatility regime shifts.
Trading Application:
Confirm breakouts or breakdowns.
Spot early trend strength.
Avoid false signals during low-volatility noise.
Disclaimer: This script is provided for educational and informational purposes only. Trading cryptocurrencies involves substantial risk and is not appropriate for all investors. Past performance is not indicative of future results.
Quantum Dip Spectrum | QuantumResearch🔹 Quantum DipSpectrum | QuantumResearch
Purpose:
The Quantum DipSpectrum is a market breadth indicator designed to identify broad-based oversold conditions across a basket of 40 altcoins. It helps traders detect potential accumulation phases by measuring how many assets simultaneously enter deep dip territory.
How It Works:
The script computes a “dip condition” for each of 40 altcoins. For every asset, it checks two key criteria:
Whether price is below its 10th percentile (bottom decile) over a user-defined lookback period.
Whether price is also below the median minus 3× standard deviation — a volatility-adjusted drop threshold.
If both conditions are met, the asset is counted as being in a deep dip. The total number of dipped assets is calculated and plotted as a histogram. This count — or dip breadth — provides a powerful contrarian signal when it spikes.
Threshold Alert:
A customizable threshold line lets you define when the dip count is considered significant. If the dip breadth exceeds this line, the background turns green, signaling potential market-wide undervaluation.
Key Features:
Analyzes 40 altcoins using volatility-adjusted dip detection.
Histogram of total dipped assets with real-time updates.
Adaptive color gradients to reflect the severity of dips.
Fully customizable lookback and threshold.
Works on any timeframe; designed for daily chart use by default.
Trading Application:
Spot broad capitulation events across altcoins.
Help time altcoin rotations and bottom-fishing opportunities.
Combine with BTC/ETH trend indicators for multi-layered confluence.
⚠️ This is not a buy/sell signal but a strategic market breadth tool for sentiment analysis.
Disclaimer: Past performance does not guarantee future results. This indicator is for educational and informational purposes only. Trading cryptocurrencies involves substantial risk of loss and is not suitable for every investor.
Altcoin Breadth | QuantumResearch🔹 Altcoin Breadth | QuantumResearch
Purpose:
Altcoin Breadth measures the strength of the altcoin market by tracking how many assets trade above key moving averages (50-day and 200-day). It offers a normalized view of trend participation across 40 major crypto assets.
How It Works:
For each of the 40 altcoins:
The script checks whether the asset's current price is above its 50-day and/or 200-day simple moving average.
Each condition counts as a binary "1" (trend up) or "0" (trend down).
The total values are averaged, yielding two normalized values between 0 and 1:
Breadth 50: % of assets above their 50 SMA
Breadth 200: % of assets above their 200 SMA
Visual Display:
Plots Breadth 50 and Breadth 200 separately as two gradient-colored lines.
Dynamic labels at the latest bar indicate current breadth values.
Optional bar coloring to reflect underlying breadth momentum.
Key Features:
Evaluates short-term and long-term trend strength across the altcoin sector.
Dynamic visualization of market participation breadth.
Clear trend shifts and sector-wide bullish/bearish transitions.
Separate toggles to show either Breadth 50, Breadth 200, or both.
Trading Application:
Identify broad altcoin uptrends or breakdowns.
Use Breadth 200 for macro confirmation; Breadth 50 for tactical shifts.
Align altcoin exposure with healthy trend participation levels.
⚠️ Breadth tools offer market-wide context, not individual entry signals. Use in combination with trend or momentum indicators.
Disclaimer: Past performance does not guarantee future results. This tool is intended for informational and educational use only. Cryptocurrency markets are volatile and involve high risk.
Trent_Finder V3EMA Inputs
It uses 6 EMAs with customizable lengths (defaults: 30, 35, 40, 45, 50, 60).
Trend Conditions
Bullish Trend: All EMAs are strictly ordered from smallest to largest, meaning short-term prices are leading long-term prices upward.
Bearish Trend: All EMAs are ordered from largest to smallest, meaning short-term prices are falling below long-term ones.
Neutral: EMAs are mixed and do not meet the above criteria.
Trend Tracking
The script remembers the current trend and only flips when a full trend reversal condition is confirmed.
Signals
A Buy Signal appears when a bearish or neutral trend changes to bullish.
A Sell Signal appears when a bullish or neutral trend flips to bearish.
Visual Aids
All 6 EMAs are plotted on the chart.
Green Lines = Bullish trend
Red Lines = Bearish trend
Gray Lines = No trend (neutral)
Buy/Sell markers appear at turning points.
Trent_Finder V3EMA Inputs
It uses 6 EMAs with customizable lengths (defaults: 30, 35, 40, 45, 50, 60).
Trend Conditions
Bullish Trend: All EMAs are strictly ordered from smallest to largest, meaning short-term prices are leading long-term prices upward.
Bearish Trend: All EMAs are ordered from largest to smallest, meaning short-term prices are falling below long-term ones.
Neutral: EMAs are mixed and do not meet the above criteria.
Trend Tracking
The script remembers the current trend and only flips when a full trend reversal condition is confirmed.
Signals
A Buy Signal appears when a bearish or neutral trend changes to bullish.
A Sell Signal appears when a bullish or neutral trend flips to bearish.
Visual Aids
All 6 EMAs are plotted on the chart.
Green Lines = Bullish trend
Red Lines = Bearish trend
Gray Lines = No trend (neutral)
Buy/Sell markers appear at turning points.
MTF Kernel TraderMTF Kernel Trader
Advanced Multi-Timeframe Trading System with Machine Learning Signals
Overview
MTF Kernel Trader combines kernel regression analysis across multiple timeframes with Lorenz machine learning signals to identify high-probability trading opportunities. The indicator provides visual context through higher timeframe candles and generates precise entry signals using KNN with Lorentzian distance.
Key Features
🔹 Multi-Timeframe Kernel Regression
- Current timeframe (5min), 15min, and 60min kernel analysis
- Dynamic coloring based on each timeframe's direction
- Configurable thickness and visibility settings
🔹 Lorenz Machine Learning Signals
- KNN algorithm with Lorentzian distance calculation
- Predictive signals 4 bars ahead
- Multiple feature engineering options (RSI, WT, CCI, ADX)
- Configurable neighbor count and feature parameters
🔹 Higher Timeframe Candles Display
- Visual representation of 15min and 60min candles
- Fair Value Gaps (FVG) and Volume Imbalances
- Sweep detection and midpoint analysis
- Customizable styling and positioning
🔹 Advanced Filtering System
- Session-based trading filters (European, UTC, NY sessions)
- Trend direction filters for each timeframe
- Volatility, regime, and ADX filters
- EMA/SMA trend confirmation
🔹 Comprehensive Signal System
- Individual signals for each timeframe
- Combined multi-timeframe signals
- Debug signals for testing
- Color-coded bullish/bearish signals
Usage
Entry Strategy:
- Long Signals: When Lorenz ML generates bullish signals AND kernel regression shows uptrend AND higher timeframes confirm bullish bias
- Short Signals: When Lorenz ML generates bearish signals AND kernel regression shows downtrend AND higher timeframes confirm bearish bias
Risk Management:
- Use session filters to trade only during active market hours
- Confirm signals with multiple timeframe alignment
- Monitor higher timeframe candles for context
- Apply volatility and regime filters to avoid choppy markets
Visual Analysis:
- Green kernel lines indicate bullish momentum
- Black/Dark kernel lines indicate bearish momentum
- Higher timeframe candles show market structure
- FVG and sweep levels provide additional entry/exit points
Settings Overview
Display Settings: Control visibility of kernel lines and signals
ML Settings: Configure machine learning parameters and signal display
Session Filter: Set trading hours and timezone
MTF Candles: Customize higher timeframe candle display
Filters: Adjust volatility, regime, and trend filters
Alerts
- Individual timeframe signals (Current, 15min, 60min)
- Combined multi-timeframe signals
- Sweep confirmation alerts
- Session-based trading notifications
Perfect for: Swing traders, day traders, and scalpers who need multi-timeframe confirmation with machine learning precision.
EMA 6/16/55/100/200 ฺBy Smurojคำอธิบายเป็นภาษาไทย
ชุด EMA นี้ประกอบด้วยเส้นค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โปเนนเชียล (EMA) ระยะเวลาต่าง ๆ ซึ่งถูกนำมาใช้เพื่อวิเคราะห์แนวโน้มราคาในระยะต่าง ๆ ดังนี้:
EMA 6 และ 16: ใช้สำหรับดูแนวโน้มระยะสั้นและการเปลี่ยนแปลงราคาที่รวดเร็ว
EMA 55: เป็นแนวโน้มระยะกลาง
EMA 100 และ 200: เป็นแนวโน้มระยะยาว ซึ่งช่วยดูภาพรวมของแนวโน้มตลาดในระดับลึก
การใช้งานในการเทรด:
ถ้าราคาอยู่เหนือ EMA ระยะต่าง ๆ แสดงถึงแนวโน้มขาขึ้น
ถ้าราคาอยู่ต่ำกว่า EMA ระยะต่าง ๆ แสดงถึงแนวโน้มขาลง
การตัดกันของ EMA สั้นและยาว เช่น EMA 6 ตัด EMA 16 ขึ้นบน อาจเป็นสัญญาณซื้อ
การตัดกันในทางตรงกันข้าม อาจเป็นสัญญาณขาย
การใช้หลายเส้นช่วยยืนยันแนวโน้มและลดความผิดพลาดในการตัดสินใจ
English Explanation
This EMA set consists of various Exponential Moving Average lines over different periods, which are used to analyze price trends across various timeframes:
EMA 6 and 16: For short-term trend analysis and quick price changes.
EMA 55: Represents a medium-term trend.
EMA 100 and 200: Indicate long-term trends, helping to view the overall market direction.
How to use in trading:
When price is above these EMA lines, it suggests an uptrend.
When price is below these EMA lines, it indicates a downtrend.
Crossovers between short and longer EMAs (e.g., EMA 6 crossing above EMA 16) can signal buy opportunities.
Conversely, crossovers downward can signal sell opportunities.
Using multiple EMA lines helps confirm the trend and reduce false signals.
EMA 6/16/55/100/200คำอธิบายเป็นภาษาไทย
ชุด EMA นี้ประกอบด้วยเส้นค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โปเนนเชียล (EMA) ระยะเวลาต่าง ๆ ซึ่งถูกนำมาใช้เพื่อวิเคราะห์แนวโน้มราคาในระยะต่าง ๆ ดังนี้:
EMA 6 และ 16: ใช้สำหรับดูแนวโน้มระยะสั้นและการเปลี่ยนแปลงราคาที่รวดเร็ว
EMA 55: เป็นแนวโน้มระยะกลาง
EMA 100 และ 200: เป็นแนวโน้มระยะยาว ซึ่งช่วยดูภาพรวมของแนวโน้มตลาดในระดับลึก
การใช้งานในการเทรด:
ถ้าราคาอยู่เหนือ EMA ระยะต่าง ๆ แสดงถึงแนวโน้มขาขึ้น
ถ้าราคาอยู่ต่ำกว่า EMA ระยะต่าง ๆ แสดงถึงแนวโน้มขาลง
การตัดกันของ EMA สั้นและยาว เช่น EMA 6 ตัด EMA 16 ขึ้นบน อาจเป็นสัญญาณซื้อ
การตัดกันในทางตรงกันข้าม อาจเป็นสัญญาณขาย
การใช้หลายเส้นช่วยยืนยันแนวโน้มและลดความผิดพลาดในการตัดสินใจ
English Explanation
This EMA set consists of various Exponential Moving Average lines over different periods, which are used to analyze price trends across various timeframes:
EMA 6 and 16: For short-term trend analysis and quick price changes.
EMA 55: Represents a medium-term trend.
EMA 100 and 200: Indicate long-term trends, helping to view the overall market direction.
How to use in trading:
When price is above these EMA lines, it suggests an uptrend.
When price is below these EMA lines, it indicates a downtrend.
Crossovers between short and longer EMAs (e.g., EMA 6 crossing above EMA 16) can signal buy opportunities.
Conversely, crossovers downward can signal sell opportunities.
Using multiple EMA lines helps confirm the trend and reduce false signals.
JMR vwap inside barThis indicator will add vwap and according to your chart time frame and also will mark inside bar candles.
RRG ZONE ROTATIONINPUT PARAMETER
1.Mimimum NUMBER OF Bars ON CHART TO ON/OFF INDICATOR
2.RRG Data Depth (NUMBER OFF RECENT PAST BAR USED FOR RRG CALCULATION)
3.Bench Mark Index (Default is NIFTY)
RRG ZONE COLOR LEGEND
1.IMPROVING ZONE: BLUE
2.LAGGING ZONE: RED
3.OUTPERFORMING ZONE :GREEN
4.CORRECTION AFTER OUTPERFORMANCE :GRAY
--- I Have RRG ZONE SCANNER TOO to Scan stock in specific RRG ZONE
www.tradingview.com
Breakout Detector (5-min)//@version=5
indicator("Breakout Detector (5-min)", overlay=true)
// Define breakout range
length = input.int(20, minval=1, title="Lookback Period")
bullColor = color.green
bearColor = color.red
// Calculate highest high and lowest low of lookback period
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
// Detect breakout
bullBreakout = close > highestHigh
bearBreakout = close < lowestLow
// Plot breakout signals
plotshape(bullBreakout, title="Bullish Breakout", location=location.abovebar, color=bullColor, style=shape.triangleup, size=size.small)
plotshape(bearBreakout, title="Bearish Breakout", location=location.belowbar, color=bearColor, style=shape.triangledown, size=size.small)
// Optional: Background color for breakout bars
bgcolor(bullBreakout ? color.new(bullColor, 85) : na)
bgcolor(bearBreakout ? color.new(bearColor, 85) : na)
Multi-School Signal Indicator (Text Only)//@version=5
indicator("Multi-School Signal Indicator (Text Only)", overlay=true)
// === المتوسطات (Trend) ===
maShort = ta.sma(close, 9)
maLong = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
trendUp = maShort > maLong and close > ma200
trendDown = maShort < maLong and close < ma200
// === الزخم (RSI) ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم (Volume) ===
vol = volume
volMA = ta.sma(vol, 20)
volHigh = vol > volMA
// === شموع ابتلاعية ===
bullishEngulf = close < open and close > open and close > open and open < close
bearishEngulf = close > open and close < open and close < open and open > close
// === CHOCH (بسيط) ===
chochUp = close > high and low > low
chochDown = close < low and high < high
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bollingerBreakUp = close > upper
bollingerBreakDown = close < lower
// === دعم ومقاومة ===
support = ta.lowest(close, 20)
resistance = ta.highest(close, 20)
nearSupport = math.abs(close - support) / close < 0.01
nearResistance = math.abs(close - resistance) / close < 0.01
// === فيبوناتشي مبسط ===
fibLevel1 = close >= ta.valuewhen(close > maLong, close * 0.618, 0)
fibLevel2 = close <= ta.valuewhen(close < maLong, close * 0.382, 0)
// === إشارات الدخول ===
buyConditions = trendUp and rsiBull and volHigh and bullishEngulf and chochUp and bollingerBreakUp and nearSupport and fibLevel1
sellConditions = trendDown and rsiBear and volHigh and bearishEngulf and chochDown and bollingerBreakDown and nearResistance and fibLevel2
// === رسم الاختصارات بدون ألوان ===
if buyConditions
label.new(bar_index, low, "BUY", style=label.style_label_up, textcolor=color.black, size=size.small, textalign=text.align_center)
if sellConditions
label.new(bar_index, high, "SELL", style=label.style_label_down, textcolor=color.black, size=size.small, textalign=text.align_center)
SMC Concepts - Labels OnlySMC Concepts – Labels Only is a clean and minimalistic indicator designed for traders who apply Smart Money Concepts (SMC) in their analysis. It displays essential market structure signals using simple text labels only, without any colors, boxes, or graphical overlays — allowing for a clear and distraction-free chart view.
Live Candle ±10 Points (Last 2 Bars Only)Autocalculates 10 points plus or minus on the previous 2 candles. Simple for quick reference on break even points or TP/SL areas if you're working on a fixed point strategy.
MACD Platinum + QQE ADV Jan 2025A two in one indicator where you can either choose to display either the MACD Platinum (zero lag MACD) or the QQE Adv.
QMP Filter Jan 2025The QMP Filter itself are the red/blue dots displayed on the price chart. These are a combination of the MACD Platinum (zero lag MACD) and the QQE Adv. When they are in sync, then a QMP Filter dot is presented.
The indicator also includes the option of adding multiple Moving Averages and Bollinger Bands to the price chart if required. Cheers. Jim
SMC Smart Money Concepts//@version=5
indicator("SMC Smart Money Concepts", overlay=true)
// === إعداد الهيكل السعري ===
// تحديد HH, HL, LL, LH
pivotHigh = ta.pivothigh(high, 5, 5)
pivotLow = ta.pivotlow(low, 5, 5)
plotshape(pivotHigh, location=location.abovebar, style=shape.triangleup, color=color.red, title="Lower High")
plotshape(pivotLow, location=location.belowbar, style=shape.triangledown, color=color.green, title="Higher Low")
// === Break of Structure & CHoCH ===
bos = pivotHigh and close > high
choch = pivotLow and close < low
plotshape(bos, location=location.abovebar, color=color.blue, style=shape.labelup, text="BOS")
plotshape(choch, location=location.belowbar, color=color.orange, style=shape.labeldown, text="CHOCH")
// === Order Blocks (OB) ===
// نأخذ آخر شمعة صاعدة قبل هبوط قوي كمثال على OB
bearishOB = high < high and close < open
bullishOB = low > low and close > open
plotshape(bearishOB, location=location.abovebar, color=color.maroon, style=shape.square, title="Bearish OB")
plotshape(bullishOB, location=location.belowbar, color=color.lime, style=shape.square, title="Bullish OB")
// === Fair Value Gap (FVG) ===
// إذا لم تلامس الشمعة التالية قاع أو قمة شمعتين قبليتين
fvgBull = low > high
fvgBear = high < low
plotshape(fvgBull, location=location.belowbar, color=color.teal, style=shape.circle, title="Bullish FVG")
plotshape(fvgBear, location=location.abovebar, color=color.fuchsia, style=shape.circle, title="Bearish FVG")
// === السيولة (Liquidity Pools) ===
// تعتبر السيولة موجودة عند قمم أو قيعان واضحة
liquidityHigh = high == ta.highest(high, 20)
liquidityLow = low == ta.lowest(low, 20)
plotshape(liquidityHigh, location=location.abovebar, color=color.purple, style=shape.cross, title="Liquidity High")
plotshape(liquidityLow, location=location.belowbar, color=color.purple, style=shape.cross, title="Liquidity Low")