【发布时间】:2021-04-25 06:12:46
【问题描述】:
当快速 MA 第一次穿过慢速 MA 时,我想在满足上述条件的第一根蜡烛的高点绘制一条线,在条件为真的整个持续时间内。
谁能提供这个的代码sn-p,在此先感谢。
【问题讨论】:
标签: pine-script tradingview-api
当快速 MA 第一次穿过慢速 MA 时,我想在满足上述条件的第一根蜡烛的高点绘制一条线,在条件为真的整个持续时间内。
谁能提供这个的代码sn-p,在此先感谢。
【问题讨论】:
标签: pine-script tradingview-api
嗨,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.
【讨论】: