Suggestion : Use the Script on 5 min Time-frame and 5 Min Expiry for good accuracy.
Copy the Code and Paste The Script :
Rich (BB code):
instrument {
name = "Fluxo Top 5 - Inside Bar Rompido",
overlay = true
}
input_group { "Configurao",
cor_call = input { default = "#FFFF00", type = input.color },
cor_put = input { default = "#FFD700", type = input.color }
}
function inside_bar()
return high[1] < high[2] and low[1] > low[2]
end
function top5_call()
return inside_bar() and close > high[1] and close > open
end
function top5_put()
return inside_bar() and close < low[1] and close < open
end
if top5_call() then
plot_shape(1, "TOP5_CALL", shape_style.diamond, shape_size.large, cor_call, shape_location.belowbar, 0, "CALL")
end
if top5_put() then
plot_shape(1, "TOP5_PUT", shape_style.diamond, shape_size.large, cor_put, shape_location.abovebar, 0, "PUT")
end