NexusFi: Find Your Edge


Home Menu

 





ISO8601


Discussion in TradeStation

Updated
    1. trending_up 2,569 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
ZARk
Waterloo
 
Posts: 9 since Aug 2009
Thanks Given: 1
Thanks Received: 1

Hello

Any chance of getting time/date for a bar in ISO8601 UTC format ?

Or if i have to build the string myself, any chance of getting UTC timeformat ?

All i seem to find is the "Time" function, that returns the time of bar, but it will be different if the chart is configured in LOCAL time or EXCHANGE time.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


ZARk View Post
Hello

Any chance of getting time/date for a bar in ISO8601 UTC format ?

Or if i have to build the string myself, any chance of getting UTC timeformat ?

All i seem to find is the "Time" function, that returns the time of bar, but it will be different if the chart is configured in LOCAL time or EXCHANGE time.

In NinjaTrader you can convert any Date Time object from local time to UTC via DateTime.ToUniversalTime().

https://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime%28v=vs.90%29.aspx

I do not know how to do this with TradeStation.


Reply With Quote
Thanked by:
  #3 (permalink)
ZARk
Waterloo
 
Posts: 9 since Aug 2009
Thanks Given: 1
Thanks Received: 1



Fat Tails View Post
In NinjaTrader you can convert any Date Time object from local time to UTC via DateTime.ToUniversalTime().

https://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime%28v=vs.90%29.aspx

I do not know how to do this with TradeStation.


I know, i have no problem doing that in NinjaTrader. But since we are busy trying to make a function for TS to work with NinjaMonitor, we are going deep in the abilities of TS ^^'

The best i could find was the ComputerDateTime function that returns the current machine datetime.
Comparing that to the datetime of the currentbar in realtime mode, i can determine if the chart is running in exchange timezone or local timezone.

But still no way of finding the time in UTC format. I think i'll have to do without and use local time


Reply With Quote
  #4 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
Posts: 72 since Feb 2011
Thanks Given: 274
Thanks Received: 36

Sorry if you've been down this path but have you checked the DateTime Class? There are quite a few formatting options.


Reply With Quote
  #5 (permalink)
ZARk
Waterloo
 
Posts: 9 since Aug 2009
Thanks Given: 1
Thanks Received: 1


SammyD View Post
Sorry if you've been down this path but have you checked the DateTime Class? There are quite a few formatting options.

Classes in tradestation? That would be nice :-)
I've no issue with NinjaTrader to get utc, it's dead easy and obvious.

All I need is a way to get utc time in ts. I think I'll make an external dll


Reply With Quote
  #6 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
Posts: 72 since Feb 2011
Thanks Given: 274
Thanks Received: 36


ZARk View Post
Classes in tradestation? That would be nice :-)

Yep, quite an improvement. 9.x is required. In fact, in the help menu on top there is a whole section devoted to object oriented


Reply With Quote
  #7 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
Posts: 72 since Feb 2011
Thanks Given: 274
Thanks Received: 36

I should clarify, the Help menu in the Developement Environment--listed as Object Reference


Reply With Quote




Last Updated on March 19, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts