ماذا يعرض
- 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.
هذا المحتوى للتثقيف والمعلومات العامة فقط، وليس نصيحة استثمارية أو مالية أو قانونية أو ضريبية. ينطوي تداول الفوركس وعقود الفروقات على مخاطر مرتفعة وقد يؤدي إلى خسارة كامل الأموال. تحقّق بشكل مستقل من القانون والتراخيص والشروط والملاءمة قبل اتخاذ أي قرار. لا تضمن Chartara الدقة أو الاكتمال أو النتائج.