Yang ditampilkan
- Visualises one measurable chart condition.
- Inputs can be changed for your own test.
- The full Pine Script code is visible.
Highlights confirmed swing highs and lows for structure review.
//@version=6
indicator("Chartara — Market Structure Map", overlay=true)
left=input.int(3,"Pivot left",minval=1)
right=input.int(3,"Pivot right",minval=1)
ph=ta.pivothigh(high,left,right)
pl=ta.pivotlow(low,left,right)
plotshape(not na(ph),title="Swing high",style=shape.triangledown,location=location.abovebar,offset=-right,color=color.new(color.red,5),size=size.tiny)
plotshape(not na(pl),title="Swing low",style=shape.triangleup,location=location.belowbar,offset=-right,color=color.new(color.teal,5),size=size.tiny)
var float lastHigh=na
var float lastLow=na
if not na(ph)
lastHigh:=ph
if not na(pl)
lastLow:=pl
plot(lastHigh,"Last confirmed high",color=color.new(color.red,45),style=plot.style_stepline)
plot(lastLow,"Last confirmed low",color=color.new(color.teal,45),style=plot.style_stepline)
Compare the environment this tool depends on before opening an account.
Konten ini hanya untuk edukasi dan informasi umum, bukan nasihat investasi, keuangan, hukum, atau pajak dan bukan penawaran untuk bertransaksi. Forex dan CFD berisiko tinggi dan seluruh dana dapat hilang. Periksa hukum, izin, ketentuan produk, dan kesesuaian secara mandiri sebelum mengambil keputusan. Chartara tidak menjamin keakuratan, kelengkapan, atau hasil.