当快速均线第一次穿过慢速均线时,我想在满足上述条件的第一根蜡烛的高点绘制一条线,在该条件为真的整个持续时间内。
谁能提供代码片段,提前致谢。
答案 0 :(得分:0)
嗨,古普塔,这是你绘制的第一个条件
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.