admin管理员组

文章数量:1404923

I'm trying to draw a circle below or above a bar if it is identified as a local high/low. I can make this work with labels but they are ugly, so I'm trying to use plotshape that gives me the output I need. My problem is that I don't know in advance when a high will be present (it is determined by the next low), so I need to use the offset parameter to plotshape. This parameter has to be a simple value so I can't use a variable that I change because reassignment causes its type to be converted from simple to series. So if I do this in my code


var lastMaxHighOffset = 0

if(true) // 

本文标签: pine scriptHow to convert a series value to a simple value when using PinescriptStack Overflow