I'm guessing(since it's not documented anywhere) that PlotStyle.PriceBox is what I'm after, not sure.
Can anyone shed some light on how to pass my indicator values to a plot with a PlotStyle of PriceBox ?
I'd like to pass in a high and a low and have bar plot with that high and low.
I have seen similar questions(around drawing indicators as candlesticks) and the answer is to overload OnRender and manually draw the bars, but before I do that I'd like to make sure that this is the only way to draw a hi-low bar.
I'm hoping there is some way to take advantage of the existing functionality of NinjaTrader without having to re-implement code that already exists, is well tested, and I don't have to maintain. There are a few other threads around with the same suggestion.
If there is no way to do what I'm asking, I'd like to request an enhancement to allow this.
For example, NT already has all the code to draw a candlestick on a pane including high low wick, open close box, outline, scaling, colors, width, all those details are already done, tested and working. Why can't my indicator code create a candlestick plot and provide the open, low, high close and let ninjatrader do what it already knows how to do ? Do I really have to repeat all that code in OnRender ?
Thanks
Comment