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 CarlTrading, Yesterday, 09:41 PM
          1 response
          20 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, Today, 02:41 AM
          0 responses
          7 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, Yesterday, 11:44 PM
          0 responses
          18 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          35 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          33 views
          0 likes
          Last Post CarlTrading  
          Working...
          X