最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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) // 
发布评论

评论列表(0)

  1. 暂无评论