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)
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.