pine script - How to convert a `series` value to a `simple` value when using Pinescript? - Stack Overflow

I'm trying to draw a circle below or above a bar if it is identified as a local highlow. I can ma

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) // 

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744869884a4598197.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信