Pine script 无法调用';绘图';带参数(系列[float],

Pine script 无法调用';绘图';带参数(系列[float],,pine-script,Pine Script,10天前,我开始尝试了解Pine,但我没有编程经验,一些sql报告是我的全部经验。我希望在学习的过程中学习概念。我已经阅读了大部分手册/参考资料,但需要一段时间才能理解 第一个错误是,我将一些版本3代码粘贴到V4中,并获得了大部分转换权利,但我知道有错误,我无法确定何时尝试绘制该系列,每个版本都会出现以下错误: 第189行:无法使用参数调用“绘图”(series[float],color=const color,style=const string,linewidth=literal integ

10天前,我开始尝试了解Pine,但我没有编程经验,一些sql报告是我的全部经验。我希望在学习的过程中学习概念。我已经阅读了大部分手册/参考资料,但需要一段时间才能理解

第一个错误是,我将一些版本3代码粘贴到V4中,并获得了大部分转换权利,但我知道有错误,我无法确定何时尝试绘制该系列,每个版本都会出现以下错误: 第189行:无法使用参数调用“绘图”(series[float],color=const color,style=const string,linewidth=literal integer,title=literal string);可用重载:绘图(series[float],const string,series[color],input integer,input integer,input integer,input float,series[integer],input bool,series[float],const bool,input integer,const integer,string)=>plot;plot(fun_arg,const string,fun_arg,input integer,input integer,input integer,input float,series[integer],input bool,series[float],const bool,input integer,const integer,string)=>plot


您正在使用
line.new()
style=
参数:

当函数调用中出现编译器错误时,请在refman中研究该函数,以确保正确使用它。这是的条目。
plot()
没有虚线样式。您可以使用它来模拟一个,这会使颜色每秒都不可见:

plot(smaFast,   color=bar_index % 2 == 0 ? color.orange : na, style = plot.style_line,  linewidth=2, title='Fast SMA') 
plot(smaFast,   color=color.orange, style = plot.style_circles,  linewidth=2, title='Fast SMA') 
plot(smaFast,   color=color.purple, style = plot.style_circles,  linewidth=2, title='Slow SMA')
plot(longStop,  color=color.red,    style = plot.style_circles,  title='Long ATR Stop')
plot(shortStop, color= color.maroon,style = plot.style_circles,  title='Short ATR Stop')
plot(smaFast,   color=bar_index % 2 == 0 ? color.orange : na, style = plot.style_line,  linewidth=2, title='Fast SMA')