Triple EMA + Stochastic/ADX# Triple EMA + Stochastic/ADX Breakout Indicator
A professional TradingView indicator designed for trend-following and momentum breakout trading. This system uses a hierarchical confirmation process to ensure high-probability entries and robust trend maintenance.
## 🚀 Core Trading Logic: "The Setup Cycle"
This indicator operates on a **Cycle-Based Logic** rather than simple crossovers. A trade cycle is defined as:
1. **The Setup (Priming)**: A Stochastic crossover (K > D for Long, D > K for Short) initiates a "Setup Mode." This is marked by a small dot (Blue for Long, Orange for Short).
2. **The Confirmation (Trend)**: The systems checks for hierarchical EMA alignment (Fast > Medium > Slow for Longs).
3. **The Trigger (Breakout)**: Once the Setup is active and EMAs are aligned, every **Price Breakout** above the previous high (X-period) triggers a continuous **BUY/SELL mark**.
4. **The Exit (Take Profit/Stop)**: The cycle and trade only end when the Fast EMA crosses back over the Medium EMA (EMA 9/21 crossover).
---
## 🛠 Features
### 1. Triple EMA System
* **Hierarchical Alignment**: Requires Fast > Medium > Slow (9, 21, 50 by default) for a confirmed trend direction.
* **Dynamic Trend Background**: Chart background changes color when a full EMA trend is established.
### 2. Dual Filter System (Stochastic & ADX)
* **Stochastic Setup**: Uses smoothed %K and %D to identify the start of momentum cycles.
* **ADX Filter**: Provides a trend-strength baseline. Default threshold is set to 20 to filter out choppy markets.
### 3. Price Breakout Confirmation
* Requires price to break above/below the previous High/Low of the last X bars (default 10).
* Allows for **continuous entries** within a single trend cycle.
### 4. Robust Exit Strategy
* **EMA Crossover Exit**: The primary exit method. Triggers an "EXIT" flag when the trend momentum shifts.
* **ATR Trailing Stop**: A secondary volatility-based stop that moves with the price. Can be set as the absolute exit or used for visual reference.
### 5. Mean Reversion Mode (Optional)
* Identifies overextended price action (percent deviation from EMA2).
* Signals potential "bounce" or "rejection" trades against the trend.
---
## 📊 Dashboard & Visuals
* **🟢 BUY / 🔴 SELL**: Trend continuation breakout signals.
* **🟠 EXIT / 🟣 EXIT**: Trend reversal/exit signals.
* **🔵/🟠 Small Dots**: Setup priming moments.
* **Real-time Dashboard**: Displays current Setup Status, EMA Alignment, Breakout status, ADX strength, and calculated Stop levels.
---
## ⚙️ How to Customize
| Parameter | Recommended Use |
| :--- | :--- |
| **Breakout Lookback** | Lower (3-5) for aggressive scalping, Higher (10-20) for conservative trends. |
| **Filter Mode** | Choose "Stochastic" for momentum or "ADX" for trend strength preference. |
| **ATR Multiplier** | Reduce (1.5) for tighter stops, Increase (3.0) for wider trend following. |
| **Exit ONLY on EMA** | Enable to stay in trades longer; Disable to exit immediately on ATR stop hits. |
---
## 📥 Installation
1. Open your **Pine Editor** in TradingView.
2. Create a new "Indicator."
3. Copy the code from `Triple_EMA_Stochastic_ADX.pine`.
4. Click **Save** and **Add to Chart**.
---
*Developed for Dhan/MCX/Futures and general Asset Trading.*
图表形态
DStrat With Alert Line Dstrat with extra lower band line specifically for alerts to trade spontaneously (without tracking daily)
Order Block Finder | Gold | ProjectSyndicate🥇 ProjectSyndicate Gold Order Block Finder
📌 Institutional Order Blocks for XAUUSD Built for Gold’s Volatility
The ProjectSyndicate Gold Order Block Finder is a professional-grade TradingView indicator engineered specifically for XAUUSD / Gold traders who want clean, high-probability institutional supply & demand zones on their chart.
Gold moves fast, sweeps liquidity often, and loves sharp displacement. This tool is tuned to match that behavior—so you can quickly spot the zones where smart money likely stepped in, and plan entries, targets, and invalidations with confidence. ✅
🚀 Why Gold Traders Like It
✅ Made for XAUUSD: Detection is tuned for Gold’s unique volatility and impulse structure
🏦 Institutional Zone Detection: Finds the last opposing candle before a true displacement + structure break
🧹 Auto-Cleanup (Mitigation): Zones automatically disappear when invalidated (no clutter)
📦 Clean Visualization: Professional OB boxes that extend into live price action
⚡ Pine Script v6: Built on the latest TradingView engine for stability and speed
🧠 Detection Logic Simple, Effective, Battle-Tested
📈 Bullish Order Block (Demand):
The last bearish candle before a strong bullish displacement that breaks market structure (BOS)
📉 Bearish Order Block (Supply):
The last bullish candle before a strong bearish displacement that breaks market structure (BOS)
💥 Displacement Filter Power Move Confirmation:
Zones are validated only when the impulse move meets a minimum strength threshold (default: 1.3× candle range)—helping filter out weak noise and low-quality blocks.
🛠 Recommended Gold Settings (XAUUSD)
Use these presets to match Gold’s typical behavior across higher-impact timeframes:
Timeframe | Swing Length | Displacement
M5 | 5–7 | 1.2 – 1.4
M10 | 5–7 | 1.2 – 1.4
M30 | 5–7 | 1.2 – 1.4
H1 | 7–9 | 1.3 – 1.6
H4 | 8–10 | 1.5 – 2.0
💡 Tip: If you want more signals, reduce Swing Length.
If you want higher quality only, increase Displacement.
✅ Best Use-Cases on Gold
🎯 Mark premium supply/demand zones without manual drawing
🧲 Wait for price to return to the OB for cleaner entries
🛡️ Use OB boundaries for clear invalidation + stop placement
📊 Combine with trend bias / liquidity sweeps / session levels for extra confirmation
Trap Longs - Hamza NaveedTrap Longs – Hamza Naveed is an advanced Open Interest–based indicator that analyzes net longs, net shorts, delta, and ratio across multiple exchanges (Binance, BitMEX, Kraken). It visualizes institutional positioning using candles, lines, or columns, with optional VWMA/EMA smoothing, RSI strength, volume heatmaps, statistical tables, and divergence detection. Designed to identify traps, absorption, and exhaustion, this tool helps traders understand positioning shifts, liquidity behavior, and potential trend reversals beyond price action alone.
Max and Min Daily + 4H + 1H + Today Daily + 30mIndicator that shows on the chart the highs and lows of yesterday's daily, today's daily candle, the 4-hour, 1-hour, and 30-minute timeframes.
Indicatore che mostra sul grafico i max e min del daily di ieri, della candela giornaliera di oggi, del tf4h, tf1h e tf30 min.
Trading Sessions - BluePipsWhat the indicator does
A TradingView Pine Script indicator that overlays trading sessions on intraday charts and tracks session highs/lows.
Main features
Three trading sessions (all times in CST/CDT):
Asian Session: 7:00 PM - 12:00 AM (19:00-00:00)
London Session: 1:00 AM - 6:00 AM (01:00-06:00)
New York Session: 7:00 AM - 1:00 PM (07:00-13:00)
Visual elements (toggleable):
Colored boxes: highlight each active session
Session labels: show session name, price range, and average price
Open/Close lines: dashed lines at session open and close prices
Average price line: dotted line showing the average price during the session
High/Low lines: solid lines showing the session high and low
High/Low labels: "AH" (Asian High), "AL" (Asian Low), "LH" (London High), "LL" (London Low), "NH" (New York High), "NL" (New York Low)
Behavior:
During a session: box expands, lines extend, high/low update in real time
After a session ends: box and open/close lines are removed; high/low lines remain visible as reference levels
Daily reset: all elements are cleaned up at the start of each new day
Use cases
Identify session boundaries and overlaps
Track session highs/lows as support/resistance
Analyze price action during specific trading hours
Monitor session ranges and averages
Technical details
Works only on intraday timeframes (errors on daily/weekly/monthly)
Handles daylight saving time automatically via IANA timezones
Properly cleans up visual elements to prevent memory leaks
All times are in Central Standard Time (CST/CDT)
Useful for traders who want to see session-based price levels and ranges directly on their charts.
HARSI RSI Shadow SHORT Strategy M1HARSI – Heikin Ashi RSI Shadow Indicator
HARSI (Heikin Ashi RSI Shadow) is a momentum-based oscillator that combines the concept of Heikin Ashi smoothing with the Relative Strength Index (RSI) to reduce market noise and highlight short-term trend strength.
Instead of plotting traditional price candles, HARSI transforms RSI values into a zero-centered oscillator (RSI − 50), allowing traders to clearly identify bullish and bearish momentum around the median line. The smoothing mechanism inspired by Heikin Ashi candles helps filter out false signals, making the indicator especially effective on lower timeframes such as M1.
The RSI Shadow reacts quickly to momentum shifts while maintaining smooth transitions, which makes it suitable for scalping and intraday trading. Key threshold levels (such as ±20 and ±30) can be used to detect momentum expansion, exhaustion, and potential continuation setups.
mua HARSI RSI Shadow Strategy M1 (Fixed)HARSI – Heikin Ashi RSI Shadow Indicator
HARSI (Heikin Ashi RSI Shadow) is a momentum-based oscillator that combines the concept of Heikin Ashi smoothing with the Relative Strength Index (RSI) to reduce market noise and highlight short-term trend strength.
Instead of plotting traditional price candles, HARSI transforms RSI values into a zero-centered oscillator (RSI − 50), allowing traders to clearly identify bullish and bearish momentum around the median line. The smoothing mechanism inspired by Heikin Ashi candles helps filter out false signals, making the indicator especially effective on lower timeframes such as M1.
The RSI Shadow reacts quickly to momentum shifts while maintaining smooth transitions, which makes it suitable for scalping and intraday trading. Key threshold levels (such as ±20 and ±30) can be used to detect momentum expansion, exhaustion, and potential continuation setups.
HARSI works best in liquid markets and can be used as a standalone momentum indicator or combined with trend filters such as moving averages or VWAP for higher-probability trades.
Key Features:
Zero-centered RSI oscillator (RSI − 50)
Heikin Ashi–style smoothing to reduce noise
Clear momentum-based entry signals
Optimized for lower timeframes (M1 scalping)
Suitable for both Spot and Futures trading
Basic Key Levels | Feng FuturesKey Levels | Feng Futures (Basic) automatically plots the most essential daily reference levels used by futures traders to establish intraday context and structure.
This lightweight version focuses on the three levels that matter most for session bias and liquidity reference:
Previous Day High (PDH)
Previous Day Low (PDL)
Session Open (18:00 NY for futures)
These levels are commonly used by professional and institutional participants as decision points for:
directional bias
continuation vs. reversal context
risk definition and invalidation
Features:
• Auto-plotted PDH and PDL
• Futures session open (18:00 NY)
• Clean, non-repainting levels
• Lines extend forward for intraday use
• Optional price labels pinned to the right edge
• Minimal design to reduce chart clutter
• Full color, width, and label customization
• Optimized for intraday futures trading
This indicator does not provide trade signals or alerts.
It is designed to support planning, execution, and review within your own trading framework.
Best used on:
ES, NQ, RTY, YM (intraday timeframes)
PDH / PDL levels can be used as take profit targets or to help form bias. For example, if we break out of PDH, we may look for longs.
Disclaimer:
This indicator is for educational purposes only and does not constitute financial advice. Trading futures involves significant risk and may not be suitable for all investors. Always do your own research and use proper risk management.
Breakout Pro_V3Advanced breakout/breakdown indicator featuring multi-pattern detection, quality tier scoring (S/A/B/C), strength analysis (0-10), VWAP integration, multi-timeframe filters, and adaptive R-based take-profit/stop-loss framework. Includes comprehensive dashboard with real-time metrics and market regime detection.
Breakout Pro_V2Advanced breakout/breakdown indicator featuring multi-pattern detection, quality tier scoring (S/A/B/C), strength analysis (0-10), VWAP integration, multi-timeframe filters, and adaptive R-based take-profit/stop-loss framework. Includes comprehensive dashboard with real-time metrics and market regime detection.
Breakout Alert Pro + VWAPAdvanced breakout/breakdown indicator featuring multi-pattern detection, quality tier scoring (S/A/B/C), strength analysis (0-10), VWAP integration, multi-timeframe filters, and adaptive R-based take-profit/stop-loss framework. Includes comprehensive dashboard with real-time metrics and market regime detection.
Daily Trend Scanner (Single Symbol)This indicator tracks the current selected symbol/ticker and looks at the Previous Day High/Low and Pre-Market High/Low.
Data is provided in a small table for visualization.
If the price is above the PDH and PMH the ticker will be displayed as bullish. If the price is below PDL and PML the ticker will be displayed as bearish. Otherwise it will show neutral.
The Pre-Market High and Low values can also be displayed in the table and toggled in the settings.
Adjust table position and text size in the settings.
This indicator is useful for visually tracking how a ticker may be trending for the current day.
PA Bar Count (First Edition)This script is written by FanFan.
It is designed to count price action bars and identify the bar number in a sequence.
The script helps traders track bar structure and improve PA analysis.
Liquidation Heatmap Zones CamnextlevelFind Liquidation zones where the high leverage trades are being liquidated
Scalp Hunter [Scalping-Algo]═══════════════════════════════════════════════════════════════════════════════
🎯 SCALP HUNTER
Precision ATR Momentum System for Fast Timeframes
═══════════════════════════════════════════════════════════════════════════════
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scalp Hunter is a high-accuracy scalping indicator designed specifically for
low timeframe trading (3M, 4M, 5M). It combines ATR-based trailing stops with
multiple confirmation filters to deliver clean, actionable signals.
✅ No Repaint
✅ No Delay
✅ Confirmed Signals Only
✅ Multi-Filter Validation
═══════════════════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator uses an ATR Trailing Stop as its core engine. When price crosses
the trail line, a potential signal is generated. But here's what makes it
accurate — signals must pass through 4 additional filters:
│
├─ 📊 PRICE ACTION FILTER
│ • Candle must close in signal direction
│ • Body size > 50% of full candle range
│ • Confirms strong momentum, not weak wicks
│
├─ 📈 VOLUME FILTER
│ • Volume must exceed 1.1x of 10-period average
│ • Filters out low-conviction moves
│ • Toggle on/off in settings
│
├─ 📉 EMA TREND FILTER
│ • Long signals: price must be above 21 EMA
│ • Short signals: price must be below 21 EMA
│ • Keeps you trading with the trend
│
└─ 🔥 MOMENTUM FILTER (RSI)
• RSI must confirm direction (>50 for longs, <50 for shorts)
• Avoids overbought/oversold extremes
• Fast 7-period RSI tuned for scalping
═══════════════════════════════════════════════════════════════════════════════
🎨 VISUAL GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 GREEN TRIANGLE (▲) = Long Entry Signal
🔴 RED TRIANGLE (▼) = Short Entry Signal
━━ GREEN LINE = Bullish Trail Stop (support)
━━ RED LINE = Bearish Trail Stop (resistance)
🟢 GREEN BARS = Bullish Trend Active
🔴 RED BARS = Bearish Trend Active
═══════════════════════════════════════════════════════════════════════════════
📖 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1: Add to Chart
• Apply indicator to 3M, 4M, or 5M chart
• Works on any liquid market (crypto, forex, stocks, futures)
STEP 2: Wait for Signal
• 🟢 Triangle appears below bar = LONG opportunity
• 🔴 Triangle appears above bar = SHORT opportunity
• Signal fires at bar OPEN (no repaint, you can act immediately)
STEP 3: Entry
• Enter at market or use limit order near signal bar close
• Trail stop line shows your initial stop level
STEP 4: Stop Loss
• Place stop just beyond the trail line
• Long: stop below green trail line
• Short: stop above red trail line
STEP 5: Take Profit
• Option A: Fixed R:R (1:1.5 or 1:2 recommended)
• Option B: Trail your stop using the indicator line
• Option C: Exit when opposite signal appears
═══════════════════════════════════════════════════════════════════════════════
⚡ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For 3M / 4M / 5M (Default - Aggressive Scalping):
• ATR Sensitivity: 0.8
• ATR Length: 8
• RSI Length: 7
• EMA Length: 21
• All filters: ON
For 15M / 30M (Slower Scalps):
• ATR Sensitivity: 1.0
• ATR Length: 10
• RSI Length: 10
• EMA Length: 34
• All filters: ON
For Volatile Markets (Crypto/News Events):
• ATR Sensitivity: 1.2
• ATR Length: 12
• Volume Filter: ON (important!)
• Other filters: ON
═══════════════════════════════════════════════════════════════════════════════
🔔 ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three alert conditions available:
📲 "Scalp Long" → Fires on long entry signal
📲 "Scalp Short" → Fires on short entry signal
📲 "Any Signal" → Fires on both
To set up:
1. Click "Alert" button (clock icon)
2. Select "Scalp Hunter "
3. Choose condition
4. Set notification method (popup, email, webhook, mobile)
═══════════════════════════════════════════════════════════════════════════════
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Trading involves substantial risk. This indicator is a tool, not financial
advice. Past performance does not guarantee future results. Always:
• Use proper position sizing
• Set stop losses on every trade
• Never risk more than you can afford to lose
• Backtest before live trading
• Combine with your own analysis
═══════════════════════════════════════════════════════════════════════════════
💡 TIPS FOR BEST RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Trade during high-volume sessions (London/NY open)
✦ Avoid signals during major news releases
✦ Confirm with higher timeframe trend
✦ Best results on liquid pairs/assets
✦ Keep all filters ON for highest accuracy
✦ Turn off filters only if you need more signals
═══════════════════════════════════════════════════════════════════════════════
📊 WHAT MAKES THIS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most ATR trailing indicators give too many signals. Scalp Hunter is different:
❌ Other indicators: Signal on every trail cross
✅ Scalp Hunter: Signal only when 5 conditions align
This means fewer trades, but higher probability setups.
═══════════════════════════════════════════════════════════════════════════════
BUY Sell Signal (Kewme)//@version=6
indicator("EMA Cross RR Box (1:4 TP Green / SL Red)", overlay=true, max_lines_count=500, max_boxes_count=500)
// ===== INPUTS =====
emaFastLen = input.int(9, "Fast EMA")
emaSlowLen = input.int(15, "Slow EMA")
atrLen = input.int(14, "ATR Length")
slMult = input.float(1.0, "SL ATR Multiplier")
rr = input.float(4.0, "Risk Reward (1:4)") // 🔥 1:4 RR
// ===== EMA =====
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
plot(emaFast, color=color.green, title="EMA Fast")
plot(emaSlow, color=color.red, title="EMA Slow")
// ===== ATR =====
atr = ta.atr(atrLen)
// ===== EMA CROSS =====
buySignal = ta.crossover(emaFast, emaSlow)
sellSignal = ta.crossunder(emaFast, emaSlow)
// ===== VARIABLES =====
var box tpBox = na
var box slBox = na
var line tpLine = na
var line slLine = na
// ===== BUY =====
if buySignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry - atr * slMult
tp = entry + atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=tp,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=sl,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
// ===== SELL =====
if sellSignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry + atr * slMult
tp = entry - atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=tp,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=sl,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
Multi-Timeframe FVG (1H, 4H, Daily) - Color ShadesFVG charting in real time upon candle close. 1Hr, 4 Hr, Daily.
! hour darkest, 4 hour mid, daily lightest shade of color.
ORB | Feng FuturesThe ORB | Feng Futures indicator automatically detects the Opening Range Breakout (ORB) for each trading session, plotting the High, Low, and Midline in real time. This tool is built for futures traders who rely on ORB structure to confirm trends, identify breakout zones, and recognize reversal areas early in the session.
Features:
• Auto-calculated ORB High, Low, and Midline
• Multi-timezone session support (NY, Chicago, London, Tokyo, etc.)
• Customize ORB time range and time window for display
• Real-time updating lines that freeze at session close
• Optional labels with customizable size, color, and offset
• Save and view multiple previous ORB sessions
• Full color customization for all levels
• Automatically hides on higher timeframes (Daily+) to reduce clutter
• Works on ES, NQ, and all intraday futures charts
• Works on stocks, crypto, forex, and other tradeable assets where ORB is applicable
Disclaimer: This indicator is for educational purposes only and does not constitute financial advice. Trading futures involves significant risk and may not be suitable for all investors. Always do your own research and use proper risk management.
Live PDH/PDL Dashboard - Exact Time Fix saleem shaikh//@version=5
indicator("Live PDH/PDL Dashboard - Exact Time Fix", overlay=true)
// --- 1. Stocks ki List ---
s1 = "NSE:RELIANCE", s2 = "NSE:HDFCBANK", s3 = "NSE:ICICIBANK"
s4 = "NSE:INFY", s5 = "NSE:TCS", s6 = "NSE:SBIN"
s7 = "NSE:BHARTIARTL", s8 = "NSE:AXISBANK", s9 = "NSE:ITC", s10 = "NSE:KOTAKBANK"
// --- 2. Function: Har stock ke andar jaakar breakout time check karna ---
get_data(ticker) =>
// Kal ka High/Low (Daily timeframe se)
pdh_val = request.security(ticker, "D", high , lookahead=barmerge.lookahead_on)
pdl_val = request.security(ticker, "D", low , lookahead=barmerge.lookahead_on)
// Aaj ka breakout check karna (Current timeframe par)
curr_close = close
is_pdh_break = curr_close > pdh_val
is_pdl_break = curr_close < pdl_val
// Breakout kab hua uska time pakadna (ta.valuewhen use karke)
var float break_t = na
if (is_pdh_break or is_pdl_break) and na(break_t) // Sirf pehla breakout time capture karega
break_t := time
// --- 3. Sabhi stocks ka Data fetch karna ---
= request.security(s1, timeframe.period, get_data(s1))
= request.security(s2, timeframe.period, get_data(s2))
= request.security(s3, timeframe.period, get_data(s3))
= request.security(s4, timeframe.period, get_data(s4))
= request.security(s5, timeframe.period, get_data(s5))
= request.security(s6, timeframe.period, get_data(s6))
= request.security(s7, timeframe.period, get_data(s7))
= request.security(s8, timeframe.period, get_data(s8))
= request.security(s9, timeframe.period, get_data(s9))
= request.security(s10, timeframe.period, get_data(s10))
// --- 4. Table UI Setup ---
var tbl = table.new(position.top_right, 3, 11, bgcolor=color.rgb(33, 37, 41), border_width=1, border_color=color.gray)
// Row update karne ka logic
updateRow(row, name, price, hi, lo, breakT) =>
table.cell(tbl, 0, row, name, text_color=color.white, text_size=size.small)
string timeDisplay = na(breakT) ? "-" : str.format("{0,time,HH:mm}", breakT)
if price > hi
table.cell(tbl, 1, row, "PDH BREAK", bgcolor=color.new(color.green, 20), text_color=color.white, text_size=size.small)
table.cell(tbl, 2, row, timeDisplay, text_color=color.white, text_size=size.small)
else if price < lo
table.cell(tbl, 1, row, "PDL BREAK", bgcolor=color.new(color.red, 20), text_color=color.white, text_size=size.small)
table.cell(tbl, 2, row, timeDisplay, text_color=color.white, text_size=size.small)
else
table.cell(tbl, 1, row, "Normal", text_color=color.gray, text_size=size.small)
table.cell(tbl, 2, row, "-", text_color=color.gray, text_size=size.small)
// --- 5. Table Draw Karna ---
if barstate.islast
table.cell(tbl, 0, 0, "Stock", text_color=color.white, bgcolor=color.gray)
table.cell(tbl, 1, 0, "Signal", text_color=color.white, bgcolor=color.gray)
table.cell(tbl, 2, 0, "Time", text_color=color.white, bgcolor=color.gray)
updateRow(1, "RELIANCE", c1, h1, l1, t1)
updateRow(2, "HDFC BANK", c2, h2, l2, t2)
updateRow(3, "ICICI BANK", c3, h3, l3, t3)
updateRow(4, "INFY", c4, h4, l4, t4)
updateRow(5, "TCS", c5, h5, l5, t5)
updateRow(6, "SBI", c6, h6, l6, t6)
updateRow(7, "BHARTI", c7, h7, l7, t7)
updateRow(8, "AXIS", c8, h8, l8, t8)
updateRow(9, "ITC", c9, h9, l9, t9)
updateRow(10, "KOTAK", c10, h10, l10, t10)






















