ISO8601 - futures io
futures io



ISO8601


Discussion in TradeStation

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ISO8601

(login for full post details)
  #1 (permalink)
ZARk
Waterloo
 
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received

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

Journal Challenge April 2021 results:
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(620 thanks from 61 posts)
looks_twoSalao's Journalby Salao
(162 thanks from 29 posts)
looks_3Learning to Profit - A journey in algorithms and optionsby Syntax
(115 thanks from 27 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(94 thanks from 30 posts)
looks_5Maybe a little bit different journalby Malykubo
(53 thanks from 32 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
124 thanks
The Crude Dude Oil Trading System
85 thanks
Spoo-nalysis ES e-mini futures S&P 500
65 thanks
The tiyfTradePlanFactory indicator
31 thanks
Building a Crypto Mining Rig
19 thanks
 
(login for full post details)
  #2 (permalink)
 Fat Tails 
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,857 since Mar 2010
Thanks: 4,238 given, 26,759 received


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
The following user says Thank You to Fat Tails for this post:
 
(login for full post details)
  #3 (permalink)
ZARk
Waterloo
 
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received



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
 
(login for full post details)
  #4 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
 
Posts: 72 since Feb 2011
Thanks: 274 given, 36 received

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
 
(login for full post details)
  #5 (permalink)
ZARk
Waterloo
 
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received


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
 
(login for full post details)
  #6 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
 
Posts: 72 since Feb 2011
Thanks: 274 given, 36 received


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
 
(login for full post details)
  #7 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
 
Posts: 72 since Feb 2011
Thanks: 274 given, 36 received

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

Reply With Quote


futures io Trading Community Platforms and Indicators TradeStation > ISO8601


Last Updated on March 19, 2012


Upcoming Webinars and Events

NinjaTrader Indicator Challenge!

Ongoing

Journal Challenge w/$1,800 in prizes!

May 7

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts