OPEN-SOURCE SCRIPT

Custom Extreme Support & Resistance (ORB Framework)

67
//version=5
indicator("A+ ORB VWAP EMA Master Alerts", overlay=true)

// === USER INPUTS ===
orbHigh = input.float(na, "ORB High (from LuxAlgo)")
orbLow = input.float(na, "ORB Low (from LuxAlgo)")

emaFastLen = 9
emaSlowLen = 21

// === INDICATORS ===
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
vwapVal = ta.vwap(hlc3)

// === CONDITIONS ===
// LONG
longCond =
close > orbHigh and
close > vwapVal and
emaFast > emaSlow

// SHORT
shortCond =
close < orbLow and
close < vwapVal and
emaFast < emaSlow

// === ALERTS ===
alertcondition(
longCond,
title="A+ LONG SETUP – ORB + VWAP + EMA",
message="A+ LONG SETUP CONFIRMED (5m close): ORB High accepted, price above VWAP, EMA 9 > EMA 21. Wait for pullback/continuation."
)

alertcondition(
shortCond,
title="A+ SHORT SETUP – ORB + VWAP + EMA",
message="A+ SHORT SETUP CONFIRMED (5m close): ORB Low accepted, price below VWAP, EMA 9 < EMA 21. Wait for rejection/continuation."
)

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.