Drawing Order when using SharpDX objects

Hello Ninjatrader,

I’m drawing some lines inside an indicator using SharpDX. However, unlike with regular Drawn objects, I can’t find any information on how to render these objects behind or in front of the chart candles. Is this possible?

Would appreciate guidance in this matter.

Thanks
Regards

You can set ZOrder in OnRender.

		protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
		{
			if( RenderTarget == null || BarsArray[0] == null ) { return; }
			ZOrder = 100000;
1 Like