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)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.