Multi-Timeframe SMTSummery
The Multi-Timeframe SMT indicator is designed to identify and visualize Higher Timeframe (HTF) data on a Lower Timeframe (LTF) chart, allowing traders to see the broader market context without changing their current chart's resolution. It accurately draws pivots and SMT divergences from higher timeframes on the corresponding candles of your current lower timeframe chart.
Its core features include:
Multi-Timeframe Analysis: Configure and monitor pivots on up to four independent timeframes, from intraday to monthly.
Customizable Pivot Detection: Define the strength of pivots by adjusting the number of bars to the left and right.
SMT Divergence: Automatically identifies bullish and bearish SMT divergences by comparing the price action of the main chart symbol with a chosen correlated asset.
Early SMT Detection: A unique feature that monitors a lower "detection timeframe" to provide early warnings of potential SMT setups before they're confirmed on the main timeframe. Note that this early detection is only shown on timeframes equal to or lower than the "Detection timeframe" you have set.
Visual Cues & Alerts: Clear on-chart labels, lines, and fully customizable alerts notify you of confirmed pivots and SMT divergences, ensuring you don't miss key opportunities.
Important Nuance Regarding Pivot Label Display
Due to a self-imposed limit within this script's drawing management logic, the indicator might quickly reach its drawing capacity if you enable pivot crosses for multiple timeframes simultaneously. When this internal drawing limit is exceeded, the script is designed to automatically remove the oldest drawings to make space for new ones.
Therefore, to ensure optimal performance and visibility of the most recent and relevant pivots, it's highly recommended to only enable the "Show Pivot Crosses" option for one timeframe at a time. If you wish to view pivots for a different timeframe, simply disable the pivot crosses for the currently active timeframe and then enable them for your desired one. This approach prevents the rapid cycling and disappearance of pivot labels, providing a clearer and more stable visual experience.
In-Depth Explanation of the Logic
This script is built on two primary concepts: pivot points and Smart Money Technique (SMT) divergence. It systematically collects historical data on multiple timeframes, identifies pivots, and then compares them between two assets to find divergences.
Pivot Point Identification
A pivot is a turning point in the market. A pivot high is a candle that has a higher high than the candles to its immediate left and right. Conversely, a pivot low is a candle with a lower low than its neighbors.
How it Works in the Script:
The script tracks the highest high and lowest low for each period of the selected timeframe (e.g., for each 4-hour candle). When a new high-timeframe candle closes, it stores that high/low value and its bar index in an array. The checkForPivot() function then checks if a recently stored high or low qualifies as a pivot.
Key Inputs:
Left Strength (leftBars1): The number of candles to the left that must have a lower high (for a pivot high) or higher low (for a pivot low).
Right Strength (rightBars1): The number of candles to the right that must meet the same criteria.
For example, with Left Strength and Right Strength both set to 3, a pivot high is only confirmed when its high is greater than the highs of the 3 previous high-timeframe candles and the 3 subsequent high-timeframe candles. Increasing these values will identify more significant, longer-term pivots.
Smart Money Technique (SMT) Divergence
SMT Divergence is a concept popularized by The Inner Circle Trader (ICT). It occurs when two closely correlated assets fail to move in sync. For instance, if Asset A makes a higher high but Asset B fails to do so and instead makes a lower high, this creates a bearish SMT divergence. It suggests that the "smart money" may not be supporting the move in Asset A, signaling a potential reversal.
Bearish SMT: Main asset makes a higher high, while the correlated asset makes a lower high. This is a potential sell signal.
Bullish SMT: Main asset makes a lower low, while the correlated asset makes a higher low. This is a potential buy signal.
How it Works in the Script:
Data Request: For each timeframe, the script uses the request.security() function to fetch the high and low data for both the main chart symbol (syminfo.tickerid) and the chosen Comparison Asset.
Pivot Comparison: When a new pivot is confirmed on the main asset, the script checks if a corresponding pivot also formed on the comparison asset at the same time.
Divergence Check: It then compares the direction of the pivots. For a bearish SMT, it checks if the main asset's new pivot high is higher than its previous pivot high, while the comparison asset's new pivot high is lower than its previous one. The logic is reversed for bullish SMT.
Visualization: If a divergence is found, the script draws a red (bearish) or green (bullish) line connecting the two pivots on your chart and places an "SMT" label.
Early SMT Detection
This is a proactive feature designed to give you a heads-up. Waiting for a 4-hour or daily pivot to form can take a long time. The early detection system looks for SMT divergences on a much smaller, user-defined Detection timeframe (e.g., 15-minute).
How it Works in the Script:
Awaiting Setup: After a primary pivot (Pivot A) is formed on the main timeframe (e.g., a Daily pivot high), the script begins monitoring.
Intraday Monitoring: It then watches the Detection timeframe (e.g., 15-minute) for smaller intraday pivots.
Potential Divergence: It looks for an intraday pivot that forms a divergence against the primary Pivot A.
Watchline & Alert: When this "potential" divergence occurs, the script draws a dashed white line and triggers a "Potential SMT" alert. This isn't a confirmed SMT on the main timeframe yet, but it's a powerful early warning that one may be forming.
Drawing & Object Management
To keep the chart clean and prevent performance issues, the script manages its drawings (lines and labels) efficiently. It stores them in arrays and uses a drawing limit to automatically delete the oldest drawings as new ones are created, ensuring your TradingView remains responsive.
How to Use the Indicator
Configuration
Enable Timeframes: Use the checkboxes (Enable Timeframe 1, Enable Timeframe 2, etc.) to activate the timeframes you want to monitor. It's often best to start with one or two to keep the chart clean.
Select Timeframes: Choose the higher timeframes you want to analyze (e.g., 240 for 4-hour, D for Daily, W for Weekly).
Set Pivot Strength: The default of 3 for Left/Right strength is a good starting point. Increase it to find more significant market structure points or decrease it for more frequent, shorter-term pivots.
Configure SMT:
Check Enable SMT for the timeframes where you want to detect divergence.
Enter a Comparison Asset . This is crucial. Ensure the assets are correlated.
To use the early warning system, check Enable early SMT detection and select an appropriate Detection timeframe (e.g., 15 or 60 minutes for a Daily analysis).
อินดิเคเตอร์และกลยุทธ์
🇰🇷 Kim'in Kim'out — Korean Premium TrackerKim’in Kim’out is a premium-tracking TradingView indicator that reveals Korean market sentiment by comparing real-time asset prices on Upbit (KRW) and Binance (USDT).
It detects when Korean traders are spot accumulating (Kim’in) or spot distributing (Kim’out) — enhanced by volume confirmation and trend context.
Perfect for crypto scalpers, swing traders, and arbitrage hunters.
⚙️ How It Works
Kimchi Premium: Measures how much more (or less) Koreans are paying on Upbit compared to Binance.
Volume Confirmation: Filters signals by comparing Upbit volume vs its moving average.
Signal Logic:
🔼 Kim’in: Premium exceeds the buy threshold + high volume
🔽 Kim’out: Premium drops below the sell threshold + high volume
Trend Context: Premium trend line gives insight into sustained interest/disinterest.
🎛️ Settings Overview
Input Description
Select Cryptocurrency Choose from supported coins (BTC, ETH, SOL, etc.)
Buy Threshold (%) How high the premium must be to trigger a Kim’in signal
Sell Threshold (%) How low the premium must be to trigger a Kim’out signal
Volume MA Period The number of candles for volume average
Volume Multiplier Volume spike ratio needed to confirm a signal
Show Info Table Toggle detailed premium stats in a side panel
Show Premium Zones Visual background zones (green/red/yellow)
Debug Mode Shows extra signals that trigger without volume confirmation
✅ How to Use It
Add the indicator to any chart (e.g. BTC/USDT)
Choose a coin from the dropdown (BTC, ETH, etc.)
Watch for:
Green Triangle Up (Kim’in) = Korean spot buy pressure confirmed
Red Triangle Down (Kim’out) = Korean selloff or disinterest
Use the Info Table (top-right) to see:
Premium %
Volume confirmation
Real-time KRW-USD exchange rate
Upbit vs Binance price comparison
Set Alerts:
Right-click on a signal → Add Alert on "Kim’in" or "Kim’out"
Or use the prebuilt alertconditions
🔔 Alert Messages
🇰🇷 Korean Premium BUY signal detected → Kim’in
🇰🇷 Korean Premium SELL signal detected → Kim’out
🧪 Best Practices
Use on 1H or 4H timeframe for best results
Confirm with broader market structure or confluence tools
Spot divergences between Binance and Upbit to predict regional flow shifts
🚫 Limitations
Works only with coins that have both Binance USDT & Upbit KRW pairs
Premium may be delayed by low liquidity or FX rate fluctuations (USDKRW)
Not suitable for lowcaps not listed on Upbit
Created by UKMC Crypto
Combined Entry Signal - SMI + MACD + EMA + Volume//@version=5
indicator("Combined Entry Signal - SMI + MACD + EMA + Volume", overlay=true)
// ==== INPUTS ====
smiK = input.int(5, "SMI K", minval=1)
smiD = input.int(3, "SMI D", minval=1)
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
emaShort = input.int(20, "EMA Short")
emaMid = input.int(50, "EMA Mid")
emaLong = input.int(100, "EMA Long")
volMult = input.float(1.2, "Volume Multiplier for Confirm")
// ==== SMI ====
smiSource = close
smi = ta.stoch(close, high, low, smiK)
smiSignal = ta.sma(smi, smiD)
// ==== MACD ====
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdCrossUp = ta.crossover(macdLine, signalLine)
macdCrossDown = ta.crossunder(macdLine, signalLine)
// ==== EMA Trend ====
emaS = ta.ema(close, emaShort)
emaM = ta.ema(close, emaMid)
emaL = ta.ema(close, emaLong)
trendUp = close > emaS and emaS > emaM and emaM > emaL
trendDown = close < emaS and emaS < emaM and emaM < emaL
// ==== Volume confirmation ====
avgVol = ta.sma(volume, 20)
volConfirm = volume > avgVol * volMult
// ==== BUY/SELL CONDITIONS ====
smiBuy = smi > smiSignal and smi < 20
smiSell = smi < smiSignal and smi > 80
buySignal = smiBuy and macdCrossUp and trendUp and volConfirm
sellSignal = smiSell and macdCrossDown and trendDown and volConfirm
// ==== PLOTS ====
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
plot(emaS, title="EMA 20", color=color.orange)
plot(emaM, title="EMA 50", color=color.green)
plot(emaL, title="EMA 100", color=color.blue)
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.
Multi-Timeframe RSI Table# Multi-Timeframe RSI Table
## Overview
This indicator displays RSI (Relative Strength Index) values across multiple timeframes in a convenient table format, allowing traders to quickly assess momentum conditions across different time horizons without switching charts.
## Features
• *7 Timeframes*: 5m, 15m, 1h, 4h, Daily, Weekly, Monthly
• *Color-coded RSI Values*:
- 🔴 Red: Overbought (≥70)
- 🟢 Green: Oversold (≤30)
- 🟠 Orange: Bullish momentum (50-70)
- 🟡 Yellow: Bearish momentum (30-50)
• *Clean Table Display*: Positioned in top-right corner for easy viewing
• *Customizable Settings*: Adjustable RSI length and overbought/oversold levels
## How to Use
1. Add the indicator to your chart
2. The table automatically displays current RSI values for all timeframes
3. Use color coding to quickly identify:
- *Buying opportunities* when multiple timeframes show green (oversold)
- *Selling opportunities* when multiple timeframes show red (overbought)
- *Trend alignment* when higher timeframes match your trading direction
## Trading Applications
• *Multi-timeframe analysis*: Confirm signals across different time horizons
• *Entry timing*: Find optimal entry points when shorter timeframes align with longer trends
• *Risk management*: Avoid trades when higher timeframes show opposite momentum
• *Swing trading*: Identify when daily/weekly RSI supports your position direction
## Settings
• *RSI Length*: Default 14 periods (standard RSI calculation)
• *Overbought Level*: Default 70 (customizable)
• *Oversold Level*: Default 30 (customizable)
## Best Practices
• Look for alignment across multiple timeframes for stronger signals
• Use higher timeframe RSI to determine overall trend direction
• Combine with price action and support/resistance levels
• Avoid trading against strong momentum shown in higher timeframes
Perfect for day traders, swing traders, and anyone who needs quick multi-timeframe RSI analysis without constantly switching chart timeframes.
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)
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.
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!
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.
Adaptive Trend Cloud + Smart Reversal Zones [@darshakssc]This indicator combines a volatility-adjusted trend cloud with RSI- and volume-based reversal signals to help traders visually spot potential trend continuation or reversal zones.
It’s designed to look clean, colorful, and informative — great for both beginners and experienced traders looking for chart clarity and actionable insights.
🔍 How It Works
🔵 1. Trend Cloud
1. The cloud is created using a 34-period EMA as the base and adjusted with a 14-period ATR multiplier.
2. When price is above the EMA, the cloud turns green (bullish).
3. When price is below the EMA, it turns red (bearish).
4. A neutral gray tone shows when price is inside the cloud, signaling potential indecision.
🔁 2. Smart Reversal Signal Logic
1. Signals appear only when price enters the cloud zone, indicating a potential change in direction.
2. To confirm the reversal, the following conditions must also be met:
3. RSI is below 40 (for bullish reversals) or above 60 (for bearish reversals)
4. A volume spike occurs (1.8× the 20-bar volume average)
5. A cooldown of 10 bars between signals prevents overplotting
🎯 3. TP & SL Labels
1. When a valid buy or sell signal appears:
🎯 TP (Take Profit) is placed at 2× ATR distance
🛑 SL (Stop Loss) is placed at 1× ATR distance
These levels are shown via chart labels for visual reference
🛎️ 4. Alerts
1. Built-in alerts trigger on:
🟢 Buy reversal signals
🔴 Sell reversal signals
✅ How to Use
1. Apply the indicator to any chart (works best on 5min–4h timeframes)
2. Look for the 🟢 Buy / 🔴 Sell labels when price touches the cloud
3. Use the visual TP/SL markers as reference zones — not financial advice
4. Combine with your own risk management, price action or confluence tools
⚙️ Customization Options
1. EMA & ATR lengths and multipliers
2. RSI and volume thresholds
3. Signal cooldown to reduce noise
4. Toggle TP/SL zones on or off
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always test on demo accounts and combine with your own trading system.
MACD 衰减信号For Max's MACD Decay Signal
A non-repainting signal based on MACD histogram momentum decay combined with price structure divergence. This script helps traders identify potential trend reversal points using multi-wave analysis.
📈 Bullish Signal
Triggered when:
MACD histogram prints three weakening red waves (histogram bars are rising toward zero)
Price makes lower lows, while MACD histogram rises (bullish divergence)
Histogram just turns green
🟢 Label: "MACD多头" appears below the candle
📢 Alert: "MACD 多头信号"
📉 Bearish Signal
Triggered when:
MACD histogram prints three weakening green waves (histogram bars falling toward zero)
Price makes higher highs, while MACD histogram falls (bearish divergence)
Histogram just turns red
🔴 Label: "MACD空头" appears above the candle
📢 Alert: "MACD 空头信号"
⚙️ Features
Adjustable MACD parameters: Fast, Slow, Signal lengths
Uses arrays to track momentum and price shift patterns
Built to avoid repainting, works on all timeframes
Comes with alert conditions for automation or manual notifications
✅ Best For
Catching early trend reversal opportunities
Combining with price action or support/resistance levels
Traders who value momentum + structure-based signals
Worthy Asset StrategyThis strategy is designed with a two-part philosophy: a regime filter and a value-based accumulation approach.
🟩 Regime Filter:
If the S&P 500 (SPX) is trading above its 200-period EMA, a green background is shown below the chart, signaling a favorable market regime.
If the SPX is below the 200 EMA, the background turns red, indicating a less favorable environment.
📉 Buy Signals:
Buy signals are generated by red candles that drop a certain percentage from their open — essentially treating these pullbacks as discount opportunities.
The idea is to accumulate more of a selected asset when it becomes temporarily cheaper.
💎 Philosophy & Execution:
I only apply this strategy to assets I’ve personally researched and believe to be fundamentally valuable.
If a Buy signal occurs and the SPX is trading above its 200 EMA (i.e., the background is green), I enter the position.
Once in the trade, I follow this logic:
If the position reaches +1.5% profit, I sell it.
If it doesn’t reach profit and goes into a loss, I simply hold.
I don’t sell at a loss because I believe in the long-term value of the asset.
If the price drops further, I accumulate more — aiming to lower my average cost and eventually exit at a profit once the asset recovers.
This approach is based on the mindset of treating drawdowns as discounts, not danger.
"The more it drops, the more I accumulate — because I see value, not risk."
This is still a work in progress, and I’m actively refining it over time.
⚠️ Note: The sell logic is not yet visible on the chart and will be added in a future update.
Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true,
max_lines_count=500, max_labels_count=500,
title="Confirmed Entry Grid Pro")
// === إعدادات المستخدم ===
showImpulse = input.bool(true, "Show Impulse Wave")
showShrinkWarning = input.bool(true, "Shrink Warning")
minConfirmations = input.int(5, "Minimum Confirmations", minval=3, maxval=10)
// === المتوسطات ===
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 + Impulsive Wave ===
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
// === الموجة الدافعة (مؤشر اختياري لإشارة دخول قوية)
impulseWaveSell = close <= close and close <= close and close <= close and close < open
impulseWave = close >= close and close >= close and close >= close and close > open
// === مناطق السيولة ===
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 impulseWave and (na(lastBuyBar) or bar_index - lastBuyBar > 3)
canSell = sellScore >= 5 and impulseWaveSell and (na(lastSellBar) or bar_index - lastSellBar > 3)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy and buyScore >= minConfirmations
showSell = canSell and sellScore >= minConfirmations
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showImpulse and impulseWave, title="Impulsive Buy", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.lime, text="IB")
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
plotshape(showImpulse and impulseWaveSell, title="Impulsive Sell", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.maroon, text="IS")
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = close
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.from(0.618, 1.0, 1.272, 1.618, 2.0)
for i = 0 to array.size(tpLevels) - 1
fib = array.get(tpLevels, i)
tp = entry + fib * atr
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(fib)
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.lime, size=size.normal)
array.push(buyLines, line)
sl = entry - 0.618 * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(buyLines, slLine)
if (showSell)
entry = close
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.from(-0.618, -1.0, -1.272, -1.618, -2.0)
for i = 0 to array.size(tpLevels) - 1
fib = array.get(tpLevels, i)
tp = entry + fib * atr
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(math.abs(fib))
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.green, size=size.normal)
array.push(sellLines, line)
sl = entry + 0.618 * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(sellLines, slLine)
PRO Investing - Apex EnginePRO Investing - Apex Engine
1. Core Concept: Why Does This Indicator Exist?
Traditional momentum oscillators like RSI or Stochastic use a fixed "lookback period" (e.g., 14). This creates a fundamental problem: a 14-period setting that works well in a fast, trending market will generate constant false signals in a slow, choppy market, and vice-versa. The market's character is dynamic, but most tools are static.
The Apex Engine was built to solve this problem. Its primary innovation is a self-optimizing core that continuously adapts to changing market conditions. Instead of relying on one fixed setting, it actively tests three different momentum profiles (Fast, Mid, and Slow) in real-time and selects the one that is most synchronized with the current price action.
This is not just a random combination of indicators; it's a deliberate synthesis designed to create a more robust momentum tool. It combines:
Volatility analysis (ATR) to generate adaptive lookback periods.
Momentum measurement (ROC) to gauge the speed of price changes.
Statistical analysis (Correlation) to validate which momentum measurement is most effective right now.
Classic trend filters (Moving Average, ADX) to ensure signals are only taken in favorable market conditions.
The result is an oscillator that aims to be more responsive in volatile trends and more stable in quiet periods, providing a more intelligent and adaptive signal.
2. How It Works: The Engine's Three-Stage Process
To be transparent, it's important to understand the step-by-step logic the indicator follows on every bar. It's a process of Adapt -> Validate -> Signal.
Stage 1: Adapt (Dynamic Length Calculation)
The engine first measures market volatility using the Average True Range (ATR) relative to its own long-term average. This creates a volatility_factor. In high-volatility environments, this factor causes the base calculation lengths to shorten. In low-volatility, they lengthen. This produces three potential Rate of Change (ROC) lengths: dynamic_fast_len, dynamic_mid_len, and dynamic_slow_len.
Stage 2: Validate (Self-Optimizing Mode Selection)
This is the core of the engine. It calculates the ROC for all three dynamic lengths. To determine which is best, it uses the ta.correlation() function to measure how well each ROC's movement has correlated with the actual bar-to-bar price changes over the "Optimization Lookback" period. The ROC length with the highest correlation score is chosen as the most effective profile for the current moment. This "active" mode is reflected in the oscillator's color and the dashboard.
Stage 3: Signal (Normalized Velocity Oscillator)
The winning ROC series is then normalized into a consistent oscillator (the Velocity line) that ranges from -100 (extreme oversold) to +100 (extreme overbought). This ensures signals are comparable across any asset or timeframe. Signals are only generated when this Velocity line crosses its signal line and the trend filters (explained below) give a green light.
3. How to Use the Indicator: A Practical Guide
Reading the Visuals:
Velocity Line (Blue/Yellow/Pink): The main oscillator line. Its color indicates which mode is active (Fast, Mid, or Slow).
Signal Line (White): A moving average of the Velocity line. Crossovers generate potential signals.
Buy/Sell Triangles (▲ / ▼): These are your primary entry signals. They are intentionally strict and only appear when momentum, trend, and price action align.
Background Color (Green/Red/Gray): This is your trend context.
Green: Bullish trend confirmed (e.g., price above a rising 200 EMA and ADX > 20). Only Buy signals (▲) can appear.
Red: Bearish trend confirmed. Only Sell signals (▼) can appear.
Gray: No clear trend. The market is likely choppy or consolidating. No signals will appear; it is best to stay out.
Trading Strategy Example:
Wait for a colored background. A green or red background indicates the market is in a tradable trend.
Look for a signal. For a green background, wait for a lime Buy triangle (▲) to appear.
Confirm the trade. Before entering, confirm the signal aligns with your own analysis (e.g., support/resistance levels, chart patterns).
Manage the trade. Set a stop-loss according to your risk management rules. An exit can be considered on a fixed target, a trailing stop, or when an opposing signal appears.
4. Settings and Customization
This script is open-source, and its settings are transparent. You are encouraged to understand them.
Synaptic Engine Group:
Volatility Period: The master control for the adaptive engine. Higher values are slower and more stable.
Optimization Lookback: How many bars to use for the correlation check.
Switch Sensitivity: A buffer to prevent frantic switching between modes.
Advanced Configuration & Filters Group:
Price Source: The data source for momentum calculation (default close).
Trend Filter MA Type & Length: Define your long-term trend.
Filter by MA Slope: A key feature. If ON, allows for "buy the dip" entries below a rising MA. If OFF, it's stricter, requiring price to be above the MA.
ADX Length & Threshold: Filters out non-trending, choppy markets. Signals will not fire if the ADX is below this threshold.
5. Important Disclaimer
This indicator is a decision-support tool for discretionary traders, not an automated trading system or financial advice. Past performance is not indicative of future results. All trading involves substantial risk. You should always use proper risk management, including setting stop-losses, and never risk more than you are prepared to lose. The signals generated by this script should be used as one component of a broader trading plan.
High Win Rate Trader by iambuoyant# High Win Rate Trader by iambuoyant - Complete Guide
## Introduction
The "High Win Rate Trader by iambuoyant" is a comprehensive Pine Script indicator designed to identify high-probability trading opportunities across various market conditions. Built with a multi-faceted approach, it integrates several key technical analysis concepts to provide robust buy and sell signals, aiming to maximize potential returns while managing risk. This indicator is particularly useful for traders looking for confirmed entries based on a confluence of factors rather than relying on a single signal.
## Core Philosophy
This indicator operates on the principle that **multiple confirming factors create higher probability trades**. Instead of relying on a single indicator, it combines trend analysis, momentum oscillators, volume confirmation, market structure, and mathematical levels to identify optimal entry points. The more confluence factors that align, the stronger the trading signal.
## Strategies and Confluence Factors
### 1. Trend Analysis
**Purpose**: Establishes the overall market direction to ensure trades align with momentum.
**Components**:
- **Fast EMA (Default: 9)**: Short-term trend detection
- **Slow EMA (Default: 21)**: Medium-term trend confirmation
- **Trend EMA (Default: 50)**: Long-term trend establishment
**How it works**:
- **Bullish Trend**: Fast EMA > Slow EMA > Trend EMA
- **Bearish Trend**: Fast EMA < Slow EMA < Trend EMA
- Signals are filtered to only trigger in the direction of the established trend
**Default Settings**:
- Fast EMA Period: 9
- Slow EMA Period: 21
- Trend EMA Period: 50
### 2. Oscillator Confirmation
**Purpose**: Identifies overbought/oversold conditions and momentum shifts.
#### RSI (Relative Strength Index)
- **Period (Default: 14)**: Standard RSI calculation period
- **Overbought Level (Default: 70)**: RSI level considered overbought
- **Oversold Level (Default: 30)**: RSI level considered oversold
**How it works**:
- **Bullish**: RSI < 40 and turning upward (oversold recovery)
- **Bearish**: RSI > 60 and turning downward (overbought rejection)
#### Stochastic Oscillator
- **K Period (Default: 14)**: Stochastic %K calculation period
- **D Period (Default: 3)**: Stochastic %D smoothing period
- **Overbought Level (Default: 80)**: Stochastic overbought threshold
- **Oversold Level (Default: 20)**: Stochastic oversold threshold
**How it works**:
- **Bullish**: %K < 30 and (%K turning up OR %K > %D)
- **Bearish**: %K > 70 and (%K turning down OR %K < %D)
### 3. MACD (Moving Average Convergence Divergence)
**Purpose**: Confirms momentum shifts and trend changes.
**Components**:
- **Fast Period (Default: 12)**: Fast EMA for MACD calculation
- **Slow Period (Default: 26)**: Slow EMA for MACD calculation
- **Signal Period (Default: 9)**: Signal line smoothing period
**How it works**:
- **Bullish**: MACD line > Signal line OR (MACD rising AND histogram increasing)
- **Bearish**: MACD line < Signal line OR (MACD falling AND histogram decreasing)
### 4. Volume Analysis
**Purpose**: Confirms price moves with volume conviction.
**Components**:
- **Volume MA Period (Default: 20)**: Period for volume moving average
- **Volume Multiplier (Default: 1.5)**: Volume threshold multiplier
**How it works**:
- **Bullish**: Current volume > (Volume MA × 1.5)
- **Bearish**: Current volume > (Volume MA × 1.5)
### 5. Market Structure and Volatility
#### Support and Resistance Levels
- **Pivot Length (Default: 10)**: Period for pivot high/low detection
- **Dynamic Levels**: Automatically identifies recent swing highs and lows
- **Proximity Check**: Ensures trades aren't initiated too close to S/R levels
#### ATR (Average True Range)
- **ATR Period (Default: 14)**: Volatility measurement period
- **ATR Multiplier (Default: 2.0)**: Stop loss distance multiplier
- **Volatility Filter (Default: 50.0%)**: Maximum allowed volatility percentage
**How it works**:
- Calculates market volatility using ATR
- Prevents trades in excessively volatile conditions
- Helps determine dynamic stop loss levels
### 6. Fibonacci Retracements
**Purpose**: Identifies key mathematical support/resistance levels.
**Components**:
- **Lookback Period (Default: 50)**: Period for swing high/low calculation
- **Tolerance (Default: 2.0%)**: Price proximity tolerance to Fib levels
**Key Levels**: 23.6%, 38.2%, 50%, 61.8%, 78.6%
**How it works**:
- **Bullish**: Price near 38.2%, 50%, or 61.8% retracement levels in uptrend
- **Bearish**: Price near 38.2%, 50%, or 61.8% retracement levels in downtrend
### 7. Risk Management
#### Risk:Reward Ratio
- **Minimum RR Ratio (Default: 1.0)**: Minimum acceptable risk:reward ratio
- **Dynamic Calculation**: Based on support/resistance levels and ATR
#### Dynamic Stop Loss
- **ATR-based**: Stop loss = Entry ± (ATR × 1.5)
- **S/R-based**: Uses nearby support/resistance levels when available
### 8. Signal Confirmation
**Confirmation Bars (Default: 0)**:
- **0**: Immediate signals (recommended for testing)
- **1+**: Delayed confirmation for reduced false signals
## How to Use the Indicator
### Step 1: Initial Setup
1. **Add to Chart**: Apply the "High Win Rate Trader by iambuoyant" indicator to your desired chart in TradingView
2. **Verify Display**: Ensure you can see the indicator plots and debug pane below the main chart
### Step 2: Understanding the Signals
#### Visual Elements:
- **Green Triangles (Buy)**: Appear below price bars for long entry signals
- **Red Triangles (Sell)**: Appear above price bars for short entry signals
- **Labels**: Show "BUY" or "SELL" with current RSI value
- **EMA Lines**: Blue (Fast), Orange (Slow), Gray (Trend) - visible when enabled
#### Signal Types:
- **Flash Signals**: Immediate signals when conditions are first met
- **Confirmed Signals**: Signals that have passed confirmation criteria
### Step 3: Debugging and Optimization
#### Access Debug Features:
1. Click the gear icon next to the indicator name
2. Navigate to "Signal Components (Debugging)" section
3. All confluence factors start **disabled** by default
#### Initial Testing Process:
1. **Start Simple**: Keep all "Enable X Condition" toggles **OFF**
2. **Enable Basic**: Turn on "Enable RSI Condition" first
3. **Observe Signals**: Check if buy/sell signals appear
4. **Gradual Addition**: Enable one condition at a time
5. **Monitor Debug Plots**: Watch the colored crosses in the lower pane
#### Debug Plot Interpretation:
- **Green Crosses (Value 1)**: Bullish conditions met
- **Red Crosses (Value 2)**: Bearish conditions met
- **No Cross**: Condition not met
- **"Debug: Final Long/Short Signal"**: Combined signal output
### Step 4: Fine-tuning Parameters
#### If Signals Are Too Rare:
1. **Reduce Thresholds**: Lower RSI overbought/oversold levels
2. **Relax Filters**: Increase volatility filter percentage
3. **Adjust Timeframes**: Modify EMA periods for your trading style
4. **Disable Strict Conditions**: Turn off conditions that are too restrictive
#### If Signals Are Too Frequent:
1. **Increase Thresholds**: Raise RSI levels
2. **Add Filters**: Enable more confluence conditions
3. **Stricter Confirmation**: Increase confirmation bars
4. **Higher RR Ratio**: Increase minimum risk:reward requirement
### Step 5: Display Configuration
#### Display Options:
- **Show Buy/Sell Labels**: Toggle signal labels on/off
- **Show Support/Resistance**: Toggle S/R level lines
- **Show Trend EMAs**: Toggle EMA trend lines
### Step 6: Setting Up Alerts
#### Alert Conditions:
- **"Confirmed Buy Signal"**: Triggers on confirmed long entries
- **"Confirmed Sell Signal"**: Triggers on confirmed short entries
#### Alert Message Format:
- Buy: "BUY - RSI: , Price: "
- Sell: "SELL - RSI: , Price: "
## Recommended Settings by Market Type
### Trending Markets:
- Enable: Trend Alignment, RSI, MACD
- Disable: Volume (optional)
- Confirmation Bars: 1-2
### Ranging Markets:
- Enable: RSI, Stochastic, Support/Resistance
- Disable: Trend Alignment
- Confirmation Bars: 0
### Volatile Markets:
- Enable: Volatility Filter, ATR-based stops
- Reduce: RSI thresholds (60/40 instead of 70/30)
- Increase: Confirmation bars to 2-3
## Troubleshooting
### No Signals Appearing:
1. Check if any "Enable X Condition" is turned ON
2. Verify debug plots show activity
3. Reduce parameter thresholds
4. Check if market conditions match your settings
### Too Many False Signals:
1. Enable more confluence conditions
2. Increase confirmation bars
3. Adjust RSI/Stochastic thresholds
4. Enable volatility filter
### Signals Not Aligning with Price Action:
1. Check trend alignment settings
2. Verify EMA periods match your timeframe
3. Adjust Fibonacci lookback period
4. Review support/resistance proximity settings
## Best Practices
1. **Start Conservative**: Begin with fewer confluence factors and gradually add more
2. **Test Thoroughly**: Use demo accounts to test parameter combinations
3. **Monitor Debug Plots**: Regularly check which conditions are failing
4. **Adapt to Market**: Adjust settings based on current market conditions
5. **Use Multiple Timeframes**: Consider higher timeframe trend direction
6. **Risk Management**: Always use proper position sizing and stop losses
## Default Settings Summary
### Trend Analysis:
- Fast EMA: 9
- Slow EMA: 21
- Trend EMA: 50
### Oscillators:
- RSI Period: 14, Overbought: 70, Oversold: 30
- Stochastic K: 14, D: 3, Overbought: 80, Oversold: 20
### MACD:
- Fast: 12, Slow: 26, Signal: 9
### Volume:
- MA Period: 20, Multiplier: 1.5
### Market Structure:
- ATR Period: 14, Multiplier: 2.0
- Volatility Filter: 50.0%
- Pivot Length: 10
### Fibonacci:
- Lookback: 50, Tolerance: 2.0%
### Signal Quality:
- Confirmation Bars: 0
- Min RR Ratio: 1.0
### Display:
- Show Labels: ON
- Show S/R: ON
- Show Trend: ON
### Debug (All Disabled by Default):
- Enable RSI: OFF
- Enable Stochastic: OFF
- Enable MACD: OFF
- Enable Price Structure: OFF
- Enable Trend Alignment: OFF
- Enable Volume: OFF
- Enable Fibonacci: OFF
- Enable Risk:Reward: OFF
- Enable Volatility: OFF
MR.Z Strategy Reversal Signal Nadaraya SMA)Nadaraya-Watson Envelope (NW Envelope):
A smoothed, non-linear dynamic envelope that adapts to price structure. It visually identifies price extremes using kernel regression. The upper and lower bands move with the chart and provide reliable dynamic support and resistance.
EMA Levels:
Includes three key exponential moving averages:
EMA 50 (short-term trend)
EMA 100 (medium-term)
EMA 200 (long-term, institutional level)
Fully Scrollable and Responsive:
All lines and envelopes are plotted using plot() so they move with the chart and respond to zoom and pan actions naturally.
🧠 Ideal Use:
Identify reversal zones, dynamic support/resistance, and trend momentum exhaustion.
Combine WTB and NW Envelope for confluence-based entries.
Use EMA structure for trend confirmation or breakout anticipation.
Let me know if you'd like to add:
Divergence detection
Buy/Sell signals
Alerts or signal filtering options
I’ll be happy to extend the description or the script accordingly!
Step-MA Baseline (with optional smoother)Trackline – Trend-Following Baseline with Confirmation Zones
A clean trend-following baseline that adapts to price action while filtering noise. Built on a smoothed moving average (EMA or HMA), Trackline highlights directional bias, with optional zone coloring to indicate breakout alignment or pullback opportunities. Use it to identify trend direction, validate entries, or act as dynamic support/resistance in trending environments.
Features:
• Customizable length & smoothing method (EMA, HMA, or WMA)
• Optional signal coloring (bullish/bearish/neutral)
• Works on all timeframes and assets
• Pairs well with momentum or liquidity tools
Cycle Timing Signal v1.1 – Wave + Reset Alerts🌀 Cycle Timing Signal v1.1 – Wave + Reset Alerts
Description:
The Cycle Timing Signal v1.1 indicator is designed to help traders identify time-based market reversals using a simple yet powerful cycle-based approach. It visually highlights cycle high/low resets, plots a dynamic cycle timing line, and overlays a customizable sine wave for enhanced timing analysis. This tool is ideal for traders seeking to combine rhythm, pattern recognition, and timing clarity into their strategy.
Key Features:
✅ Automatic Cycle Reset Detection – Highlights when a new cycle low or high is formed.
🟩 Background Color Coding – Optional background shading to reflect momentum or directional shift within the cycle.
🔔 Alert Conditions – Set alerts for fresh BUY (low reset) or SELL (high reset) signals.
🏷️ Chart Labels – Toggle on/off Buy/Sell labels at key turning points.
🔮 Overlay Sine Wave – Visualize cyclical rhythm with an adjustable amplitude and vertical offset sine wave.
📘 How to Use:
Cycle Length:
Set the number of bars to define your cycle. Default is 55, which works well for many instruments, but can be adjusted to suit your asset or timeframe.
Visual Cues:
Cycle Timing Line (main plot): Blue when favoring upward timing, red for downward. The line is based on the time since the last cycle high or low.
Background Color (optional): Helps visualize shifts in cycle direction and timing momentum.
BUY/SELL Labels (optional): Displayed at fresh cycle lows (BUY) and highs (SELL).
Sine Wave Overlay (optional):
Enables you to visualize cyclical flow in a smooth, rhythmic pattern. Use amplitude and vertical offset controls to align it visually with price action.
Alerts:
Add alerts on "Cycle Buy Reset" and "Cycle Sell Reset" to be notified when a new cycle low or high is detected.
⚙️ Suggested Use Cases:
Swing Trading: Identify reversal zones within dominant cycles.
Overlay with Price Action: Use timing resets alongside support/resistance or candlestick patterns.
Cycle Confluence: Combine with other cyclical indicators (e.g. RSI cycles, lunar/astro cycles, etc.) for deeper timing confirmation.
Vortex Indicator with HistogramThis is a simple script showing a standard Vortex Indicator along with a histogram that displays the difference between the Vortex lines.
Custom Screener with Alerts @RAMLAKSHMANDASScan the Nifty 50 directly on TradingView!
This script provides a real-time screener for the top 40 Nifty 50 stocks ranked by current index weightage (starting from RELIANCE, HDFCBANK, ICICIBANK, etc.), offering rapid on-chart multi-symbol analysis.
Features
Multi-symbol screener: Monitors the leading 40 Nifty constituents (NSE equities) in one view.
Full indicator table: Get snapshot values for Price, RSI, TSI, ADX, and SuperTrend for every symbol.
Dynamic filtering: Instantly filter results by any indicator value (e.g., highlight all stocks with RSI below 30).
Customizable symbols: Easily edit the symbol list to match updated Nifty composition or your stocks of interest.
Multi-timeframe support: Table values will update for any chosen chart timeframe.
Real-time alerts: Set up alerts for filtered stocks matching your strategy.
Gold Grid Lines (Fixed)Indicator function details: Gold Grid Lines (Fixed)
🧭 Purpose:
The indexer is designed to help structure the price of a horizontal line (Grid) on a graph of gold or any asset.
To use as a psychological reference, round-trip trading, or watch price fluctuations at equal levels.
⸻
🧩 Key Script Functions
1. 🔲 Draw horizontal lines in a grid (Grid Lines) style
• Use the Base Price that you specify, e.g. 2000.0.
• Draw a line up and down from the middle price with the same distance (Stepper Line).
• The number of lines on each side is set (Lines Up/Down).
• The line draws only one time when the graph is opened, so that the graph does not slow down.
✏️ Example:
• Base Price = 2000.0
• Stepper Line = 1.0 → means 100 gold dots.
• Lines = 5 → Draw 5 upper and 5 lower lines
→ get a price tag of 1995, 1996, … , 2005
⸻
2. 📉 Draw the day's open price line (Daily Open Line)
• When entering a new day, the system records the open price of the first bar of the day.
• Draw a horizontal line as "Daily Open Line" to help traders see how prices opened that day.
• Ideal for analysis of "over-open/under-open" behavior (e.g. trend, selling/buying force)
Digital Clock with Candle Alert📊 Digital Clock with Candle Alert
A sleek, customizable digital clock for your trading charts that displays real-time with seconds and provides visual alerts before new candles form. Never miss a candle entry again!
✨ Key Features:
- Real-time Digital Clock - Shows hours, minutes, and seconds in your chosen timezone
- Visual Candle Alerts - Blinking notification before new candles form
- Multi-Timeframe Alerts - Get alerts for any timeframe regardless of your chart period
- Fully Customizable - Colors, size, position, and alert timing all configurable
- Half-Second Blinking - Eye-catching 2Hz blink rate for maximum visibility
- 6 Timezone Options - Exchange, UTC, New York, London, Tokyo, Sydney
🎯 Use Cases:
- Scalping - Know exactly when the next candle will form
- Entry Timing - Perfect for strategies that enter on new candles
- Multi-Timeframe Trading - Monitor higher timeframe candles while on lower timeframes
- General Awareness - Always know the current time in your trading timezone
⚙️ Settings:
Time Settings:
- Timezone selection (Exchange default or specific zones)
Display Options:
- Text and background colors for normal operation
- Alert colors for blinking state
- Text size (tiny to huge)
- Position (9 locations on chart)
Alert Configuration:
- Enable/disable blinking alerts
- Select timeframe to monitor
- Alert lead time (5 seconds to 1 hour)
📝 Important Notes:
- Clock updates depend on incoming price ticks
- During low-volume periods, updates may be less frequent
- Works best on liquid instruments during active market hours
- Alert timeframe is independent of your chart timeframe
💡 Tips:
- Use contrasting alert colors for maximum visibility
- Set lead time based on your reaction needs
- Position clock where it won't obstruct price action
- Try red background with white text for urgent alerts
🔄 Version 1.0 - Initial release
xGhozt Percentage Price ChangeDisplays two dynamic horizontal lines at ±X% from the current price, with customizable colors and labels. Useful for visualizing profit targets, stop loss zones, or expected volatility ranges. Labels show both the percentage and the corresponding price.
Stock Table📊 Professional Stock Market Table - Pine Script v5
🎯 Overview
This is a comprehensive, real-time stock monitoring table designed for TradingView that transforms your chart into a professional trading dashboard. Built with Pine Script v5, it displays live market data for up to 10 customizable securities in an organized, color-coded table format.
________________________________________
🚀 Core Capabilities
📈 Real-Time Data Processing
• Live Price Feeds: Direct integration with TradingView's request.security() function
• Multi-Timeframe Support: Adapts to any chart timeframe automatically
• Instant Updates: Refreshes on every bar close with current market data
• Cross-Market Coverage: Supports stocks, forex, crypto, indices, commodities
• Data Accuracy: Uses lookahead=barmerge.lookahead_off for historical accuracy
🎨 Advanced Visual Customization
• 9 Strategic Positions: Place anywhere on chart (all corners, centers, middle positions)
• Dynamic Layout: 1-5 column configurations with auto-calculating rows
• 4 Size Options: Tiny, Small, Normal, Large text sizing
• Professional Color Scheme: Customizable background, headers, text colors
• Smart Color Coding: Green/red price change indicators with neutral states
📊 Intelligent Table Structure
• Auto-Responsive Design: Table dimensions adjust based on column count
• Professional Headers: Optional Symbol | Price | Change column headers
• Compact Data Display: Symbol name, current price, absolute & percentage change
• Clean Formatting: Precise decimal places, proper alignment, readable layout
• Error Handling: Handles null data, division by zero, invalid symbols gracefully
________________________________________
🔧 Technical Specifications
Data Architecture
- Stock Data Arrays: Dynamic string and float arrays for efficient data management
- Security Requests: Individual request.security() calls for each symbol
- Real-time Processing: Uses barstate.islast for optimal performance
- Memory Management: Efficient array operations with proper cleanup
Performance Optimizations
• Conditional Rendering: Only processes data on the latest bar
• Efficient Memory Usage: Clears and rebuilds table data on each update
• Minimal Resource Impact: Lightweight code structure with no unnecessary loops
• Fast Execution: Direct data access without complex calculations
Symbol Processing
• Exchange Extraction: Automatically removes exchange prefixes (NASDAQ:, NYSE:)
• Clean Display Names: Shows only ticker symbols (AAPL, GOOGL, etc.)
• Flexible Input: Accepts any TradingView-supported symbol format
• Error Resilience: Continues operation even if some symbols fail
________________________________________
🎛️ User Controls & Settings
Securities Configuration
• 10 Customizable Slots: Input any combination of stocks, ETFs, crypto, forex
• Global Market Support: Works with any TradingView-supported instrument
• Easy Symbol Changes: Simple dropdown interface for quick modifications
• Default Professional Portfolio: Pre-loaded with major tech and financial stocks
Layout Customization
Position Options:
├── Top: Left, Center, Right
├── Middle: Left, Center, Right
└── Bottom: Left, Center, Right
Column Configurations:
├── 1 Column: 10 rows (vertical list)
├── 2 Columns: 5 rows (balanced view)
├── 3 Columns: 4 rows (compact display)
├── 4 Columns: 3 rows (wide format)
└── 5 Columns: 2 rows (ultra-wide)
Visual Customization
• Background Control: Transparency settings (0-90%)
• Header Styling: Toggle headers with custom colors
• Text Appearance: Four size options with color controls
• Change Indicators: Separate colors for up/down movements
• Professional Theming: Dark theme optimized for trading environments
________________________________________
💼 Professional Trading Advantages
Market Monitoring
✅ Multi-Asset Oversight: Monitor diverse portfolios in one view
✅ Quick Performance Scan: Instant visual identification of winners/losers
✅ Real-Time Alerts: Color changes provide immediate market feedback
✅ Space Efficient: Minimal chart real estate usage
✅ Always Visible: Persistent display regardless of chart zooming
Decision Making Support
✅ Comparative Analysis: Side-by-side performance comparison
✅ Trend Recognition: Immediate color-coded trend identification
✅ Portfolio Balance: Quick assessment of position performance
✅ Market Correlation: Observe sector movements simultaneously
✅ Risk Management: Rapid identification of adverse movements
Workflow Integration
✅ Chart Integration: Seamlessly blends with existing chart analysis
✅ Non-Intrusive: Doesn't interfere with technical analysis
✅ Customizable Placement: Adapts to any chart layout preference
✅ Professional Appearance: Suitable for client presentations
✅ Multi-Monitor Setup: Works perfectly on secondary displays
________________________________________
🔬 Technical Implementation Details
Pine Script Architecture
Data Flow:
Input Symbols → Security Requests → Data Processing → Table Creation → Visual Rendering
Key Functions:
├── get_name(): Symbol parsing and cleaning
├── get_table_position(): Dynamic positioning system
├── get_table_size(): Responsive sizing control
├── Array Management: Efficient data storage and retrieval
└── Table Operations: Creation, clearing, and population
Security & Reliability
• Error Handling: Comprehensive null checks and data validation
• Fallback Systems: Graceful degradation for missing data
• Performance Monitoring: Optimized for minimal CPU usage
• Memory Safety: Proper array cleanup and resource management
• Version Compatibility: Built for Pine Script v5 standards
Advanced Features
• Dynamic Calculations: Real-time percentage and absolute change computation
• Conditional Formatting: Context-aware color application
• Responsive Design: Auto-adjusting layout based on configuration
• Professional Typography: Optimized text sizing and spacing
• Cross-Platform Compatibility: Works on all TradingView platforms
________________________________________
📱 Use Cases & Applications
Day Trading
• Monitor watchlist stocks during active trading sessions
• Quick identification of breakout opportunities
• Real-time portfolio performance tracking
• Sector rotation analysis
Portfolio Management
• Long-term investment monitoring
• Diversification balance assessment
• Performance comparison across holdings
• Risk exposure evaluation
Market Analysis
• Sector strength comparison
• Market correlation studies
• Index component analysis
• Cross-asset performance review
Professional Trading
• Client portfolio dashboards
• Trading room displays
• Educational presentations
• Research and analysis support
________________________________________
🎯 Competitive Advantages
Versus Standard Watchlists
✅ Visual Integration: Embedded directly in charts
✅ Customizable Layout: Flexible positioning and sizing
✅ Professional Appearance: Trading-room quality display
✅ Real-Time Updates: Immediate price and change updates
Versus External Tools
✅ No Additional Software: Built into TradingView platform
✅ Synchronized Data: Uses same data source as charts
✅ Customizable Symbols: Not limited to pre-defined lists
✅ Cost Effective: No additional subscription fees
Versus Basic Pine Scripts
✅ Professional Quality: Production-ready code standards
✅ Error Resilience: Comprehensive error handling
✅ User-Friendly: Intuitive settings and controls
✅ Performance Optimized: Minimal resource consumption
________________________________________
🔧 Installation & Setup
Quick Start
1. Copy Pine Script code to TradingView Pine Editor
2. Add to chart - table appears with default settings
3. Customize symbols through indicator settings
4. Adjust position and appearance as needed
Optimization Tips
• Position table to avoid interfering with chart analysis
• Use 2-3 columns for optimal readability
• Choose contrasting colors for better visibility
• Regular symbol updates for current market focus
________________________________________
This Professional Stock Market Table represents a complete solution for serious traders and investors who demand real-time, customizable, and visually integrated market monitoring directly within their chart analysis workflow. 📊🚀