Công cụ hiển thị
- 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.
Nội dung chỉ nhằm mục đích giáo dục và cung cấp thông tin chung, không phải tư vấn đầu tư, tài chính, pháp lý hoặc thuế. Forex và CFD có rủi ro cao và có thể làm mất toàn bộ số tiền. Hãy tự kiểm tra pháp luật, giấy phép, điều khoản và mức độ phù hợp trước khi quyết định. Chartara không bảo đảm tính chính xác, đầy đủ hoặc kết quả.