Tradingview Pine 脚本图阶梯图 [英] Tradingview Pine script plot staircase chart

查看:104
本文介绍了Tradingview Pine 脚本图阶梯图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想绘制在交易视图中不可用的收益质量.但是,我得到的不是楼梯图.如何绘制楼梯图?我试过 plot 函数中的 style 选项和财务函数中的 gaps 选项,但没有运气.

I want to plot the quality of earnings which is not available in the trading view. However, what I got is not the staircase chart. How can I plot the staircase chart? I have tried the style option in plot function and gaps option in the financial function but no luck.

study("Quality of earnings")

CFO = financial(syminfo.tickerid, "CASH_F_OPERATING_ACTIVITIES", "FY")
net = financial(syminfo.tickerid, "NET_INCOME", "FY")
plot(CFO/net)

推荐答案

这将绘制一条阶梯线,叠加在主图表和左侧比例尺上.

This will plot a stepline, overlaid on the main chart and on the left scale.

//@version=4
study("Quality of earnings", overlay=true, scale=scale.left)

cfo = financial(syminfo.tickerid, "CASH_F_OPERATING_ACTIVITIES", "FY")
net = financial(syminfo.tickerid, "NET_INCOME", "FY")

qoe = cfo/net

plot(qoe, style=plot.style_stepline)

这篇关于Tradingview Pine 脚本图阶梯图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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