Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I need just a 24 hrs backtesting in forex

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

    I need just a 24 hrs backtesting in forex

    Hi Ninjas,

    For my Algo development, I need to do just several 24 hrs forex backtesting, understanding that each one of them should be done from 17:15 till 17:00 next day. This schedule is the natural flow of forex 24 hrs trading day. To do so I´ve set correctly this session, matching with my local pc time and US Eastern time.

    Despite all correct set, when I do this daily backtesting, it ALWAYS includes trades outside of that day I´m evaluating of, why? and what should I do to get a proper backtesting within the day I'm interested in?

    Thanks for your attention

    #2
    Hello pstrusi,
    I would suggest filtering your code with a time filter and see if you are able to get the correct entry/exits.

    Please refer to this sample code which demonstrates how to set a time filter
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks Joydeep, I´ll try this nice suggestion. I don´t understand why to do this is so hard, NT is a powerful software, it should be able to calculate this easily.

      Comment


        #4
        I wish in a future NT version, could be added to the Strategy Analizer an input section for time, so you can choose exact what you want to optimize.

        Thanks anyway for your attention, I won´t bother anymore with this matter

        Comment


          #5
          Hello pstrusi,
          Unfortunately it is the way NinjaTrader pulls the data for the From and To dates.

          I would suggest filtering your code with the Time filter t filter the trades.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          2 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          217 views
          1 like
          Last Post PaulMohn  
          Working...
          X