Example if I am in PST I want to market Open Market Time in EST so my indicator can adjust the time stamp to PST
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!
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
NinjaTrader
finding market times
Collapse
X
-
Hello ballboy11,
Thanks for opening the thread.
You can use GetNextBeginEnd() to get the begin and end of a session in the PC's local time.
All timestamps in NinjaTrader 7 are in relation to the PC's local time.
There is no timezone variable set in NinjaTrader 7 that will allow a user to have NinjaTrader 7 translate time stamps to another time zone. Translating the locally reported time to another time zone will need to be done on your own using the DateTime struct documented here: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
GetNextBeginEnd() - http://ninjatrader.com/support/helpG...xtbeginend.htm
Please let me know if I can be of further help.JimNinjaTrader Customer Service
-
Timestamps
I found the Previous Days time stamp. I can not find the open of the session though.
Are all future markets NY session the same amount of hours?
CL 8 hours
NQ 8 hours
etc
If so I will subtract the hours if not how do I find the DayOpen?
Print(Bars.TradingHours.GetPreviousTradingDayEnd(T ime[0])
Comment
-
Hello ballboy11,
Were you looking for direction for NinjaTrader 7 or NinjaTrader 8?
The property you have listed is a NinjaTrader 8 property. Within NinjaTrader 8 you may wish to use ActualSessionBegin or GetTradingDayBeginLocal() from a SessionIterator.
SessionIterator - https://ninjatrader.com/support/help...oniterator.htm
Please let me know if I may be of further assistance.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
53 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
33 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
5 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
19 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
6 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment