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
版权声明:本文标题:pine script - How to convert a `series` value to a `simple` value when using Pinescript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1744869882a2629565.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论