OPEN-SOURCE SCRIPT

Custom Extreme Support & Resistance (ORB Framework)

31
//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."
)

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。