You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

TradingView图表:鼠标点击蜡烛查看影线高低价方法咨询

TradingView蜡烛图查看最高价/最低价方法

可以直接通过鼠标操作查看目标蜡烛的最高价和最低价(对应上下影线的极值),具体方式有两种:

  • 基础数据窗口查看
    把鼠标悬停或直接点击目标蜡烛,图表右上角的**数据窗口(Data Window)**会自动展示该蜡烛的全量数据,其中High字段就是该蜡烛曾触及的最高价(上影线顶端),Low字段就是最低价(下影线底端),完全匹配你的需求。

  • 自定义图表标注(可选)
    如果需要更直观的可视化显示,可通过简单的Pine Script脚本实现点击蜡烛后直接在图表上标注高低价数值,示例代码如下:

    //@version=5
    indicator("点击显示高低价", overlay=true)
    
    var float lastHigh = na
    var float lastLow = na
    
    if barstate.islast
        if input.click
            lastHigh := high[bar_index - barstate.isreplay ? 0 : 1]
            lastLow := low[bar_index - barstate.isreplay ? 0 : 1]
    
    label.new(bar_index, lastHigh, str.tostring(lastHigh), color=color.green, textcolor=color.white)
    label.new(bar_index, lastLow, str.tostring(lastLow), color=color.red, textcolor=color.white)
    

    将代码粘贴到TradingView的Pine编辑器并添加到图表后,点击任意蜡烛即可在对应位置显示高低价数值。

内容的提问来源于stack exchange,提问作者oneplus1978

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 23:55:14