Professional Documents
Culture Documents
0 at
https://mozilla.org/MPL/2.0/
// © islammessaoudi
////////////////////////////////////////
////////////////////////////////////////
//@version=5
indicator("stracturre.x", "islammessaoudi", true,
max_bars_back = 5000, max_labels_count = 500, max_lines_count = 500)
//color
color transp = color.new(#59ff62, 5)
//drawing options
equalHL = input.bool(0,"Use equal H/L", "To calculate valid pullbacks and minor
structure", group = "Calculation method")
//#endregion
//Bar color
ba_color = if showSCOB
if low[1] == puDn and low >= low[1] and close > high[1] and close[1] > low[2]
scobUp
else if high[1] == puUp and high <= high[1] and close < low[1] and close[1] <
high[2]
scobDn
else if showbarcolor
isCocUp?bull:bear
else
na
barcolor(ba_color,-1)
//#endregion
if equalHL
if high >= top
puUp := high
puUpbar := bar_index
if low <= bot
puDn := low
puDnbar := bar_index
top := high
bot := low
if high >= top
top := high
bot := low
else
if high > top
puUp := high
puUpbar := bar_index
if low < bot
puDn := low
puDnbar := bar_index
top := high
bot := low
if high > top
top := high
bot := low
//#endregion
//#endregion