Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting with ET TimeZone

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

    Backtesting with ET TimeZone

    Hi,

    I'm developing a strategy that utilizes ET time for setting Entry Times and Exit Times, multiple times throughout the day. I employ TimeZoneInfo.ConvertTime to convert any time to ET to maintain consistency in the strategy. Additionally, I use marketDataUpdate.Time from OnMarketData to retrieve the time.

    Questions:
    - What time does the strategy analyzer use for conducting backtesting?
    - Would the approach mentioned above function in the strategy analyzer to define entry and exit times?
    - If not, how can I ensure obtaining the correct time to properly conduct backtests in the Strategy Analyzer?

    Thank you.​

    #2
    Hello ervin,

    Thank you for your post.

    The Strategy Analyzer runs backtests based on the Trading Hours selected in the backtest settings. The time displayed in the results is based on the Time Zone selected at Control Center > Tools > Options > General > Preferences and that time zone may be identified using Core.Globals.GeneralOptions.TimeZoneInfo. You could either attempt to convert those times to ET as you are doing, or you could try to convert your start times and end times from ET to the time zone configured in the application.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Thank you Emily,
      - What about summer time for ET? it's automatic?
      - I'm not shore but I think I have read somewhere that in backtest does not work OnMarketData, I'm rigth? or it's ok use that?

      Comment


        #4
        Hello ervin,

        Thank you for your reply.

        If you are referring to time changes for when Daylight Savings Time starts and ends, yes that is automatic. OnMarketData() is a real-time data stream and it is not called on historical data unless you enable Tick Replay. If you enable Tick Replay, then the Last market data event may be replayed even on historical data in a backtest. This is noted on the help guide page here:Please let us know if we may be of further assistance.

        Comment


          #5
          Thank you, i'll chek it out.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          56 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X