SMC
SMC
0
at https://mozilla.org/MPL/2.0/
// © World_of_Indicators
//~~ Modified by World of indicators on 19/9/24
//@version=5
indicator("Structure mapping v2.0", "Structure v2.0", true,
max_bars_back = 5000, max_labels_count = 500, max_lines_count = 500)
//color
color transp = color.new(color.gray,100)
//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 low < L
L := low
Lbar := bar_index
if low < idmB
idmB := low
idmB_bar := bar_index
if low < lastL
lastL := low
lastLbar := bar_index
if low < lastLL
lastLL := low
lastLLbar := bar_index
//#endregion
//@version=5
// created by melihguler
M1 = ta.ema(close, len1)
M2 = ta.ema(close, len2)
M3 = ta.ema(close, len3)