【问题标题】:plot hline at high of previous candle pine editor (trading view)在之前的蜡烛松编辑器(交易视图)的高处绘制 hline
【发布时间】:2017-12-26 11:14:11
【问题描述】:

我不知道如何在之前的蜡烛松树的高处绘制一条线。要绘制价格为 10 的 hline,我可以做 hline(10),并获得前一根蜡烛的高点,我可以做 high[1],但这不起作用 hline(high[1])。也试过 hline(high[1], trackprice=true)

【问题讨论】:

    标签: pine-script indicator


    【解决方案1】:

    知道了

    plot(high[1], trackprice=true, offset=-99999)
    

    【讨论】:

      【解决方案2】:
      //@version=2
      study("Horizontal line", overlay=true)
      plot(high[1], trackprice=true, offset=-9999)
      // trackprice=true plots horizontal line on high[1]
      // offset=-9999 hides the plot
      plot(close, color=#FFFFFFFF) // forces to show study
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-11-28
        • 1970-01-01
        • 2021-06-04
        • 2022-08-14
        • 2021-02-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多