• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Complete time value

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

    Complete time value

    In the image, the temporary configuration that I want to use appears but does not appear in the interface of the script

    Normally almost everything I find solution in the help (F1), this time I have not found the solution I need, someone has the way to solve this? nothing else is that in the interface of the script you can adjust the temporality in seconds.
    I would appreciate the help part where this is solved or if someone knows the solution.
    Thank you

    #2
    Hello franki,

    Thank you for your post.

    I wanted to clarify the question here, are you asking how to display the seconds? I am unable to determine anything else from the image and was unable to determine your specific question as you have worded it.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Excuse me if I have not been explicit in the previous message.

      Originally posted by NinjaTrader_Jesse View Post
      Hello franki,

      Thank you for your post.

      I wanted to clarify the question here, are you asking how to display the seconds? I am unable to determine anything else from the image and was unable to determine your specific question as you have worded it.

      I look forward to being of further assistance.
      Yes, I want to show the seconds in the interface of the script and configure it.



      In the code in the section (State == State.SetDefaults)
      I put the code
      Code:
       StartTime                        = DateTime.Parse("08:30:00", System.Globalization.CultureInfo.InvariantCulture);
       EndTime                         = DateTime.Parse("22:30:00", System.Globalization.CultureInfo.InvariantCulture);
      but in the configuration interface of the script, only hours and minutes appear, the seconds do not appear.
      for example if I want to configure 12:13:25, in the interface of the script ... I can only configure 12:13.

      Thank you for your attention.

      Comment


        #4
        Hello franki,

        Thank you for clarifying that.

        It looks like the way this displays time without seconds is the default for the NinjaTrader.Gui.Tools.TimeEditorKey. I will need to review further if this has the ability to display seconds but this may take some time as I will need to inquire with development.

        For now, you can use the following in place of the NinjaTrader.Gui.Tools.TimeEditorKey


        Code:
        [PropertyEditor("NinjaTrader.Gui.Tools.ChartAnchorTimeEditor")]
        This does change the Time picker into a Date/Time picker however you can type in the seconds as part of the time with this control. Once I have more details I will post back here.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you very much Jesse, it's not exactly what I was looking for but it's good to know the different options and I can use it while another solution appears.
          I'm really grateful to you!

          Comment


            #6
            Hello franki,

            It looks like there is yet another time editor that can be used, and this one does seconds. You can use the following syntax to get the full time:

            Code:
             [PropertyEditor("NinjaTrader.Gui.Tools.AutoCloseTimeEditorKey")]
            I look forward to being of further assistance.
            Last edited by NinjaTrader_Jesse; 03-21-2019, 02:04 PM.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by FMtrader, 03-15-2019, 02:30 AM
            6 responses
            31 views
            0 likes
            Last Post James108  
            Started by timko, Today, 08:18 AM
            0 responses
            1 view
            0 likes
            Last Post timko
            by timko
             
            Started by victorsmith, Today, 06:00 AM
            0 responses
            4 views
            0 likes
            Last Post victorsmith  
            Started by sohailashraf, Yesterday, 10:18 PM
            0 responses
            6 views
            0 likes
            Last Post sohailashraf  
            Started by jjnc2006, Yesterday, 07:36 PM
            0 responses
            16 views
            0 likes
            Last Post jjnc2006  
            Working...
            X