如何观看平均每日价值交易?
我需要观看特定股票的平均每日价值交易。平均值将是几天的时间,例如10。股票本身的本地货币价值(即:USD,EUR ...)。
此外,还需要对10%的离群值进行修剪,这是从数据集中排除的顶部和底部尾部的数据点的总百分比。
如何通过TradingView实现这一目标?有现有指标吗?还是我需要一个自定义的Pine脚本?如果是这样,您可以指导我通过这样的脚本吗?
谢谢!
编辑:在当前状态中添加我的脚本
//@version=5
source = (volume * ohlc4)
indicator("Average Daily Value Traded", overlay=false, precision=0)
// Daily Value Traded
plot(source, "Daily", color.green, style = plot.style_columns)
// Average Daily Value Traded
length = 20 // How many bars back?
average = ta.sma(source, length)
plot(average, "Average", color.red, 2)
I need to watch on specific stocks for the average daily value traded. The average would be on a period of days, let's say 10. In native monetary value of the stock itself (ie: USD, EUR...).
Also it needs to be trimmed for 10% of the outliers, which is the aggregate percentage of data points from the top and bottom tails that will be excluded from the data set.
How can I achieve that with TradingView? Is there an existing Indicator? Or would I need a custom Pine Script? If so, can you guide me through the basis of such a script?
Thanks!
Edit: adding my script in current state
//@version=5
source = (volume * ohlc4)
indicator("Average Daily Value Traded", overlay=false, precision=0)
// Daily Value Traded
plot(source, "Daily", color.green, style = plot.style_columns)
// Average Daily Value Traded
length = 20 // How many bars back?
average = ta.sma(source, length)
plot(average, "Average", color.red, 2)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论