Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Java Trading API Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 10-28-2009, 08:50 PM
Registered User
 
Join Date: Oct 2009
Posts: 2
fxmultitrader is an unknown quantity at this point
Getting data from recent past

I understand that when I start running my Java trading program, it will collect the data fed to it by the FXCM servers. So if I start my program running on my servers at Oct 29, 2009 12:00PM GMT then my server will collect data starting from that point onward into the future.

My question has to do with data from the recent past. For example, I want any indicators I code up (like a moving average for example) to be calculated using say daily data from the past 20 days, ie 20 trading days prior to Oct 29, 2009. Furthermore, suppose I am a day trader and am using hourly data to trade, and suppose my server goes down for some reason for 2 hours. Without the ability to "fill in" this missing data, my moving average and other indicators will have problems when my server comes back up.

So, how is it possible from the Java API to get any data from the recent past?

Note that any standard trading platform like MT4 has this ability. Just think of any time you open MT4 - it will fill in a set of charts with data from some time in the past until the most recent trade data. If the Java API is going to be useful as a real trading platform, it really should have this ability.

Can one of the FXCM programmers discuss how this problem is addressed in the Java API?

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-28-2009, 08:54 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Hello,

The java trading api does not have any functionality to collect historical data. We have an additional api/sdk for these purposes. Please look into our PEC SDK(Price Engine Client). You can speak with your sales rep for more information
Reply With Quote
Reply

Tags
data, historical

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 08:16 PM.
Copyright ©2009 Daily FX. All Rights Reserved.