CryptoVolatility

Daily Levels

Daily Levels to measure Volatility in Crypto. Free Indicator.
Remove from Favorite Scripts Add to Favorite Scripts

Comments

hi, could you add me? thx!
Reply
@raikrau, I can no longer manage access to the indicator with just a 'Pro+' subscription, so here is the code for everyone, just open the Pine Script Editor, paste it in, save it and add to your chart. Good luck :)

// Global settings
study(title = "DailyATR", overlay = true)

// Indicator input parameters:
// - ATR moving average period for ATR smoothness;
atrMAPeriod = input(14)
// - ATR timeframe to be used. Allowed values are (case sensitive!) 'D' for daily, 'W' for weekly, 'M' for monthly.
// Others values are also possible, but not tested.
// Note: there's seems to be a bug in Pine Script that not allows to use a preferrable form:
// atrTimeframe = input(title = "ATR timeframe", defval = 'D', options = )
atrTimeframe = input(title = "ATR timeframe", defval = 'D')
//atrTimeframe = input('D', type = resolution)
atrMultiplier = input(title = "ATR multiplier", defval = 1.0)

// ATR of needed period and timeframe
tfATR = security(tickerid, atrTimeframe, atr(atrMAPeriod))

// Open, High, Low and Time of needed period accordingly
tfOpen = security(tickerid, atrTimeframe, open)
tfHigh = security(tickerid, atrTimeframe, high)
tfLow = security(tickerid, atrTimeframe, low)
tfTime = security(tickerid, atrTimeframe, time)
// tfOpen in a new period start bar and NaN in any other bar
tfStart = (change(tfTime) != 0) ? tfOpen : na

// Upper and lower lines
upper = tfATR * atrMultiplier + tfLow
lower = tfHigh - tfATR * atrMultiplier

// Data from a dayly chart - to define where days start
//dayOpen = security(tickerid, 'D', open)
//dayTime = security(tickerid, 'D', time)
// dayOpen in a day start bar and NaN in any other bar
//dayStart = (change(dayTime) != 0) ? dayOpen : na

//www.cryptovolatility.net
// Maximal and minimal price from the period start
maximumClose = na(tfStart) ? max(maximumClose, close) : close
minimumClose = na(tfStart) ? min(minimumClose, close) : close

// Line colors calculation - transparency depends on line broken or not
upperColor = (maximumClose > upper) ? color(green, 0) : color(green, 0)
lowerColor = (minimumClose < lower) ? color(red, 0) : color(red, 0)

// Upper and lower lines draw
plot(upper, color = upperColor, linewidth = 1, title = "High", style = circles, join = false, editable = true)
plot(lower, color = lowerColor, linewidth = 1, title = "Low", style = circles, join = false, editable = true)
// Period open price draw
plot(tfOpen, color = black, linewidth = 1, title = "Day Open", style = circles, join = false, editable = true)

//plotshape(dayStart, text = "test", color = black, size=size.tiny, location = location.abovebar, style = shape.circle, textcolor = black)

//barsBack = na(dayStart) ? barsBack + 1 : 0
//plot(barsBack, color = green, linewidth = 2, style = line)

//www.cryptovolatility.net
//plot(maximumClose, color = red, linewidth = 2, style = line)
//plot(minimumClose, color = green, linewidth = 2, style = line)
Reply
raikrau CryptoVolatility
@CryptoVolatility, Big THX!!!!
Reply
@raikrau, Your welcome :)
Reply
Thank you πŸ‘
Reply
thank you :)
Reply
may i have access please
Reply
@louai, addedπŸ‘
Reply
can I try it?
Reply
CryptoVolatility PavelKalinin
@PavelKalinin, I've added you to the list, you should be able to access it. Enjoy :)
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out