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)
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.