GREEN MILE by Onur 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © onurenginogutcu

//@version=4
study("GREEN MILE by Onur " , overlay = true)

i = input(title="Periyot", type=input.integer, defval=1500, minval=10, maxval=1500)


up = highest (high , i)
down = lowest (low , i)

up1 = down + ((up - down) * 0.382)
up2 = down + ((up - down) * 0.236)


a = plot(up1 , color = color.new(color.green,0) )
b = plot(up2 ,  color = color.new(color.green,0) )
c = plot(down ,  color = color.new(color.green, 0) )

fill(a, b, color = color.new(color.green,90))
fill(b, c,  color = color.new(color.green,65))

