Moving Average's Distance from Price help

Questions about MultiCharts and user contributed studies.
krisnara
Posts: 19
Joined: 08 Sep 2020
Been thanked: 1 time

Moving Average's Distance from Price help

Postby krisnara » 23 Feb 2023

I would like to plot say 50 SMA and then right next to it, I would like to plot the distance from the price (which will be dynamic ) as pricing will keep changing. Attached a picture to explain. The Pink Line is the moving average. The displayed values are the MA value 77.38 and the distance from price in brackets (.64).
Attachments
MA-Distance.jpg
(63.93 KiB) Not downloaded yet

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Moving Average's Distance from Price help

Postby Svetlana MultiCharts » 23 Feb 2023

Hi krisnara,

What specific difficulty do you face when try to achieve it?

krisnara
Posts: 19
Joined: 08 Sep 2020
Been thanked: 1 time

Re: Moving Average's Distance from Price help

Postby krisnara » 23 Feb 2023

Thanks Svetlana. I managed to code an indicator what plots a histogram in the bottom pane ie the sub-graph,the distance from the price.But I want this value to appear in (brackets) at the end of the MA.

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Moving Average's Distance from Price help

Postby Svetlana MultiCharts » 24 Feb 2023

We’d offer two possible solutions:
1) Enable Study Values in the Status Line.
image (1).png
(43.18 KiB) Not downloaded yet
2) Use text drawing.
image (2).png
(17.83 KiB) Not downloaded yet


Return to “MultiCharts”