Pine Script,使用我的交易视图观察列表作为“列表”
我正在尝试创建一个代码,允许我使用我的监视列表作为“列表”,我对编码相对较新,我“学习”的第一种语言是Python。在 python 中,我可以用这个列表做各种事情。然而,在 Pine 中,我正在尝试构建一个脚本来拉动前一天的收盘价。据我所知,我只能在特定股票上运行该代码来获取该股票的收盘价(如果我不指定哪只股票),或者手动查找股票并要求 Pine 拉收盘价。然而,我的观察列表可能会发生变化,我不想每次都更新我的代码。让我想到的问题是,我是否可以将我的观察列表设置为一个允许我运行循环来拉动收盘价的列表,当然,如果有其他方法可以这样做,我也欢迎。谢谢你!
I am trying to create a code that allows me use my watchlist as a "list", I am relatively new to coding, and the first language I "learned" was python. In python I was able to do various things with said list. However in Pine, I am trying to build a script that will pull the close price of the previous day. As far as I know, I can only run that code on specific stocks to get the close price of that stock(if I don't specify which stock), or manually find the stocks and ask Pine to pull the closing price. However my watch list may change and I would not want to update my code every time. Leading me to the question, can I set my watchlist as a list which allows me to run a loop to pull the close price, of course, if there is another method to do so, I am welcome to that as well. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论