Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 DataSerie vs NT8 Serie<double>: speed comparison

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

    NT7 DataSerie vs NT8 Serie<double>: speed comparison

    I made same simple strategy and run it on NT7 and NT8 to compare speed of reading price data

    Code:
    			if( CurrentBar >= Bars.Count - 2 ) 
    			{ 
    				Print("");
    				Print( Instrument.FullName );
    				Print( Time[ CurrentBar ].Date +" - "+ Time[0].Date );
    				Print( "CurrentBar:   "+ CurrentBar      .ToString( "### ### ### ### ###" ) );
    				
    				int loops = 10000;
    				DateTime start = DateTime.Now;
    				
    				double sum = 0;
    				for( int i = 0; i <= CurrentBar; i++ )
    				{
    					for( int j = 0; j < loops; j++ ) sum += Close[i];	
    				}
    				
    				Print( sum.ToString( "0.00" )  +"  "+ DateTime.Now.Subtract( start ).TotalMilliseconds.ToString( "### ### ### ### ###.00"+" msec" ) );
                           }
    Looks, at the time, NT7 works about 30% faster.

    (Tested on Windows 10 x64).
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello,

    Thank you for the post on this.

    Can you tell me what data provider are you connected to for these tests ?

    I look forward to being of further assistance.
    Last edited by NinjaTrader_Jesse; 05-23-2016, 08:15 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X