0

大家晚上好。我有一个脚本,我想让用户选择是否在我的情节上显示价格气泡。我已经创建了一个输入参数,但看起来你不能在 if 块中调用 hide 函数。以下看起来很简单,但没有编译......任何解决方法?

input hidePriceBubbles = no;
.
.
.
plot p_amLows = amLows;
p_amLows.SetStyle(Curve.POINTS);
p_amLows.SetDefaultColor(Color.YELLOW);

if hidePriceBubbles then {
    p_amLows.HideBubble();    <--- "can not be called within branching"
} else {
}
4

1 回答 1

0

我的新手错误。我没有意识到 ThinkOrSwim UI 会自动为脚本中的每个绘图提供一个设置面板。此面板上的选项之一是允许用户隐藏价格泡沫。无需编码...它已融入系统。

于 2022-02-07T02:12:15.967 回答