Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 vs NT8

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

    NT7 vs NT8

    Am I right to say that :

    OnRender() replace Plot(),
    OnStateChange() replace Initialize()


    With NinjaTrader 7 I was overriding the Plot method on most of my indocators what method should I use with NinjaTrader 8 ?

    Thanks
    Last edited by blar58; 09-25-2015, 11:46 AM.

    #2
    Hello,

    Thank you for the questions.

    That would be correct, those are the overrides that have replaced NT7's.

    For the Plot override specifically, there have been many changes but it still works similar to how NT7 did.

    The main difference is you are no longer using the standard graphics class, instead you are now using SharpDX which has many benefits.

    For a quick overview of an item that already implements this, you could look at the Pivots indicator.

    The same concepts still apply, if you currently use any of the ChartControl price or bar conversion methods, those would now be split up or:

    chartControl.GetXByBarIndex
    chartScale.GetYByValue

    You can think of chartControl as your X and chartScale as your Y in terms of where methods are located.

    The OnRender is also implemented in other types such as DrawingTools and ChartStyles.

    I look forward to being of further assistance.

    Comment


      #3
      Thank you Jesse,

      Is there a link where I could learn more on SharpDX ?

      Comment


        #4
        Hello,

        At the moment the NT8 helpguide has some of the SharpDX items but would not be the most helpful at the moment because alot has not yet been documented on this specifically, this is planned for the future.

        For right now, SharpDX.org has a full documentation although it can be discouraging as it is fairly hard to navigate. http://sharpdx.org/documentation

        This page has been helpful: http://english.r2d2rigo.es/2012/07/0...-with-sharpdx/
        Also this page: http://english.r2d2rigo.es/2014/03/0...-with-sharpdx/

        For the examples you find, you do not need to create your own Context, that would just be the indicators RenderTarget.

        I look forward to being of further assistance.

        Comment


          #5
          OK Thanks again Jesse

          Comment


            #6
            Originally posted by blar58 View Post
            Am I right to say that :

            OnRender() replace Plot(),
            OnStateChange() replace Initialize()


            With NinjaTrader 7 I was overriding the Plot method on most of my indocators what method should I use with NinjaTrader 8 ?

            Thanks
            Hi Blar,

            I'm glad someone is asking about this already. Do you have any sample code you may be able to share regarding ploting text on the X / Y axis in NT8?

            Cheers

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            666 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            377 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            110 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            580 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X