OPEN-SOURCE SCRIPT

Custom Extreme Support & Resistance (ORB Framework)

54
//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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。