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.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by tsantospinto, 04-12-2024, 07:04 PM
                5 responses
                67 views
                0 likes
                Last Post tsantospinto  
                Started by cre8able, Today, 03:20 PM
                0 responses
                6 views
                0 likes
                Last Post cre8able  
                Started by Fran888, 02-16-2024, 10:48 AM
                3 responses
                48 views
                0 likes
                Last Post Sam2515
                by Sam2515
                 
                Started by martin70, 03-24-2023, 04:58 AM
                15 responses
                114 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by The_Sec, Today, 02:29 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X