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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    147 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Working...
    X