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 amousaber, Yesterday, 09:30 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by PopovDS, Yesterday, 11:17 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Mr Bread, Yesterday, 12:01 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by suraj, Yesterday, 08:51 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Danila, Yesterday, 11:40 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Kimberly  
    Working...
    X