“关闭”的来源与20m的安全性('60',close)和60m的关闭性不同

问题描述 投票:0回答:1

20m图表上的代码

// © david03kimo

//@version=4
study("MTM close")
hclose=security(syminfo.ticker, '60',close)
plot(hclose)

60m图表上的代码

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © david03kimo

//@version=4
study("MTM close")

plot(close)

并将结果输出到图形中,我可以检查收盘价不一致。

enter image description here

pine-script
1个回答
0
投票

这是因为您在60m图表上的11:00柱收盘价是12:00的收盘价,在20m柱的11:40尚未收盘,所以该柱显示最后确认的关闭,即在11:00结束的10:00条之一。

© www.soinside.com 2019 - 2024. All rights reserved.