OPEN-SOURCE SCRIPT
Custom Extreme Support & Resistance (ORB Framework)

//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."
)
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 الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.