ceyhun

Super Trend

Super Trend
Favori Komutlardan Çıkart Favori Komutlara Ekle
study(title="Super Trend", shorttitle="EST", overlay=true)

fastLength = input(8, minval=1)
slowLength = input(16,minval=1)
signalLength=input(11,minval=1)

fastMA = ema(close, fastLength)
slowMA = ema(close, slowLength)
macd = fastMA - slowMA
signal = sma(macd, signalLength)
pos = iff(signal < macd , 1,
iff(signal > macd, -1, nz(pos, 0)))
barcolor(pos == -1 ? red: pos == 1 ? green : blue)



lenadx = input(14, minval=1, title="DI Length")
lensig = input(14, title="ADX Smoothing", minval=1, maxval=50)
limadx = input(18, minval=1, title="ADX MA Active")

up = change(high)
down = -change(low)
trur = rma(tr, lenadx)
plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, lenadx) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, lenadx) / trur)
sum = plus + minus
adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), lensig)

macol = adx > limadx and plus > minus ? lime : adx > limadx and plus < minus ? red :black

len = input(233, minval=1, title="Length")
src = input(close, title="Source")
out = sma(src, len)
plot(out, color=macol, title="233&DMİ", linewidth= 4)



len1 = input(14, minval=1, title="Length for Stochastic")
smoothK = input(3, minval=1, title="SmoothK for Stochastic")
smoothD = input(3, minval=1, title="SmoothD for Stochastic")
upLine = input(80, minval=50, maxval=90, title="Upper Line Value?")
lowLine = input(20, minval=10, maxval=50, title="Lower Line Value?")

sbc = input(false, title="Show Price Bar highlight When Stoch is Above/Below High/Low Lines?")
sbh = input(true, title="Show Background highlight When Stoch is Above/Below High/Low Lines?")
sch = input(false, title="Show Back Ground Highlights When Stoch Cross - Strict Criteria - K Greater/LesThan High/Low Line - Crosses D ?")
sl = input(false, title="Show 'B' and 'S' Letters When Stoch Crosses High/Low Line & D?")
sac = input(false, title="Show Back Ground Highlights When Stoch Cross - Any Cross?")
sacl = input(false, title="Show 'B' and 'S' Letters When Stoch Crosses - Any Cross?")

k = sma(stoch(close, high, low, len1), smoothK)
d = sma(k, smoothD)

aboveLine = k > upLine ? 1 : 0
belowLine = k < lowLine ? 1 : 0

crossUp = (k < d and k < lowLine) and (k > d) ? 1 : 0
crossDn = (k > d and k > upLine) and (k < d) ? 1 : 0

crossUpAll = (k < d and k > d) ? 1 : 0
crossDownAll = (k > d and k < d) ? 1 : 0

bgcolor(sbh and aboveLine ? #00FFFF : na, transp=70)
bgcolor(sbh and belowLine ? black : na, transp=70)
bgcolor(sch and crossUp ? lime : na, transp=40)
bgcolor(sch and crossDn ? red : na, transp=40)

bgcolor(sac and crossUpAll ? lime : na, transp=40)
bgcolor(sac and crossDownAll ? red : na, transp=40)

overBought() => sbc and aboveLine
overSold() => sbc and belowLine

barcolor(overBought() ? orange : overSold() ? fuchsia : na)

plotchar(sl and crossUp ? crossUp : na, title="Buy Signal Strict Criteria", char='B', location=location.belowbar, color=lime, transp=0, offset=0)
plotchar(sl and crossDn ? crossDn : na,
Cevap Gönder
TR Türkçe
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Kurallarımız Moderatörler Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Hisse Senetleri Grafik Çizim Kitaplığı Yeni Özellik Talebi Blog ve Haberler SSS Yardım ve Viki Twitter
Profil Profil Ayarları Hesap ve Ödemeler Geribildirim gönderin Yayınlanmış Fikirler Takip Edenler Takip Ediliyor Özel Mesajlar Sohbet Çıkış