Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PaintBars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PaintBars

    the following is NT 7 method
    public override void PaintBars(NinjaTrader.Gui.Chart.ChartControl chartControl, Graphics graphics, NinjaTrader.Data.Bars bars, int panelIdx, int fromIdx, int toIdx, Rectangle bounds, double max, double min)
    {



    ////

    }
    How we convert this method in NT 8..?

    #2
    This is now a ChartStyle's OnRender method

    Code:
    public override void OnRender(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)
    {
    }
    The Graphics object used for the drawing context is replaced with the RenderTarget class object.

    Code:
    RenderTarget.DrawLine()
    You will need to be familiar with the SharpDX library for drawing and rendering to convert much of the code available here. You can take a look at the other ChartStyles which are available in the bin\custom\ChartStyles folder or in the NinjaScript Editor. Let us know if you have any specific questions.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    48 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X