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

Input Parameters for Day & Time Variables

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

    Input Parameters for Day & Time Variables

    Hello!

    I need to know how to create input parameters in NinjaScript properties that allow inputting a date, not just a time. I have to input both a day and a time in my indicator.

    I don't know NinjaScript or C# adequately enough to do it alone. I once saw a NinjaScript indicator showing how to code this, but I can't find it again.

    Any hint about it? I don't mind getting my hands dirty coding; It's the best way to learn.

    #2
    Hello Gianpiero,

    You can use the following property to generate a date picker plus time entry. The time is typed in where as the date is selected.

    Code:
    [NinjaScriptProperty]
    [PropertyEditor("NinjaTrader.Gui.Tools.ChartAnchorTimeEditor")]
    [Display(Name="MyDateTime")]
    public DateTime MyDateTime { get; set; }
    JesseNinjaTrader Customer Service

    Comment


      #3
      Great! That's exactly what I needed

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Patlpp, 08-16-2021, 03:10 PM
      11 responses
      504 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by DawnTreader, Yesterday, 05:58 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by ntram, Yesterday, 05:39 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by bmarovets, Yesterday, 06:33 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by FishTrade, Yesterday, 03:42 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X