【问题标题】:Need to plot high of candle at crossover of MA需要在 MA 的交叉点绘制蜡烛的高点
【发布时间】:2021-04-25 06:12:46
【问题描述】:

当快速 MA 第一次穿过慢速 MA 时,我想在满足上述条件的第一根蜡烛的高点绘制一条线,在条件为真的整个持续时间内。

谁能提供这个的代码sn-p,在此先感谢。

【问题讨论】:

    标签: pine-script tradingview-api


    【解决方案1】:

    嗨,Gupta,这是你绘制的第一个条件

    fastema= ema(close,3)
    slowema= ema(close,10)
    crossover = if fastema>slowema
        high
    plot(crossover,style=plot.style_cross,color=color.green,linewidth=3)```
    
    but a don´t know how to plot only the first high of the condition and repeat it all candelsticks when condition is true. If you find it please remember share it. 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-10
      • 1970-01-01
      • 1970-01-01
      • 2021-02-28
      • 1970-01-01
      • 2021-01-24
      • 2022-07-20
      • 1970-01-01
      相关资源
      最近更新 更多