卷值标签未显示在垂直卷的值栏上
Volume value label is not shown on vertical volume's value bar
我正在尝试在交易视图 Pine 编辑器中创建简单的交易量条形图。但是今天的市场价值(它也称为价格线)的交易量(最后一根柱子)没有显示在右侧柱子上,通常就像价格柱子上的红色市场价格标签一样。
在它的设置中,在样式选项卡中,有一个打开价格线的开关,但它不起作用,只显示价格的水平线,而不是侧栏上的值标签。显示出来之后,我还需要根据一些情况改变它的样式和颜色。
我上传了样本图片,我的意思是体积价值标签就像顶部的红色市场价格标签 window(蜡烛图)
如果有人能帮助我解决它,我将不胜感激。
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © reza_najafi
//@version=4
//Main volume bar chart
study(title="IV", format=format.volume)
plot(volume, color= color.green,style=plot.style_columns, title="Volume bar's color")
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
您可以用 trackprice=true
显示该行,但我不确定您是否可以添加标签。
//@version=4
//Main volume bar chart
study(title="IV", format=format.volume)
plot(volume, color= color.green,style=plot.style_columns, title="Volume bar's color", trackprice=true)
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
你可以使用类似下面的东西作为替代方案吗?
offset_val = input(title="Label Offset", type=input.integer, defval=20)
va= volume
plot(va, color= color.green,style=plot.style_columns, title="Volume bar's color", trackprice=true)
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
plotshape(va, style=shape.labeldown, location=location.absolute, color=color.blue, textcolor=color.white, show_last=1, text="volume", offset = offset_val, transp=20, title="volume")
但有些人如何输入 plotshape title="volume" 并使用 line.get_price 函数或其他函数将成交量和成交量价格拉入标签。
我正在尝试在交易视图 Pine 编辑器中创建简单的交易量条形图。但是今天的市场价值(它也称为价格线)的交易量(最后一根柱子)没有显示在右侧柱子上,通常就像价格柱子上的红色市场价格标签一样。 在它的设置中,在样式选项卡中,有一个打开价格线的开关,但它不起作用,只显示价格的水平线,而不是侧栏上的值标签。显示出来之后,我还需要根据一些情况改变它的样式和颜色。 我上传了样本图片,我的意思是体积价值标签就像顶部的红色市场价格标签 window(蜡烛图) 如果有人能帮助我解决它,我将不胜感激。
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © reza_najafi
//@version=4
//Main volume bar chart
study(title="IV", format=format.volume)
plot(volume, color= color.green,style=plot.style_columns, title="Volume bar's color")
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
您可以用 trackprice=true
显示该行,但我不确定您是否可以添加标签。
//@version=4
//Main volume bar chart
study(title="IV", format=format.volume)
plot(volume, color= color.green,style=plot.style_columns, title="Volume bar's color", trackprice=true)
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
你可以使用类似下面的东西作为替代方案吗?
offset_val = input(title="Label Offset", type=input.integer, defval=20)
va= volume
plot(va, color= color.green,style=plot.style_columns, title="Volume bar's color", trackprice=true)
hline(0, title='Zero line', color=color.gray, linestyle=hline.style_dashed, linewidth=1)
plotshape(va, style=shape.labeldown, location=location.absolute, color=color.blue, textcolor=color.white, show_last=1, text="volume", offset = offset_val, transp=20, title="volume")
但有些人如何输入 plotshape title="volume" 并使用 line.get_price 函数或其他函数将成交量和成交量价格拉入标签。