小幫手您好,
有一組乖離率指標是trading view的語法 , 請問如何能XQ自訂指標的語法中實現呢?
CS, SM, ML 分別是3種不同的乖離率指標
study("Price divergence")
cs=(close-ema(close,20))/ema(close,20)*100
sm=(ema(close,20)-ema(close,60))/ema(close,60)*100
ml=(ema(close,60)-ema(close,120))/ema(close,120)*100
plot(ml,"ml",color.silver,linewidth=3,style=plot.style_histogram)
plot(sm,"sm",color.red)
plot(cs,"cs",color.black)
感謝!
1 評論