PROTECTED SOURCE SCRIPT
MACD Hook + RSI + Breakout + EMA

//version=5
indicator("MACD Hook + RSI + Breakout + EMA + ADX", overlay=true)
// ===== MACD Hook =====
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
macdHook = macdLine > signalLine and ta.crossover(macdLine, signalLine)
// ===== RSI =====
rsi = ta.rsi(close, 14)
rsiCondition = rsi > 50
// ===== Breakout =====
highestHigh = ta.highest(high, 5)
breakout = close > highestHigh[1]
// ===== EMA Confirmation =====
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
emaCondition = close > ema20 and ema20 > ema50
// ===== ADX =====
adx = ta.adx(14)
adxCondition = adx > 20
// ===== Bullish Candle =====
bullishCandle = close > open
// ===== Entry Condition =====
entryLong = macdHook and rsiCondition and breakout and emaCondition and adxCondition and bullishCandle
// ===== Plot Signal on Chart =====
plotshape(entryLong, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
// ===== Alert Condition =====
alertcondition(entryLong, title="Buy Alert", message="🚨 إشارة شراء مؤكدة (MACD + RSI + Breakout + EMA + ADX)")
indicator("MACD Hook + RSI + Breakout + EMA + ADX", overlay=true)
// ===== MACD Hook =====
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
macdHook = macdLine > signalLine and ta.crossover(macdLine, signalLine)
// ===== RSI =====
rsi = ta.rsi(close, 14)
rsiCondition = rsi > 50
// ===== Breakout =====
highestHigh = ta.highest(high, 5)
breakout = close > highestHigh[1]
// ===== EMA Confirmation =====
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
emaCondition = close > ema20 and ema20 > ema50
// ===== ADX =====
adx = ta.adx(14)
adxCondition = adx > 20
// ===== Bullish Candle =====
bullishCandle = close > open
// ===== Entry Condition =====
entryLong = macdHook and rsiCondition and breakout and emaCondition and adxCondition and bullishCandle
// ===== Plot Signal on Chart =====
plotshape(entryLong, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
// ===== Alert Condition =====
alertcondition(entryLong, title="Buy Alert", message="🚨 إشارة شراء مؤكدة (MACD + RSI + Breakout + EMA + ADX)")
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。