本文介绍了绘制/叠加基本数据“EPS"交易视图版本 4 中的价格图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
tradeview.com 是否允许
- 收益"等基本数据在左侧 y 轴和价格"上右侧 y 轴上的数据?
希望叠加eps"在价格图表上但在
您可以在 财务功能和衡量标准.
您可以在帮助中心找到financial()
函数的financial_id 列表
Does tradingview.com allow
- fundamental data like "earnings" on the left y axis and "price" data on the right y axis?
Looking to overlay "eps" on a price chart but can't see anything in the documentation that allows this. want to recreate the image below
reference picture: https://ibb.co/3B9Dtkd
解决方案
Yes, this is possible with:
- The financial() function to get the data.
- The scale parameterin the study() function
Example code that plots the Basic EPS of the current ticker on the left scale:
//@version=4
study("Earnings", overlay=true, scale=scale.left)
eps = financial(syminfo.tickerid, financial_id="EARNINGS_PER_SHARE_BASIC", period="TTM")
plot(eps)
This yields the following result on AAPL, showing EPS on the left scale and price on the right scale.
You can read more about it in Financial Functions and Metrics to Pine.
You can find a list of financial_id's for the financial()
function in Help Center
这篇关于绘制/叠加基本数据“EPS"交易视图版本 4 中的价格图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!