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 CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          22 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          121 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          176 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          92 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          134 views
          0 likes
          Last Post cmoran13  
          Working...
          X