繁体   English   中英

Pine Script Tradingview:当plot离价格太远时,如何防止图表被压缩?

[英]Pine Script Tradingview: How to prevent the chart from being compressed when the plot is too far from the price?

在 Tradingview 网站的 Pine Script 中,当我们使用plot时,如果 Plot 离价格太远,图表会被压缩,有什么办法可以防止呢?

//@version=5
indicator("My Script", overlay=true)
plot(2000, title='High', style=plot.style_line, color=color.new(color.red,10), linewidth=2)

在此处输入图像描述

我找到了,没有办法编程,但可以从交易视图设置中修复。

  1. 单击图表右上角的设置图标。
  2. 启用Scale Price Chart Only选项

在此处输入图像描述

暂无
暂无

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

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