Pine 脚本:无法使用参数调用 'plotshape'
Pine Script: Cannot call 'plotshape' with arguments
我正在尝试在用户选中某个框时更改形状的大小。
ma = sma(hlc3,p)
big = input(false,"Bigger shapes")
plotshape(crossover(hlc3, ma), style=shape.triangleup, color=color.green, size=(big?size.small:size.tiny))
我被错误搞糊涂了,不知道尺寸有什么问题...
正在处理脚本...
第 7 行:无法使用参数调用 'plotshape' (series[bool], style=const string, color=const color, size=input string);可用的重载:plotshape(系列[布尔],常量字符串,输入字符串,输入字符串,系列[颜色],输入整数,系列[整数],常量字符串,系列[颜色],常量布尔,常量字符串,输入整数,常量整数,字符串)=>无效; plotshape(, const string, input string, input string, , input integer, series[integer], const string, , const bool, const字符串,输入整数,常量整数,字符串)=> void
plotshape() 的参考手册指出 size
必须是常数。
这意味着您不能使大小取决于条件。
您必须使用固定尺寸。
我正在尝试在用户选中某个框时更改形状的大小。
ma = sma(hlc3,p)
big = input(false,"Bigger shapes")
plotshape(crossover(hlc3, ma), style=shape.triangleup, color=color.green, size=(big?size.small:size.tiny))
我被错误搞糊涂了,不知道尺寸有什么问题...
正在处理脚本...
第 7 行:无法使用参数调用 'plotshape' (series[bool], style=const string, color=const color, size=input string);可用的重载:plotshape(系列[布尔],常量字符串,输入字符串,输入字符串,系列[颜色],输入整数,系列[整数],常量字符串,系列[颜色],常量布尔,常量字符串,输入整数,常量整数,字符串)=>无效; plotshape(
plotshape() 的参考手册指出 size
必须是常数。
这意味着您不能使大小取决于条件。
您必须使用固定尺寸。