Plot a dot above/below a bar.  [SOLVED]

Questions about MultiCharts and user contributed studies.
Eric1704
Posts: 38
Joined: Nov 29 2022
Has thanked: 16 times

Jun 11 2024

Can anyone show me how to plot a dot above or below a bar? I want to plot a dot above the bar when h>h[1] and plot a dot below the bar when l<l[1] and be able to see them historically too.
Thank you.

User avatar
TJ
Posts: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jun 12 2024

First, you need to decide the "Offset" -- the distance between the H and the dot.

Try this:

Code: Select all

var: offset(1); if H > H[1] then PLOT1 ( H + offset, "NewHigh") // set plot type to POINT ELSE Noplot(1);

ps. This is a start; I have not verified the code.

Eric1704
Posts: 38
Joined: Nov 29 2022
Has thanked: 16 times

Jun 12 2024

Thanks TJ. So the type of Plot is always set later in the Properties. And this will work on historical bars also?
Thanks.

User avatar
TJ
Posts: 7774
Joined: Aug 29 2006
Location: Global Citizen
Has thanked: 1036 times
Been thanked: 2233 times

Jun 12 2024

The setting is applied to the chart as it is drawn on the screen.