Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 MarianApalaghiei, Today, 10:49 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            8 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            46 views
            0 likes
            Last Post bill2023  
            Working...
            X