Spin
Well-known member
- Joined
 - May 22, 2019
 
- Posts
 - 511
 
- Likes
 - 219
 
Hello fellow programmers,
I have been struggling with the following issue for some time now, so I reach out to the esteemed panel on this forum
I have a study that draws markers on the main plot when certain conditions are met. Sometimes more than one marker is drawn above or below the same bar, like so:

I would like to stop this from happening, and have the diamond and the arrow vertically separated.
This is the code that I use now:
	
	
	
		
As you can see, I use 'addFigure' from the class 'Study'. I noticed the subclass 'SinglePointFigure' (of class 'Draw') contains "SetStackPolicy", but I cannot for the life of me figure out how to implement this
Please help. Thanks !
				
			I have been struggling with the following issue for some time now, so I reach out to the esteemed panel on this forum
I have a study that draws markers on the main plot when certain conditions are met. Sometimes more than one marker is drawn above or below the same bar, like so:

I would like to stop this from happening, and have the diamond and the arrow vertically separated.
This is the code that I use now:
		Code:
	
	if (ma9 >= ma15)
    {
        MarkerInfo marker = getSettings().getMarker(MARKER12);
        if (marker.isEnabled())
            addFigure(CHECK_PLOT, new Marker(d3, Enums.Position.CENTER, marker));
    }
	As you can see, I use 'addFigure' from the class 'Study'. I noticed the subclass 'SinglePointFigure' (of class 'Draw') contains "SetStackPolicy", but I cannot for the life of me figure out how to implement this
Please help. Thanks !
				