PDA

View Full Version : Solid Bars


BradB
05-04-2010, 08:48 AM
In 6.5 I was able to draw a line through a bar

DrawLine("xLine"+CurrentBar, true, 0, High[0], 0, Low[0], Color.Gold, DashStyle.Solid, xwickwidth);

In 7 the Bar Color seems to be overiding the line. It draws over the wick, but not the body. Any ideas?

Thx.

NinjaTrader_Tim
05-04-2010, 09:57 AM
Hi BradB,

In NinjaTrader 7, you can change the Z-order.

Please see "New Chart Object Paint Ordering (z-order)" section at - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

For IDrawObject, you will need to unlock the objects first.
More info at - http://www.ninjatrader.com/support/helpGuides/nt7/index.html?idrawobject.htm

BradB
05-04-2010, 10:41 AM
Thanks Tim, but how do I set the Z order of my draw line to appear "on top" of my bar programmatically? I don't don't see any parameters in DrawLine to do this.

NinjaTrader_Tim
05-04-2010, 10:50 AM
Hi BradB,

This will have to be done manually.