RicardoSantos

[RS]Fractal Support and Resistance V0

Fractal based SR levels:
lime and red are hidden levels based on "/\" lows and "\/" highs.
green and maroon are based on regular fracals "\/" lows and "/\" highs.
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?
study(title='[RS]Fractal Support and Resistance V0', overlay=true)
h = high
l = low
c = close
hh = h[4] < h[2] and h[3] < h[2] and h[2] > h[1] and h[2] > h
ll = l[4] > l[2] and l[3] > l[2] and l[2] < l[1] and l[2] < l
hl = l[4] < l[2] and l[3] < l[2] and l[2] > l[1] and l[2] > l
lh = h[4] > h[2] and h[3] > h[2] and h[2] < h[1] and h[2] < h
hl_high = hl ? h[2] : c < hl_high[1] ? hl_high[1] : na
lh_low = lh ? l[2] : c > lh_low[1] ? lh_low[1] : na
hh_high = hh ? h[2] : c < hh_high[1] ? hh_high[1] : na
ll_low = ll ? l[2] : c > ll_low[1] ? ll_low[1] : na
//plot(hl ? l[2] : na, color=gray, offset=-2)
//plot(lh ? h[2] : na, color=gray, offset=-2)
plot(hl_high, style=circles, color=red, linewidth=2, offset=-2)
plot(lh_low, style=circles, color=lime, linewidth=2, offset=-2)

plot(hh_high, style=circles, color=maroon, linewidth=3, offset=-2)
plot(ll_low, style=circles, color=green, linewidth=3, offset=-2)