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 argusthome, 03-08-2026, 10:06 AM
          0 responses
          110 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          59 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          37 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          41 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          78 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X