要寻找一种解决方法,不能以这种方式使用plotshape,因为它不能在本地范围内工作。
//@version=3
study("MA test ", overlay=true)
FastMA = sma(close, 9)
SlowMA = sma(close, 15)
Diff = FastMA - SlowMA
if Diff > 0
plotshape(Diff, style=shape.arrowup, location=location.belowbar, color=green)