Page 1 of 1

Plot a dot above/below a bar.

Posted: Jun 11 2024
by Eric1704
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.

Re: Plot a dot above/below a bar.

Posted: Jun 12 2024
by TJ
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.

Re: Plot a dot above/below a bar.

Posted: Jun 12 2024
by Eric1704
Thanks TJ. So the type of Plot is always set later in the Properties. And this will work on historical bars also?
Thanks.

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

Posted: Jun 12 2024
by TJ
The setting is applied to the chart as it is drawn on the screen.