Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Tracking time
Collapse
X
-
Tracking time
I am looking to execute a trade after X amount of time where the high has not been compromised. The idea is check the closing price every minute and compare it to the previous price(high in this case) and if after X time the high has not been overwritten, then begin the trade. I have been looking for a method, but am not finding one. Do people here use C# DateTime structure to track lapsed time ?Last edited by asdfasdf; 04-07-2015, 09:09 AM.Tags: None
-
Hello asdfasdf,
Thank you for your note.
Yes you can use DateTime objects and other C# code in NinjaScript which is written in C#.
Each bar also has a timestamp that is a DateTime object.
This can be accessed with Time[int bars ago].
Below is a link to the help guide on Time.
http://www.ninjatrader.com/support/h...s/nt7/time.htm
Also, if you are running on a 1 minute chart, each bar will close after 1 minute.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
56 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment