• 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

NT8 Strategy analyzer is a lot slower than nt7

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

  • Jackson12
    started a topic NT8 Strategy analyzer is a lot slower than nt7

    NT8 Strategy analyzer is a lot slower than nt7

    I am developing strategies in Ninjatrader on a daily basis. I have happily been using NT7 for years and have now migrated to NT8, and it is so slow...

    • When I start a Strategy analyzer and select my strategy it takes 15-20 sec.
    • Change template takes 15-20 sec.
    • Changing for minute to daily in the Strategy Analyzer takes 15-20 sec.

    This is not the case if I choose Sample MA crossover strategy, but my same strategy (with similar code) is at least 10 times faster in NT7.

    Note: My strategy has a lot of code in it, but not much in the States SetDefaults and Terminated which seems to be used when selecting for example a saved template.

    Why is this?

    Thanks!

  • NinjaTrader_PatrickH
    replied
    Hello Jackson12,

    Thank you for your response.

    On your questions:
    • There should be nothing occurring as far as the code between states.
    • Data would need to be downloaded when connected to your data provider.
    • No compiling of code is performed.


    My questions:
    • Are you checking and performing items in States outside of OnStateChange()?
    • Can you provide your OnStateChange() code?

    Leave a comment:


  • Jackson12
    replied
    Hi

    I am using State.SetDefaults, State.DataLoaded, State.Configure and Sate.Terminated but it is not that the problem. I can measure that in the debugger.

    It is something that is done between. The problem seems to get worse if I have a larger backtest in another Analyzer..

    1. What does NT8 between the States?
    2. Does it update data in open Strategy Analyzers?
    3. Does it compile code when change the drop down list in the Strategy Analyzer?



    Thanks!

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello Jackson12,

    Thank you for your response.

    What States are you using in your code? Are you checking an performing items in States outside of OnStateChange()?

    Can you provide your OnStateChange() code?

    Leave a comment:


  • Jackson12
    replied
    I checked the debugger while changing values and could see:
    1. State.Undefined #region Variables
    2. State.SetDefaults
    3. Long break(15 sec)
    4. State.Undefined #region Variables
    5. State.SetDefaults
    6. State.Terminated


    What happens during the long break (15 sec)?

    Thanks,
    Jakob

    Leave a comment:


  • Jackson12
    replied
    Hello,

    Thanks for replying. I have checked the log, which is empty. When checking the output log the following appeared:

    2016-11-04 14:12:32 CancelAllOrders: BarsInProgress=0
    2016-11-04 14:12:32 CancelAllOrders: BarsInProgress=0
    2016-11-04 14:12:53 CancelAllOrders: BarsInProgress=0

    In this example I first changed strategy to Sample MA crossover (which worked instantly) and then to my strategy (which took about 20 sec to load).

    Does this give any clues?

    I´d rather not send my code over.

    Thanks,
    Jakob

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello Jackson12,

    Thank you for your post.

    There could be a number of reasons for this. I would start by checking the Log tab of the Control Center and the NinjaScript Output window for any details as to what is occurring.

    If you would like we can test out the strategy on our end to see if we can provide any specifics on the code being used. If you would like us to do so please attach your strategy to your response or send it over to platformsupport[at]ninjatrader[dot]com with this thread in reference.

    You can attach your strategy to your response by going to File > Utilities > Export NinjaScript > Export selected source files > select your strategy > select the right arrow > Export. The file will be located under (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by tcfcigvo, Yesterday, 11:39 PM
0 responses
4 views
0 likes
Last Post tcfcigvo  
Started by BobbyWan, Yesterday, 09:15 PM
0 responses
8 views
0 likes
Last Post BobbyWan  
Started by trader14, Yesterday, 08:23 PM
0 responses
2 views
0 likes
Last Post trader14  
Started by ares5918, Yesterday, 02:37 PM
2 responses
17 views
0 likes
Last Post ares5918  
Started by RTR1701, 11-15-2016, 11:38 AM
22 responses
1,267 views
0 likes
Last Post afcmaff
by afcmaff
 
Working...
X