我正在尝试在松树脚本中的3个特定日期打印三角形形状。我无法在以下任何日期打印形状。
//@version=4`
study(title = "Mercury Pivot", shorttitle="Mercury Pivot", overlay =true)`
//These are the dates which i want the Triangle to be printed below
t1 = timestamp(2017, 11, 1, 0, 0) // 1st of November 2017
t2 = timestamp(2018, 11, 1, 0, 0) // 1st of November 2018
t3 = timestamp(2019, 11, 1, 0, 0) // 1st of November 2019
//If the time is equal to the above date, print/display a triangle below the date with the text
"pivot"
if time = t1
plotshape(style=shape.triangleup, location=location.belowbar, text="PIVOT")
if time = t2
plotshape(style=shape.triangleup, location=location.belowbar, text="PIVOT")
if time = t3
plotshape(style=shape.triangleup, location=location.belowbar, text="PIVOT")