เครื่องมือนี้แสดงอะไร
- 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.
เนื้อหานี้จัดทำเพื่อการศึกษาและให้ข้อมูลทั่วไปเท่านั้น ไม่ใช่คำแนะนำด้านการลงทุน การเงิน กฎหมาย หรือภาษี และไม่ใช่การเสนอขายหรือชักชวนให้ซื้อขาย Forex และ CFD มีความเสี่ยงสูงและอาจสูญเสียเงินทั้งหมด ผู้ใช้ต้องตรวจสอบกฎหมาย ใบอนุญาต เงื่อนไขผลิตภัณฑ์ และความเหมาะสมด้วยตนเองก่อนตัดสินใจ ข้อมูลอาจเปลี่ยนแปลงและ Chartara ไม่รับประกันความถูกต้อง ความครบถ้วน หรือผลลัพธ์ การตัดสินใจและผลกำไรหรือขาดทุนเป็นความรับผิดชอบของผู้ใช้ภายใต้ขอบเขตที่กฎหมายอนุญาต