distance from moving average

Questions about MultiCharts .NET and user contributed studies.
rockaphonics
Posts: 14
Joined: 19 Jun 2018
Has thanked: 2 times

distance from moving average

Postby rockaphonics » 06 Jun 2019

Hi fellow traders,
Can anyone please help me with a simple code.
I am trying to create an indicator that measures the distance of current price to SMA ( number ) and then convert that amount to a percentage of the current moving average value.

Any help would be greatly appreciated !
THX!

rien
Posts: 9
Joined: 25 Apr 2019

Re: distance from moving average

Postby rien » 17 Jun 2019

I based the code on the Mov_Avg_1_Line indicator.

If you want to do the same with multiple indicators, check the differences between the attached indicator and the Mov_Avg_1_Line.

Good luck!
Attachments
sma_perc_diff.pln
(1.36 KiB) Downloaded 244 times


Return to “MultiCharts .NET”