This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |