Drawing markers in 2 plots within one study

cybedard

New member
Joined
Sep 10, 2019
Posts
3
Likes
0
Hi all
Anyone can send an example on how to display simultaneously 2 sets of markers in 2 different plots (for example price plot and macd plot)?
I'm only able to show them in only one plot.
Thx
 

lndshrk

Member
Joined
Jun 13, 2019
Posts
13
Likes
2
If you have multiple plots, you have to be explicit as to which plot to post the marker to. For the price plot, for example, you could use :


if (marker.isEnabled()) addFigure(Plot.PRICE, new Marker(c, Enums.Position.BOTTOM, marker, msg));
 
Top