【问题标题】:The built-in variable "barstate.isconfirmed" don't work as intended内置变量“barstate.isconfirmed”不能按预期工作
【发布时间】:2022-08-23 13:56:06
【问题描述】:

正如我在标题中所说,我正在尝试使用 barstate.isconfirmed 来了解何时出现绿色蜡烛。

Vert = (fast>slow)

ClosedBarGreen= barstate.isconfirmed and (close>open)

strategy.order(\"buy\",true,when = ClosedBarGreen and Vert)

但它根本不起作用:

PineScript Image

非常感谢大家的帮助。 祝你有美好的一天。

  • 订单在以下栏执行。你的代码完全按照它应该做的。

标签: pine-script


【解决方案1】:

尝试 ClosedBarGreen= barstate.isconfirmed and (close>open) and (close>close[1])

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-02
    • 2021-07-18
    • 2015-06-26
    • 2013-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多