使用 Pine Script 是否可以将某些文件中的一些外部数据添加到 TradingView 图表? [英] Using Pine Script is it possible to add some external data from some file to the TradingView chart?

查看:75
本文介绍了使用 Pine Script 是否可以将某些文件中的一些外部数据添加到 TradingView 图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的想法是,我想查看未平仓合约数据以及价格图表,以便在图表模式旁边还可以看到未平仓合约中的操作发生的位置.

What I have in mind is that I would like to have a view of Open Interest data along with the price chart so that alongside chart patterns would also get the view of where the action in Open Interest is happening.

NSE 印度每天提供的文件包含所有收盘价和 F&O 数据的摘要,其中包含我想添加到图表中的详细信息.

Everyday NSE India provides file which has summary of all the closing prices and F&O data which has details of what I would like to add to the chart.

是否可以编写 Pine Script 代码以从外部文件中读取并沿垂直轴显示此未平仓合约数据,类似于显示交易量概况的方式?

Is it possible to write a Pine Script code to read from an external file and display this Open Interest data along the vertical axis similar to how volume profile is displayed?

实时读取未平仓合约将是最佳方案,但由于 TradingView 没有 NSE India 的 F&O 数据,即使显示前一天的数据也能达到目的.

Live reading of Open Interest would be the best scenario but since TradingView doesn’t have F&O data for NSE India, even getting to display previous day’s data would serve the purpose.

我尝试查看 input() 函数,但看起来它要么获取与资产类别相关的直接数据,要么可以与任何计算后派生的数据一起使用..但我无法弄清楚如何使用它访问来自外部来源的数据.

I tried looking at the input() function but looks like it either takes the direct data related to an asset class or can be used with data derived after any calculation.. but I am unable to figure out how to use it to access data from external sources.

谢谢

推荐答案

不,不能在 Pine 脚本中导入数据,而不是通过电视提供的提要提供的数据.如果您每天只需要几个新值,您可以在脚本的输入中手动输入值并绘制它们.

No it's not possible to import data in Pine scripts other that what is available through TV-supplied feeds. You could enter the values manually in your script's inputs and plot them if you only need a few new values every day.

如果您想在系列中导入更大的一组值,请参阅这项技术.

If you want to import a larger set of values in a series, see this technique.

披露:此答案中的链接指向 PineCoders 常见问题解答条目.我是 PineCoders 社区的成员,我很可能写了那个 FAQ 条目.PineCoders 是由 TradingView 支持的 Pine 编码志愿者小组,PineCoders 的网站具有严格的教育意义.TradingView 和 PineCoders 都不会从向 pinecoders.com 发送流量中获得经济利益,并且该网站不包含附属/推荐链接.

这篇关于使用 Pine Script 是否可以将某些文件中的一些外部数据添加到 TradingView 图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆