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.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
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)