Skip to content

Instantly share code, notes, and snippets.

// Created by @pequet (https://www.tradingview.com/u/pequet)
// https://github.com/pequet/
// NOT FOR DISTRIBUTION
// @version=3
study(title="Institutional Bias", shorttitle="IB", overlay=true)
src = input(close, type=source, title="Source")
ibBullCond = resolution=='D' ? ema(src, 9) > ema(src, 18) : security(tickerid, 'D', ema(src, 9) > ema(src, 18))
//@version=3
study("3MA")
plot(ema(close, 13), color=red, title="13 SMA")
plot(sma(close, 30), color=yellow, title="30 SMA")
plot(sma(close, 200), color=orange, title="200 SMA")
@thecodingrobot
thecodingrobot / binance-pairs.py
Last active July 8, 2019 03:00
Binance BTC pairs to Tradingview watchlist
import requests
data = requests.get('https://api.binance.com/api/v1/exchangeInfo').json()
symbols = map(lambda x: 'BINANCE:{}'.format(x['symbol']), data['symbols'])
symbols = filter(lambda x: 'BTC' in x, symbols)
print(','.join(symbols))