Skip to content

Instantly share code, notes, and snippets.

@pequet
Created June 14, 2018 16:50
Show Gist options
  • Save pequet/3cb4e0436a3d3ffd47bd445a76c39415 to your computer and use it in GitHub Desktop.
Save pequet/3cb4e0436a3d3ffd47bd445a76c39415 to your computer and use it in GitHub Desktop.
// 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))
bgcolor(ibBullCond ? white : red, transp=50)
// -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment