pine-script - 如何在交易视图上的自定义变量系列上方绘制形状
问题描述
我想在一个单独的窗格中的指标上方绘制一个 shape.triangleup。
cpc = 基于 RSI 的指标系列
hhv = highest(cpc, 20)
hhvcross = cpc > hhv[1]
plotshape(hhvcross, style=shape.triangleup, location=location.abovebar, color=purple)
这段代码以这样一种方式缩放绘图,我只能看到箭头和空白。
我尝试了 location.absolute,但不明白它也没有工作。
我想看到在 cpc 线上方绘制的 triangleup。
谢谢
解决方案
cpc > hhv[1]
isn't capturing the cross, it's capturing that cpc is greater than hhv[1]. If your trying to put your shape at the place where they cross try crossover(cpc,hhv)
推荐阅读
- angularjs - ng2-smart-table 显示对象列表
- python - Seaborn 热图上 y 轴刻度的垂直对齐
- c# - Visual Studio Build 似乎不使用当前项目
- bash - shell 脚本在不同的操作系统中使用设置“-x”显示不同的结果
- r - 在非连续时间序列中找到某个时间范围内的最大值
- ios - 属性字符串下划线不适用于外部字体
- azure - Azure IoT 中心:使用 MQTT 和 SDK 的云到设备消息传递
- ibm-streams - 如何获取 IBM Streams 工具包更新?
- android - onRequestPermissionsResult() 在 Activity 而非 Fragment 中触发
- python - 通过列索引获取值,其中行是特定值