• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

different time nt7 and nt8 when i apply indicator during Historical

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

    different time nt7 and nt8 when i apply indicator during Historical

    Hi,

    i code an indicator in nt7 to nt8...
    This indicator is very expansive as Historical because it do several cycles ricursive..

    The encoding from NT7 to nt8 it is done right..

    But i notice this problem:
    when i apply the indicator in chart, it's begin to apply indicator in historical bar...
    in nt7 is very fast respect nt8..
    Ex: load chart fut dax 1 min 10 days
    in nt7 It ends up in 20 seconds
    in nt8 it ends up in 2 minutes..

    i ask you a question:

    It's different load indicator in historical nt7 and nt8?

    #2
    Hello turbofib,

    The way indicators are called from other scripts has not changed in NinjaTrader 8.
    The way indicators run OnBarUpdate has not changed in NinjaTrader 8.

    Likely, something within the script itself is different from the way the script was created for NinjaTrader 7.
    I would recommend you focus on objects that are being created. Creating a lot of objects instead of re-using these will cause higher cpu and higher memory usage.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      i've exetute nt8 and nt7 with the same indicator and the same numer bar chart and same frame..

      i see this in task manager (see pictures)



      What do you suggest to check?
      Attached Files

      Comment


        #4
        Hello turbofib,

        NinjaTrader 8 requires more resources own its own to run.

        Do you have any other workspaces open?

        Do you have any other windows such as charts open?

        Are both scripts set to run with Calculate set to on bar close?

        What is the memory usage of NinjaTrader when the script is not running?

        The code in the scripts cannot be exactly the same as scripts made for NinjaTrader 7 cannot be imported into NinjaTrader 8.
        There must be changes in the script.
        What is different between the scripts?
        Somethings need to be different. Does the script do any drawing?
        Has all drawing been changed to use SharpDX instead of GDI+?
        Are there any objects being created in the script, like arrays, data series, custom classes, etc?
        Are you using timers at all?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          The answer is in readme.txt
          Attached Files

          Comment


            #6
            You say :

            Are there any objects being created in the script, like arrays, data series, custom classes, etc?

            HOW can i count it? ...i want to count it in nt7 and to count it in nt8...and see if there is different..
            How i do it?..thank

            Comment


              #7
              i execute a lot of test .....
              nt7 is realy more speed and better of nt8.
              i had translate perfectly code from nt7 and nt8...

              if you want to see code to testing better nt8 ..i give it code nt7 and nt8 and so you'll see these difference performance
              Last edited by turbofib; 11-08-2016, 03:55 AM.

              Comment


                #8
                Hello turbofib,

                Thank you for your response.

                You would need to manually count the number of objects you created as far as arrays, methods, etc.

                Please send us the full code to platformsupprot[at]ninjatrader[dot]com with this thread as reference so we may look into this matter further.

                You will find the .cs file for your indicator under Documents\NinjaTraader 8\bin\Custom\Indicators.
                Patrick H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by levikNT, Today, 04:39 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by chartish, Today, 08:36 AM
                2 responses
                14 views
                0 likes
                Last Post chartish  
                Started by login_dejavu, Yesterday, 04:58 AM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_RyanS  
                Started by NinjaTrader_PaulH, Today, 07:40 AM
                0 responses
                4 views
                0 likes
                Last Post NinjaTrader_PaulH  
                Started by awesometrader, Today, 06:59 AM
                2 responses
                9 views
                0 likes
                Last Post awesometrader  
                Working...
                X