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 Mindset, Today, 06:46 AM
    0 responses
    8 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    12 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    47 views
    0 likes
    Last Post PaulMohn  
    Working...
    X