Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StartTime/EndTime format?

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

  • kenb2004
    replied
    JC

    What's the point? Why not an integer? If you used ToTime instead of DateTime wouldn't it be simpler. What is the purpose of the complication? Is one more accurate or what? Declaring, defining, properties, why not an integer?

    Leave a comment:


  • NinjaTrader_JC
    replied
    Hello kenb2004,

    The SampleDateTimeFunctions shows the formats of the DateTime object use. So you could create a new DateTime object for the startTime and endTime of the object that you want to draw at those specific times.

    Another reference that you can use is the VWAP indicator that creates new DateTime series at the following link.
    http://www.ninjatrader.com/support/f...id=1&linkid=71

    To read more information about DateTime you may view the following link.
    http://msdn.microsoft.com/en-us/libr...(v=vs.90).aspx

    Please let me know if I can be of further assistance.

    Leave a comment:


  • kenb2004
    replied
    I'm sorry but that sample does not answer my question. What do I put in the startTime argument for Today at 9:30 AM? This is as simple a question as I can get.
    Last edited by kenb2004; 07-16-2012, 11:01 AM.

    Leave a comment:


  • NinjaTrader_JC
    replied
    Hello kenb2004,

    The startTime and endTime are going to use a DateTime object not just an integer for a reference. For an example on how to use and modify DateTime objects you may view the following forum post for a sample.

    http://www.ninjatrader.com/support/f...ad.php?t=19292

    Please let me know if I can be of further assistance.

    Leave a comment:


  • kenb2004
    started a topic StartTime/EndTime format?

    StartTime/EndTime format?

    In various Drawing Object properties "startTime" and "endTime" are listed as optional arguments. What is the proper format for startTime if the time is 9:45 AM? I tried 94500 and it shut down my indicator completely.
    Thanks

Latest Posts

Collapse

Topics Statistics Last Post
Started by CarlTrading, 03-31-2026, 09:41 PM
1 response
81 views
1 like
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 04-01-2026, 02:41 AM
0 responses
42 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 03-31-2026, 11:44 PM
0 responses
64 views
2 likes
Last Post CaptainJack  
Started by CarlTrading, 03-30-2026, 11:51 AM
0 responses
66 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 03-30-2026, 11:48 AM
0 responses
54 views
0 likes
Last Post CarlTrading  
Working...
X