SnakeBand
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/
//
//
// © mizarkim
//
//
// Introduce indicators: https://tradingview.com/u/mizarkim/
//
//
//@version=5

indicator(title="SnakeBand", shorttitle="SnakeBand", overlay=true)

upperBand = (ta.highest(52)-ta.lowest(52)) * 0.786 + ta.highest(52)
lowerBand = (ta.lowest(26)-ta.highest(26)) * 0.786 + ta.lowest(26)

p1 = plot(upperBand, offset = 25 , color=#c2185b, linewidth=1, title="Upper Band")
p2 = plot(lowerBand, offset = 25 , color=#59ac59, linewidth=1, title="Lower Band")
