Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Irregular Behavior while Backtesting after Opening

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

    Irregular Behavior while Backtesting after Opening

    Hi,

    i want to backtest the strategy only in the active hours, so for example 9:30 AM till 4 PM for DJIA. However, the Backtesting-Engine now takes for example for the RSI Values from the day before into account.
    So, i want, that the engine takes PricaData only from, for example, 9:30 into account and starts trading not before 10:00!?
    Do you understand, what i mean?

    #2
    Hi GerTrader,

    Have you defined these in the strategy dialogue window when you backtest your strategy? You have settings for Session begin and Session end times that you can define.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      (My Local Time is Continental Europe, so 15:30-22:00 equals 9:30 AM-4 PM)

      In the first attachement, you can see how i defined, that the strategy should only be traded in the active hours. However, this leads to the behavior of Indicators like in the second attachment (indicators are SMA). However, the indicators should look like in attachment three.

      But when i use 9 AM - 4 PM als Values in attachment one, the irregular behavior will of course occur in the chart after 9 AM. And second, i want regulate trading to 9:30am-4pm.

      So in the end, i want that the backtesting engine calculate the indicators 24h a day, but that i can limit trading to some specific hours.
      Attached Files

      Comment


        #4
        In that case, please see this reference sample for how to set up time filters: http://www.ninjatrader-support.com/v...ead.php?t=3226
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,606 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        13 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X