【问题标题】:Could not find function in pine editor code?在 pine 编辑器代码中找不到函数?
【发布时间】:2021-10-15 06:42:47
【问题描述】:

添加到图表操作失败,原因:找不到函数或函数引用条目

代码在这里 策略(“EMA-Crossover”) ema9=ema(关闭,9) ema20=ema(关闭,20)

long=ema9> ema20 短= ema9

strategy=entry("Long",strategy.long,50.0,when=long) strategy=entry("Short",strategy.short,50.0,when=short)

strategy=close("Long",when=short) strategy=close("Short",when=long)

【问题讨论】:

    标签: editor


    【解决方案1】:

    ema(source, length) 函数在 Pine 脚本版本 5 中不可用。因此请检查版本以及该函数是否可用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-24
      • 1970-01-01
      • 1970-01-01
      • 2020-08-03
      • 1970-01-01
      • 1970-01-01
      • 2022-06-22
      • 1970-01-01
      相关资源
      最近更新 更多