Speculative Growth Map (FOR BITCOIN)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © xxMubeen

//@version=5
indicator("Speculative Growth Map", overlay=true)
t = input.int(3, minval=0, title="Deviations")
s = input.int(12, minval=0, title="Length")
d = input.int(2, minval= 0, title="Smoothing")

l1 = ta.ema(close[t]*1.01, s)
l2 = ta.ema(close[t]*1.05, s)
l3 = ta.ema(close[t]*1.075, s)
l4 = ta.ema(close[t]*1.10, s)

s1 = ta.ema(close[t]*0.99, s)
s2 = ta.ema(close[t]*0.95, s)
s3 = ta.ema(close[t]*0.925, s)
s4 = ta.ema(close[t]*0.90, s)

var a = s4
if low < s4
    a := low[d]
    
var b = l4
if high > l4
    b := high[d]
    
ab = (a+b)*0.40
ba = (a+b)*0.80

plot (l1, color=color.red)
plot (l2, color=color.red)
plot (l3, color=color.red)
plot (l4, color=color.red)
plot (s1, color=color.green)
plot (s2, color=color.green)
plot (s3, color=color.green)
plot (s4, color=color.green)
plot (ab, color=color.yellow)
plot (ba, color=color.yellow)