Percents_0,25%
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © jacobfabris

//@version=5
indicator("Percents_0,25%",overlay=true)
pitch = input.float(defval=0.0025,minval=0.0025,maxval=0.0100,step=0.0025)
Nbars = input.int(defval=100,minval=10,maxval=1000,step=1)
sp = request.security(syminfo.tickerid,"D",close)
U(p)=>
    a = nz(sp[1])*(1.0+p)
D(p)=>
    b = nz(sp[1])*(1.0-p)
plot(U(pitch*1),color=color.lime,show_last=Nbars)
plot(U(pitch*2),color=color.lime,show_last=Nbars)
plot(U(pitch*3),color=color.lime,show_last=Nbars)
plot(U(pitch*4),color=color.lime,show_last=Nbars)
plot(U(pitch*5),color=color.lime,show_last=Nbars)
plot(U(pitch*6),color=color.lime,show_last=Nbars)
plot(U(pitch*7),color=color.lime,show_last=Nbars)
plot(U(pitch*8),color=color.lime,show_last=Nbars)

//---
plot(sp,color=color.gray,show_last=Nbars)
//---
plot(D(pitch*1),color=color.orange,show_last=Nbars)
plot(D(pitch*2),color=color.orange,show_last=Nbars)
plot(D(pitch*3),color=color.orange,show_last=Nbars)
plot(D(pitch*4),color=color.orange,show_last=Nbars)
plot(D(pitch*5),color=color.orange,show_last=Nbars)
plot(D(pitch*6),color=color.orange,show_last=Nbars)
plot(D(pitch*7),color=color.orange,show_last=Nbars)
plot(D(pitch*8),color=color.orange,show_last=Nbars)
//---
P1 = input(defval=8)
P2 = input(defval=34)
P3 = input(defval=144)
plot(ta.ema(close,P1),color=color.silver,show_last=Nbars,linewidth=2)
plot(ta.ema(close,P2),color=color.yellow,show_last=Nbars,linewidth=2)
plot(ta.ema(close,P3),color=color.red,show_last=Nbars,linewidth=2)
