首页 > 解决方案 > 使用plotshape时如何使shapel自动显示?

问题描述

使用 plotshape 时,如果有很多形状,图标会重叠。例如在此处输入图像描述

所以我可以让这些形状自动显示吗?

标签: pine-script

解决方案


您需要使用location.absolute参数的location参数将每一个显式定位在不同的价格水平。使用时location.absolute,函数的第一个参数series,必须包含图表上形状的 y 位置:https ://www.tradingview.com/pine-script-reference/v4/#fun_plotshape


推荐阅读