Emirindicator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © EmirhanDuzgun

//@version=5
indicator(title = "StopLossCal",overlay = true)

Kalinlik = input.int(defval= 1,title = "Kalınlık")


atrstop =  open - (ta.atr(14)*1.7)
atrenk = input.color(defval=color.red,title="Stop Rengi",group="Renkler")
plot(atrstop,color=atrenk,title="Stop Loss",linewidth=Kalinlik)

atr1 =  open + (ta.atr(14)*1.96)
atrenk1 = input.color(defval=color.blue,title="Stopu Girişe Çek",group="Renkler")
rr1 = plot(atr1,color=atrenk1,title="Stopu Girişe Çek",linewidth=Kalinlik)

atr2 =  open + (ta.atr(14)*2.97)
atrenk2 = input.color(defval=color.white,title="Take Profit",group="Renkler")
rr2 = plot(atr2,color=atrenk2,title="Take Profit",linewidth=Kalinlik)

fill(rr1,rr2,color=color.new(color.green,70))
