Pine script PineScript:如何只获得最后一天';s OHLC而不是前一天OHLC的系列?
我只想在TradingView Pine Editor上获取最后一天的OHLC数据。如果我使用Pine script PineScript:如何只获得最后一天';s OHLC而不是前一天OHLC的系列?,pine-script,Pine Script,我只想在TradingView Pine Editor上获取最后一天的OHLC数据。如果我使用security()它会给出前一天的一系列数据 无论当前图表是哪一个时间段,我都想要前一天的OHLC。使用: previousDayO = security(syminfo.tickerid, "D", open[1], lookahead = barmerge.lookahead_on)
security()
它会给出前一天的一系列数据
无论当前图表是哪一个时间段,我都想要前一天的OHLC。使用:
previousDayO = security(syminfo.tickerid, "D", open[1], lookahead = barmerge.lookahead_on)