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.
    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        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 cmtjoancolmenero, Yesterday, 03:58 PM
            8 responses
            31 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by helpwanted, Today, 03:06 AM
            2 responses
            21 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by DayTradingDEMON, Today, 09:28 AM
            0 responses
            9 views
            0 likes
            Last Post DayTradingDEMON  
            Started by navyguy06, Today, 09:28 AM
            0 responses
            2 views
            0 likes
            Last Post navyguy06  
            Started by rjbtrade1, 11-30-2023, 04:38 PM
            2 responses
            77 views
            0 likes
            Last Post DavidHP
            by DavidHP
             
            Working...
            X