关闭编译器警告消息

时间:2021-06-05 19:03:48

标签: pine-script

在我的脚本成功保存后,我收到了来自 pinescript 的警告消息。有没有办法关闭这些烦人的消息。

The function 'perc_change' should be called on each calculation for consistency. It is recommended to extract the call from this scope.

The `transp` argument will be deprecated soon. We recommend using color.new() or color.rgb() functions to specify the transparency of the plots instead.

1 个答案:

答案 0 :(得分:0)

正如警告消息所说,您必须删除 transp 参数。

示例:

转换:

plot(wt1-wt2, color=color.blue, style=plot.style_area, transp=80)

进入:

plot(wt1-wt2, color=color.new(color.blue, 80), style=plot.style_area)