How to display percentage between close price and 50 ema, 200 ema in chart

Hello,
How can I display percentage between close price and 50 ema, 200 ema,etc in chart?
Can anyone help me?
Thanks

@roychan perhaps something like this

PctDiff = ( Close - EMA( C, 50 ) ) / EMA( C, 50 ) * 100;

Plot( PctDiff, "% Difference C vs EMA(50)", colorGold, styleLine | styleThick );

image

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.