Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer: Trades occur outside the given time frame

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

    Strategy Analyzer: Trades occur outside the given time frame

    Hello,
    I am backtesting a strategy on the instrument YM with the default session template. My provider is Zen-Fire, our office is located in Germany.

    For the time frame parameters, I select From="01.01.2012" and To="17.09.2012". However, the last trade is an entry at "18.09.2012 08:22" with an ExitOnClose at "18.09.2012 15:45" <-- This is the system time when backtesting, i.e. there is no more price data.

    Why does the backtest trade outside the time frame?
    Thanks for your help,
    Johannes Neubarth

    #2
    SentiTrade,

    Depending on the session template you use this may occur. For example, if my session template has a "trading day" defined as :

    Monday at 3:00 PM to Tuesday at 3:00 PM

    However, my backtest ends on that Monday, I will also get times from Tuesday included since the session template defines my last trading day as including a date after the end date I set for the backtest.

    You could define your own session templates here to remedy this for example, accounting for your time zone in relation to the session template time zone as well.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Adam, that answers my question. It was not obvious to me ;-)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Kaledus, Today, 01:29 PM
      5 responses
      12 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by alifarahani, Today, 09:40 AM
      5 responses
      23 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by PhillT, Today, 02:16 PM
      2 responses
      7 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Working...
      X