Go Back   DailyFX Forex Forum | FX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Order2Go COM Trading API Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 08-13-2009, 11:58 AM
Member
 
Join Date: Jan 2007
Posts: 39
imported_robert is on a distinguished road
Time stamps in queues and returned from Open, Entry,closed Tables

I'm a bit confused:

ONE::

The manual tells me that the times from stats history function return UTC. They don't currently they return to me UTC-5hrs for both demo and real accounts. The function I talk about is:

histData = (FXCore.MarketRateEnumAuttopTree.Ts.OTradeDesk.Get PriceHistory
(myInstrument.CurrencySlashPair, thisTimeStat, dtStart, dtEnd, 300, true, true);

Q: What is the historical stats function in Order2go supposed to return and if it's US time when we flip from EST to EDT does this affect the time stamps?

TWO::

When using the following function to return the time from the Open table, Closed Table and Entry Orders Table I get some suprising results.

For Orders:
DateTime thisDateTime = (DateTime)orders.CellValue(r, "Time");

For example, my localtime (UK), is 17:05. UTC is 16:05. But the above function returns 20:05?

Any advice welcome??



Any ideas what I'm doing wrong here?

Thanks

Last edited by imported_robert; 08-13-2009 at 12:03 PM..
Reply With Quote
  #2 (permalink)  
Old 08-13-2009, 04:36 PM
Member
 
Join Date: Oct 2008
Posts: 609
Nikolay.Gekht is on a distinguished road
Regarding point one:
Please use GetPriceHistoryUTC. The regular version returns dates and times in the server's timezone (this is backward compatibility issues).
Regarding point two:
Hm... Could you please write what database are you connecting to? You can see the database name in the trading station status bar, in 5th pane, right after the "lock" icon. It will be something like "Demo: U100D1". And... please check whether you use the latest version of order2go.

Last edited by Nikolay.Gekht; 08-13-2009 at 04:39 PM..
Reply With Quote
  #3 (permalink)  
Old 08-13-2009, 11:00 PM
Member
 
Join Date: Jan 2007
Posts: 39
imported_robert is on a distinguished road
Thanks for answer to ONE::, More info on TWO::

Thanks for point ONE:: - I will implement the change.

On point TWO:: I have the latest development release of Order2go on a web server in the States. The database I am connecting to is: MICRODEMO01. Incidently the FXTrade station times are correctly shown as UTC time - of course.

The times in trade station are shown military: 16:19 for the two entry orders in play and in my application Forex System Trader :: Account Status :: 8/13/2009 - select entry orders from the main menu you will see 8.19P.M. This is achieved through displaying thisDateTime from

DateTime thisDateTime = (DateTime)orders.CellValue(r, "Time");

If I log on to the same account through a local web server (UK), I see the same result 20.19 (8.19P.M.).

Last edited by imported_robert; 08-13-2009 at 11:02 PM..
Reply With Quote
  #4 (permalink)  
Old 08-14-2009, 09:05 AM
Member
 
Join Date: Oct 2008
Posts: 609
Nikolay.Gekht is on a distinguished road
Thank you for the information. I can see your problem, the server returns the incorrect timezone. I'll contact the support and will ask to fix it.
Reply With Quote
  #5 (permalink)  
Old 08-14-2009, 03:25 PM
Member
 
Join Date: Oct 2008
Posts: 609
Nikolay.Gekht is on a distinguished road
Please check it now. It shall be fixed.
Reply With Quote
  #6 (permalink)  
Old 08-21-2009, 01:52 AM
Member
 
Join Date: Jan 2007
Posts: 39
imported_robert is on a distinguished road
resolved issue

The situation is resolved - thankyou
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.

All times are GMT -5. The time now is 05:52 PM.
Copyright ©2009 Daily FX. All Rights Reserved.