Skip to content

Instantly share code, notes, and snippets.

View illcrx's full-sized avatar

Randy Pratt illcrx

View GitHub Profile
@illcrx
illcrx / gist:b94b831343f922686cb2c54641f74371
Last active March 29, 2022 17:34
Trading View Multiple Moving Averages
//@version=3
study(title="Real-Moving-Averages", overlay=true)
show_mas = input(title="Show MA's",
type=bool, defval=true)
m_50 = input(title="MA 50",
//@version=4
study("Volume Aggregation", overlay=false, precision=0)
colorRed = #ffa500
colorGreen = #6fff00
colorBlue = #6f00ff
//Variables to get percentage open/close
breadth = high - low //this is the bar range
closeBreadth = close - low // this is the closing
barCloseBreadth = closeBreadth / breadth
sellingWick = barCloseBreadth < .49 // (high-close > close-low)
@illcrx
illcrx / BarTzar
Created August 18, 2018 18:18
Bar analyzing Indicator for TradingView from Real-Crypto
//@version=3
study("BarTzar", overlay=true)
//Variables to get percentage open/close
breadth = high - low //this is the bar range
closeBreadth = close - low // this is the closing
barCloseBreadth = closeBreadth / breadth
//supDayThresh = input(40, minval=0, maxval=100, title="Threshold for support")