OPEN-SOURCE SCRIPT
Multi-School Signal Indicator (Text Only)

//version=5
indicator("Multi-School Signal Indicator (Text Only)", overlay=true)
// === المتوسطات (Trend) ===
maShort = ta.sma(close, 9)
maLong = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
trendUp = maShort > maLong and close > ma200
trendDown = maShort < maLong and close < ma200
// === الزخم (RSI) ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم (Volume) ===
vol = volume
volMA = ta.sma(vol, 20)
volHigh = vol > volMA
// === شموع ابتلاعية ===
bullishEngulf = close[1] < open[1] and close > open and close > open[1] and open < close[1]
bearishEngulf = close[1] > open[1] and close < open and close < open[1] and open > close[1]
// === CHOCH (بسيط) ===
chochUp = close > high[1] and low > low[1]
chochDown = close < low[1] and high < high[1]
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bollingerBreakUp = close > upper
bollingerBreakDown = close < lower
// === دعم ومقاومة ===
support = ta.lowest(close, 20)
resistance = ta.highest(close, 20)
nearSupport = math.abs(close - support) / close < 0.01
nearResistance = math.abs(close - resistance) / close < 0.01
// === فيبوناتشي مبسط ===
fibLevel1 = close >= ta.valuewhen(close > maLong, close * 0.618, 0)
fibLevel2 = close <= ta.valuewhen(close < maLong, close * 0.382, 0)
// === إشارات الدخول ===
buyConditions = trendUp and rsiBull and volHigh and bullishEngulf and chochUp and bollingerBreakUp and nearSupport and fibLevel1
sellConditions = trendDown and rsiBear and volHigh and bearishEngulf and chochDown and bollingerBreakDown and nearResistance and fibLevel2
// === رسم الاختصارات بدون ألوان ===
if buyConditions
label.new(bar_index, low, "BUY", style=label.style_label_up, textcolor=color.black, size=size.small, textalign=text.align_center)
if sellConditions
label.new(bar_index, high, "SELL", style=label.style_label_down, textcolor=color.black, size=size.small, textalign=text.align_center)
indicator("Multi-School Signal Indicator (Text Only)", overlay=true)
// === المتوسطات (Trend) ===
maShort = ta.sma(close, 9)
maLong = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
trendUp = maShort > maLong and close > ma200
trendDown = maShort < maLong and close < ma200
// === الزخم (RSI) ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم (Volume) ===
vol = volume
volMA = ta.sma(vol, 20)
volHigh = vol > volMA
// === شموع ابتلاعية ===
bullishEngulf = close[1] < open[1] and close > open and close > open[1] and open < close[1]
bearishEngulf = close[1] > open[1] and close < open and close < open[1] and open > close[1]
// === CHOCH (بسيط) ===
chochUp = close > high[1] and low > low[1]
chochDown = close < low[1] and high < high[1]
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bollingerBreakUp = close > upper
bollingerBreakDown = close < lower
// === دعم ومقاومة ===
support = ta.lowest(close, 20)
resistance = ta.highest(close, 20)
nearSupport = math.abs(close - support) / close < 0.01
nearResistance = math.abs(close - resistance) / close < 0.01
// === فيبوناتشي مبسط ===
fibLevel1 = close >= ta.valuewhen(close > maLong, close * 0.618, 0)
fibLevel2 = close <= ta.valuewhen(close < maLong, close * 0.382, 0)
// === إشارات الدخول ===
buyConditions = trendUp and rsiBull and volHigh and bullishEngulf and chochUp and bollingerBreakUp and nearSupport and fibLevel1
sellConditions = trendDown and rsiBear and volHigh and bearishEngulf and chochDown and bollingerBreakDown and nearResistance and fibLevel2
// === رسم الاختصارات بدون ألوان ===
if buyConditions
label.new(bar_index, low, "BUY", style=label.style_label_up, textcolor=color.black, size=size.small, textalign=text.align_center)
if sellConditions
label.new(bar_index, high, "SELL", style=label.style_label_down, textcolor=color.black, size=size.small, textalign=text.align_center)
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。