sar kullanarak...
bölge yapma...
PHP Code:
// © OmegaTools
//@version=5
indicator("Parabolic SAR Zone", overlay = true)
start = input.float(0, "Starting value")
inc = input.float(0.01, "Increment")
max = input.float(1, "Max Value")
width = input.float(1.00, "Zone width")
atrs = ta.atr(100) * width
sarone = ta.sar(start, inc, max)
sarzone = if close > sarone
sarone + atrs
else if close < sarone
sarone - atrs
sartwo = ta.sar(start/2, inc/2, max/2)
p1 = plot(sarone, "First SAR", color = close > sarone ? #2962ff00 : #e91e6200, style=plot.style_circles)
p3 = plot(sarzone, "Zone line", color = close > sarone ? #2962ff00 : #e91e6200, style=plot.style_circles)
fill(p1, p3, color = close > sarone ? color.new(#2962ff, 80) : color.new(#e91e63, 80))
plot(sartwo, "Second SAR", color = close > sartwo ? color.new(#2962ff, 100) : color.new(#e91e62, 100), style=plot.style_linebr)