34 EMA Bands
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © VishvaP

//@version=5
indicator("EMA Band", overlay = true)

price = close

highShortEMA = ta.ema(high, 34)
lowShortEMA = ta.ema(low, 34)
EMA = ta.ema(close, 34)

bandsHigh = highShortEMA * math.phi
bandsLow = lowShortEMA * math.rphi

shortbandsHigh = ((highShortEMA - EMA) * math.phi) * math.pi + EMA
shortbandsLow = (-(EMA - lowShortEMA) * math.phi) * math.pi + EMA

highP1 = plot(highShortEMA)
lowP1 = plot(lowShortEMA)

//highP2 = plot(bandsHigh)
//lowP2 = plot(bandsLow)

//highP3 = plot(shortbandsHigh)
//lowP3 = plot(shortbandsLow)

fill(highP1, lowP1, color.new(color.black, 75))