Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market replay vs backtest

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

    Market replay vs backtest

    Hello. I have a strategy running on S&P eminis which I backtested for a given period that generated approx. 14 trade entries. However, when I ran it with the Market replay it only generated 1 trade entry. The replay is showing that the price data is flowing through correctly, and visually I can see that trades should be generated, but they're not. Do you have any idea what might be causing this?

    One theory I have is that one of the inputs for the trade condition is VIX index, and I received a message saying Ninjabrokerage does not support the VIX index. So the data exists in the cache somewhere for the backtest (via my other brokerage account), but when I'm running the simulation it's trying to access data through Ninja which isn't there. I have no idea if that makes sense at all but it's only thing I could think of.

    Any thoughts?

    #2
    Hello stewarco,

    Thanks for the post.

    Vix data is not available from the Playback data servers. Only futures and forex data will be available from those servers. If you are connected to your data provider while running the backtest, then the strategy analyzer will pull the data from your connection, if you are not connected it will pull the data from your database. Since the Playback data servers will not supply this data, this strategy cannot be backtested by means of the playback connection.

    Please let me know if I may be of any further assistance.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      related question

      Thanks Chris. If I wanted to run this strategy live, would I run into the same problem? I'd like to execute all my futures through the ninjabrokerage, but some of the strats reference inputs on instruments or indices that are not supported by ninjabrokerage. I have the multibroker license, so would it be possible for me to connect to both so that I can access the data from my other broker but route the trades to Ninja?

      Thanks,
      Colin

      Comment


        #4
        Hello Colin,

        Thanks for the reply.

        With the Multi-Broker key, you can connect to two brokers and trade with both of those brokers. Just select the account you want to trade in the order entry window. This also means that you will receive data from both of these brokers.

        If the NT Continuum connection can not pull the requested data series, then NinjaTrader will look to the second data connection to get that data. As long as whatever data you need is coming from your data feed, you will not see this happen in real time.

        The help guide page below describes multiple connections further:


        Please let me know if I may be of any further assistance.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        148 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