简体   繁体   English

Tradingview Pine 脚本 plot 楼梯图

[英]Tradingview Pine script plot staircase chart

I want to plot the quality of earnings which is not available in the trading view.我想要 plot 在交易视图中不可用的收益质量。 However, what I got is not the staircase chart.但是,我得到的不是阶梯图。 How can I plot the staircase chart?我如何 plot 楼梯图? I have tried the style option in plot function and gaps option in the financial function but no luck.我已经尝试过 plot function 中的样式选项和金融 function 中的间隙选项,但没有运气。

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.这将 plot 成为阶梯线,覆盖在主图表和左侧刻度上。

//@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)

阶梯线图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM