Pattern grafici
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)
Manus - Ultimate Liquidity Points & SMC V3Ultimate Liquidity Points & SMC V3 is an advanced tool designed for traders following the Smart Money Concepts (SMC) and institutional liquidity analysis methodologies. The script automatically identifies price levels where large order volumes (stop losses and pending orders) are most likely to be found, allowing you to anticipate potential market reversals or accelerations.
Sesion Operativa - Codigo InstitucionalThis indicator is designed for institutional and precision traders who need to visualize market liquidity and key session operating ranges without visual clutter.
Unlike standard session indicators, this tool focuses on clarity and the projection of key levels (Highs and Lows) to identify potential future reaction zones.
Key Features:
4 Customizable Sessions: Pre-configured with key institutional times (Pre-NY, NY Open, London, and Asia). Each session is fully adjustable in time, color, and style.
Minimalist Labeling: Displays the session name and operating range (in pips/points) in a clean, direct format (e.g., NY - 45), removing decimals and unnecessary text to keep the chart clean.
Range Projections: Option to project the Highs and Lows of each session forward (N candles) to use them as dynamic support or resistance levels.
Opening Highlight (NYSE): Special feature to highlight candle colors during specific high-volatility times (default 09:30 - 09:35 UTC-5), perfect for identifying manipulation or liquidity injections at the stock market open.
Adjustable Time Zone: Default setting is UTC-5 (New York), but fully adaptable to any user time zone.
Old Indicator Multi-Component Decision StrategyStrategy to test signals based on rsi and few other technicals
Stock-Bond Correlation (60/40 Killer)Inspired by David Dredge
Why It Matters:
When correlation > 0:
❌ Bonds don't provide cushion when stocks fall
❌ Both portfolio engines fail simultaneously
❌ Rebalancing makes losses worse
✅ Long volatility strategies outperform
✅ Gold often benefits
Trading Signals:
When Correlation Crosses Above 0:
Action:
Reduce 60/40 allocation
Add long volatility positions
Consider gold/commodities
Increase cash buffer
When Correlation > 0.3:
Action:
Emergency mode
Maximum long vol exposure
Defensive positioning
Review all correlations
When Correlation Returns Negative:
Action:
Can resume 60/40
Scale back volatility hedges
Return to normal risk
VIX / VVIX / SPX Overlay with Divergence FlagsVVIX + SPX both rising = "Unstable advance - dealers hedging despite upside"
This suggests the rally is fragile
Market makers are buying protection even as prices rise
Often precedes reversals or increased volatility
Engulfing Reversal PatternThe Engulfing Reversal Pattern indicator seeks out both bullish and bearish reversal patterns. This indicator offers the user numerous options to modify the indicator to their needs.
Key features:
Ability to adjust the size of the Engulfing candle in comparison to the prior candle
Ability to adjust the number of breakout candles
Indicator adapts to the Time Frame it is being used in
You can choose between identifying only Bearish patterns, only Bullish patterns or both.
Indicator Arrow size can be adjusted in size.
Triple KDJ - CKThe Triple KDJ is a market-reading architecture based on multiscale confirmation, not a new indicator. It consists of the simultaneous use of three KDJ settings with different parameters to represent three levels of price behavior: short-, medium-, and long-term. The systemic logic is simple and robust: a move is considered tradable only when there is directional coherence across all three layers, which reduces noise, prevents entries against the dominant regime, and stabilizes decision-making.
At the slowest level, the KDJ acts as a structural regime filter. It defines whether the market is, at that moment, permissive for buying, selling, or remaining neutral. When the slow KDJ shows the hierarchy J > K > D, the environment is bullish; when J < K < D occurs, the environment is bearish. If this condition is not clear, any signal on the faster levels should be ignored, as it represents only local fluctuation without directional support.
The intermediate KDJ fulfills the role of continuity confirmation. It checks whether the impulse observed on the short-term level is supported by the developing move. In practical terms, it prevents entries based solely on micro-impulses that fail to evolve into real price displacement. When the intermediate KDJ replicates the same directional hierarchy as the slow KDJ, structure and movement are aligned.
The fast KDJ is used exclusively as a timing tool, never as a standalone signal generator. This is where the J line reacts first, often emerging from extreme zones and offering the lowest-risk entry point. In the Triple KDJ, the fast layer does not “command” the trade; it simply executes what has already been authorized by the higher levels.
The J line plays a central role in this architecture. In the fast KDJ, it anticipates the change in impulse; in the intermediate KDJ, it confirms the transformation of that impulse into movement; and in the slow KDJ, it determines whether the market accepts or rejects that direction. For this reason, in the Triple KDJ the correct reading is not about line crossovers, but about a consistent hierarchy among J, K, and D across multiple scales.
Kewme//@version=5
indicator("EMA 9/15 + ATR TP/SL Separate Boxes (No Engulfing)", overlay=true, max_lines_count=500, max_boxes_count=500)
// ===== INPUTS =====
atrLen = input.int(14, "ATR Length")
slMult = input.float(1.0, "SL ATR Multiplier")
rr = input.float(2.0, "Risk Reward")
// ===== EMA =====
ema9 = ta.ema(close, 9)
ema15 = ta.ema(close, 15)
plot(ema9, color=color.green, title="EMA 9")
plot(ema15, color=color.red, title="EMA 15")
// ===== TREND STATE =====
var int trendState = 0
// ===== ATR =====
atr = ta.atr(atrLen)
// ===== Indecision =====
bodySize = math.abs(close - open)
candleRange = high - low
indecision = bodySize <= candleRange * 0.35
// ===== SIGNAL CONDITIONS (NO Engulfing) =====
buySignal =
ema9 > ema15 and
trendState != 1 and
indecision and
close > ema9
sellSignal =
ema9 < ema15 and
trendState != -1 and
indecision and
close < ema9
// ===== UPDATE TREND STATE =====
if buySignal
trendState := 1
if sellSignal
trendState := -1
// ===== SL & TP =====
buySL = close - atr * slMult
buyTP = close + atr * slMult * rr
sellSL = close + atr * slMult
sellTP = close - atr * slMult * rr
// ===== PLOTS =====
plotshape(buySignal, text="BUY", style=shape.labelup, location=location.belowbar, color=color.green, size=size.tiny)
plotshape(sellSignal, text="SELL", style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny)
// ===== VARIABLES =====
var line buySLLine = na
var line buyTPLine = na
var line sellSLLine = na
var line sellTPLine = na
var box buySLBox = na
var box buyTPBox = na
var box sellSLBox = na
var box sellTPBox = na
// ===== BUY SIGNAL =====
if buySignal
// Delete previous
if not na(buySLLine)
line.delete(buySLLine)
line.delete(buyTPLine)
box.delete(buySLBox)
box.delete(buyTPBox)
// Draw lines
buySLLine := line.new(bar_index, buySL, bar_index + 15, buySL, color=color.red, width=2)
buyTPLine := line.new(bar_index, buyTP, bar_index + 15, buyTP, color=color.green, width=2)
// Draw separate boxes
buySLBox := box.new(bar_index, buySL - atr*0.1, bar_index + 15, buySL + atr*0.1, border_color=color.red, bgcolor=color.new(color.red,70))
buyTPBox := box.new(bar_index, buyTP - atr*0.1, bar_index + 15, buyTP + atr*0.1, border_color=color.green, bgcolor=color.new(color.green,70))
// ===== SELL SIGNAL =====
if sellSignal
// Delete previous
if not na(sellSLLine)
line.delete(sellSLLine)
line.delete(sellTPLine)
box.delete(sellSLBox)
box.delete(sellTPBox)
// Draw lines
sellSLLine := line.new(bar_index, sellSL, bar_index + 15, sellSL, color=color.red, width=2)
sellTPLine := line.new(bar_index, sellTP, bar_index + 15, sellTP, color=color.green, width=2)
// Draw separate boxes
sellSLBox := box.new(bar_index, sellSL - atr*0.1, bar_index + 15, sellSL + atr*0.1, border_color=color.red, bgcolor=color.new(color.red,70))
sellTPBox := box.new(bar_index, sellTP - atr*0.1, bar_index + 15, sellTP + atr*0.1, border_color=color.green, bgcolor=color.new(color.green,70))






















