Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
StartTime/EndTime format?
Collapse
X
-
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?
-
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:
-
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:
-
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.
ThanksTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Leave a comment: