Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TradingHours.Get vs. String2TradingHours & Converters

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

    TradingHours.Get vs. String2TradingHours & Converters

    Hi,


    TradingHours.Get() vs. TradingHours.String2TradingHours()

    Question #1: Is there any difference between using TradingHours.Get("The Name of a Trading Hours Template") and TradingHours.String2TradingHours("The Name of a Trading Hours Template")?

    Question #2:Is one of these better to use in certain situations but the other better for other situations?


    TradingHoursDataConverter vs. OrderFlowPlusTradingHoursDataConverter

    Question #3: Also, is there any difference between using TradingHoursDataConverter and OrderFlowPlusTradingHoursDataConverter attribute to decorate a string property that represents the name of a trading hours template so that it appears as a drop-down list in the NinjaTrader user interface, other than that the "Use Current" item in the drop-down list created by decorating a string property with the TradingHoursDataConverter is "<Use instrument settings>" whereas the "Use Current" item in the drop-down list created by decorating a string property with the OrderFlowPlusTradingHoursDataConverter is "<Use data series settings>"?

    Question #4: Is one of these better to use in certain situations but the other better for other situations?

    Thank you in advance!

    EquityTrader

    #2
    Hello EquityTrader,

    As these are not documented in the help guide, I'll need to do some research on these questions.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi ChelseaB,

      Thank you very much in advance for your time and expertise. I am sure that I am not the only one who would like to fully understand these aspects of using these powerful "Trading Hours" drop-down lists in my strategies and indicators.

      Best regards,

      EquityTrader

      Comment


        #4
        Hi ChelseaB,

        It has been a week so I am just checking in. I still need to know the answers to the questions in my original post. Can you or someone else on your team please help me?

        Thank you very much,

        EquityTrader

        Comment


          #5
          Hello EquityTrader,

          In researching I'm not seeing any difference in these methods and these can be used interchangeably.

          As TradingHours.Get() is documented, I would recommend using this instead of TradingHours.String2TradingHours() which is an internal method and subject to change without documentation or a release note.​
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hi ChelseaB,

            Thank you for your help with this and for your time.

            EquityTrader

            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