如何解决如何在 Pine Script 中的特定蜡烛上绘制自动框?
阻力区域应为方框(三角形)
指标检测最高红色蜡烛的主要思想,上面的故事超过蜡烛长度的 50%
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TEST
//@version=4
study("--- TEST --- ",overlay=true)
redbar = close < open
greenbar = close > open
low_tale = min(close,open) - low
upper_tale = high - max(open,close)
candle_length = high - low
hiLen = input(title="High Length",type=input.integer,defval=25)
hiHighs = highest(high,hiLen)[1]
loLen = input(title="Low Length",defval=25)
loLows = lowest(low,loLen)[1]
if redbar and upper_tale > ( 0.5 * candle_length ) and high > hiHighs
label.new(bar_index,high,"Short",yloc = yloc.abovebar,color = color.red,style = label.style_arrowdown)
现在显示的演示图像
这就是我想做的
**当然盒子的顶部是目标蜡烛的高点,盒子的低点是目标蜡烛的低点
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。