Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Python vs. C# Backtesting

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

    Python vs. C# Backtesting

    Hello,

    I have used multiple Python based backtesting softwares. The fastest one by far, QuantRocket, was able to test 12 months worth of 1 minute data of one stock in about 15 minutes.

    This same test, using a C# based platform like NinjaTrader, takes about 1 minute. Of course, the speed changes on a relative basis, based on an individual’s computer specs, but the different between the two remains the same.

    Considering the vast speed differential between C# and Python back testing speed, what is the advantage of using python-based backtesting?

    Thank you!

    #2
    Hello aaravsawlani,

    Thank you for your note.

    Every system will be different. C# can be compiled into faster code than python, and likely what the backtesting system uses for order fill simulation will be different (OHLC vs. just close, using tick data to simulate market movement etc.)

    Since we in the support department cannot really comment here, being that using external backtesters is out of the scope of our support, I will leave this open for community feedback.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    45 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X