PDA

View Full Version : How-To Draw Price Pins in Price Panel?


tazatek
11-19-2009, 06:29 AM
I'm looking for information on how to draw price pins like the included 'Pivots' indicator.

Specifically, so that each S/R line would have it's own price pin in the right hand side, colored and updated accordingly.

But it appears that the example indicator uses undocumented code from ChartControl and overriding the Plot() method...

Is there some documentation for ChartControl ?

Or is there a public function that I missed in the docs?


Thanks

NinjaTrader_Bertrand
11-19-2009, 06:39 AM
tazatek, by default plots would display their values in the Y price axis, you could either work with the techniques offered in the 'Pivots' indicator or review the CustomPlotSample we install per default with NinjaTrader, both would contain info on how to override the standard Plot() method.

tazatek
11-19-2009, 06:44 AM
Thanks -

Is there a way to draw the price pins associated with a DrawLine() call?

NinjaTrader_Bertrand
11-19-2009, 06:46 AM
Unfortunately not with NinjaTrader 6.5, in NinjaTrader 7 you would have access to the draw objects collection (their Tag Id's and values).

tazatek
11-19-2009, 07:00 AM
NT 7 Sounds like a good thing -- I'll wait until then to implement this.

Thanks for pointing me to the custom plot indicator too... I missed that and has a good example on using C# system draws.

Thanks