【问题标题】:PineScript: How to get only last day's OHLC instead of series of previous day OHLC?PineScript:如何仅获取前一天的 OHLC 而不是前一天的 OHLC 系列?
【发布时间】:2020-06-24 11:32:43
【问题描述】:

我只想在 TradingView Pine Editor 上获取最后一天的 OHLC 数据。如果我使用security(),它会给出一系列前一天的数据。

不管当前图表是哪个时间段,我要前一天的 OHLC。

【问题讨论】:

    标签: pine-script


    【解决方案1】:

    用途:

    previousDayO = security(syminfo.tickerid, "D", open[1], lookahead = barmerge.lookahead_on)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-18
      • 1970-01-01
      • 1970-01-01
      • 2016-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多