简体   繁体   English

Pine Editor Trading 查看全局变量,每个柱一个值

[英]Pine Editor Trading View global variables one value for every bar

Is there a option to create a variable what holds the same value over all bars.是否可以选择创建一个变量,该变量在所有柱上都具有相同的值。 I would like to calculate a value in on a bar and use it on the next bar.我想计算一个柱上的值并在下一个柱上使用它。

See more about var modifier, it allows to create one instance of variable for script:查看有关var修饰符的更多信息,它允许为脚本创建一个变量实例:

//@version=4
study("My Script")
var v = close
// plots close value of the first bar
plot(v)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM