OPEN-SOURCE SCRIPT
Setup Cripto EMA + Volume

//version=5 indicator("Sinais Multi-Cripto – EMA+Volume (BTC/ETH/BNB/SOL/XRP)", overlay=false)
// Inputs emaFast = input.int(50, "EMA Curta") emaSlow = input.int(200, "EMA Longa") emaPull = input.int(20, "EMA Pullback") volLen = input.int(20, "Média Volume")
symBTC = input.symbol(defval="BINANCE:BTCUSDT", title="BTC") symETH = input.symbol(defval="BINANCE:ETHUSDT", title="ETH") symBNB = input.symbol(defval="BINANCE:BNBUSDT", title="BNB") symSOL = input.symbol(defval="BINANCE:SOLUSDT", title="SOL") symXRP = input.symbol(defval="BINANCE:XRPUSDT", title="XRP")
f_sig(sym) => c = request.security(sym, timeframe.period, close) v = request.security(sym, timeframe.period, volume) e50 = ta.ema(c, emaFast) e200 = ta.ema(c, emaSlow) e20 = ta.ema(c, emaPull) vma = ta.sma(v, volLen) long = (e50 > e200) and (c > e20) and (v > vma) short = (e50 < e200) and (c < e20) and (v > vma) [long, short]
[btcL, btcS] = f_sig(symBTC) [ethL, ethS] = f_sig(symETH) [bnbL, bnbS] = f_sig(symBNB) [solL, solS] = f_sig(symSOL) [xrpL, xrpS] = f_sig(symXRP)
// Exibição plotchar(btcL, title="BTC Long", char="▲", location=location.top) plotchar(btcS, title="BTC Short", char="▼", location=location.bottom) plotchar(ethL, title="ETH Long", char="▲", location=location.top) plotchar(ethS, title="ETH Short", char="▼", location=location.bottom) plotchar(bnbL, title="BNB Long", char="▲", location=location.top) plotchar(bnbS, title="BNB Short", char="▼", location=location.bottom) plotchar(solL, title="SOL Long", char="▲", location=location.top) plotchar(solS, title="SOL Short", char="▼", location=location.bottom) plotchar(xrpL, title="XRP Long", char="▲", location=location.top) plotchar(xrpS, title="XRP Short", char="▼", location=location.bottom)
// Inputs emaFast = input.int(50, "EMA Curta") emaSlow = input.int(200, "EMA Longa") emaPull = input.int(20, "EMA Pullback") volLen = input.int(20, "Média Volume")
symBTC = input.symbol(defval="BINANCE:BTCUSDT", title="BTC") symETH = input.symbol(defval="BINANCE:ETHUSDT", title="ETH") symBNB = input.symbol(defval="BINANCE:BNBUSDT", title="BNB") symSOL = input.symbol(defval="BINANCE:SOLUSDT", title="SOL") symXRP = input.symbol(defval="BINANCE:XRPUSDT", title="XRP")
f_sig(sym) => c = request.security(sym, timeframe.period, close) v = request.security(sym, timeframe.period, volume) e50 = ta.ema(c, emaFast) e200 = ta.ema(c, emaSlow) e20 = ta.ema(c, emaPull) vma = ta.sma(v, volLen) long = (e50 > e200) and (c > e20) and (v > vma) short = (e50 < e200) and (c < e20) and (v > vma) [long, short]
[btcL, btcS] = f_sig(symBTC) [ethL, ethS] = f_sig(symETH) [bnbL, bnbS] = f_sig(symBNB) [solL, solS] = f_sig(symSOL) [xrpL, xrpS] = f_sig(symXRP)
// Exibição plotchar(btcL, title="BTC Long", char="▲", location=location.top) plotchar(btcS, title="BTC Short", char="▼", location=location.bottom) plotchar(ethL, title="ETH Long", char="▲", location=location.top) plotchar(ethS, title="ETH Short", char="▼", location=location.bottom) plotchar(bnbL, title="BNB Long", char="▲", location=location.top) plotchar(bnbS, title="BNB Short", char="▼", location=location.bottom) plotchar(solL, title="SOL Long", char="▲", location=location.top) plotchar(solS, title="SOL Short", char="▼", location=location.bottom) plotchar(xrpL, title="XRP Long", char="▲", location=location.top) plotchar(xrpS, title="XRP Short", char="▼", location=location.bottom)
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.