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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cre8able, Today, 01:16 PM
    2 responses
    9 views
    0 likes
    Last Post cre8able  
    Started by chbruno, 04-24-2024, 04:10 PM
    3 responses
    48 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by samish18, Today, 01:01 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by WHICKED, Today, 12:56 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by WHICKED, Today, 12:45 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X