Go Back   DailyFX Forex Forum | FX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Price Engine Client SDK Support

Reply
 
Thread Tools Rate Thread
  #16 (permalink)  
Old 02-01-2010, 04:02 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
Does a demo account be expired after 30 days?
Yes they expire after 30 days but you can just open another demo account. Nothing in your code will change except for a different password and username that you will use to log on.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #17 (permalink)  
Old 02-01-2010, 04:42 AM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
For our application service will publich on iphone or facebook soon.(And user will know the dealing rate resource is "provided by FXCM")

Is it possible to get a "No expired demo account" ?

Thank you so much!
Reply With Quote
  #18 (permalink)  
Old 02-01-2010, 05:17 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
For our application service will publich on iphone or facebook soon.(And user will know the dealing rate resource is "provided by FXCM")

Is it possible to get a "No expired demo account" ?

Thank you so much!
You mean a demo account that doesn't expire? I believe so it is. You'll have to talk with your sales rep.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #19 (permalink)  
Old 02-08-2010, 01:42 AM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
According to what you have wrote: "The high and low on tick bars should not be looked at. The high and low is mainly for bars and is the high and the low of the bar.
If you want a session high and low, you would need to calculate that yourself or use Order2Go and grab the high and the low of the session from the rates table."

I have one more question:
Can we get the high&low immediatly for your trading API?or we really need to
calculate by ourself?
Now our problem is,If we miss some ticks(and the tick is the high or the low),we will have the wrong price.

Thanks!
Reply With Quote
  #20 (permalink)  
Old 02-08-2010, 02:11 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
According to what you have wrote: "The high and low on tick bars should not be looked at. The high and low is mainly for bars and is the high and the low of the bar.
If you want a session high and low, you would need to calculate that yourself or use Order2Go and grab the high and the low of the session from the rates table."

I have one more question:
Can we get the high&low immediatly for your trading API?or we really need to
calculate by ourself?
Now our problem is,If we miss some ticks(and the tick is the high or the low),we will have the wrong price.

Thanks!
You don't need to calculate it yourself. It's already calculated by the API. It's in the high and low columns of the Offers table. High gives you the highest Ask price for the current trading day (17:00 to 17:00 EST) and Low gives you the lowest Bid price for the current trading day (17:00 to 17:00 EST).
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #21 (permalink)  
Old 02-08-2010, 09:21 PM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
Now we compair every high/low we got form the Offers table,if the number is the highest or lowest.Then we showed it.(We used to show the high/low we got form the Offers table immediatly,but it was wrong.)

Please help to check it at
????? (the left side:FXCM Trading Platform, the right side:Our FXquote on Facebook)...There are so many differents,and we can't find out a solution.

Please help us to solve it.Thanks!
Reply With Quote
  #22 (permalink)  
Old 02-08-2010, 11:57 PM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
Now we compair every high/low we got form the Offers table,if the number is the highest or lowest.Then we showed it.(We used to show the high/low we got form the Offers table immediatly,but it was wrong.)

Please help to check it at
????? (the left side:FXCM Trading Platform, the right side:Our FXquote on Facebook)...There are so many differents,and we can't find out a solution.

Please help us to solve it.Thanks!
This could be due to different servers being used for fxquotes and trading station. Or a difference in the number of pips added to the spread on both. For example, FXCM MT4 uses the same prices as Trading Station but with an increased spread, therefore, you would see different prices there although very close to each other. Another example is the active trader platform, which displays prices very different from prices in Trading Station and with only a 1 pip spread at most. If you notice for EUR/GBP in the second set of tables the spread is different on both sides. For EUR/JPY in the first set of tables the spread is also different. Also, notice that prices tick at different times on all tables.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #23 (permalink)  
Old 02-09-2010, 12:33 AM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
We use the same account to sign in your FXCM Trading Station and our Quote on Facebook(is using your JAVA Trading API).

Does your FXCM Trading Station and JAVA Trading API use different server?
Reply With Quote
  #24 (permalink)  
Old 02-09-2010, 07:28 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
We use the same account to sign in your FXCM Trading Station and our Quote on Facebook(is using your JAVA Trading API).

Does your FXCM Trading Station and JAVA Trading API use different server?
THe Quote on Facebook uses the PEC API which obtains prices from a different server than Trading Station, hence the difference.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #25 (permalink)  
Old 02-09-2010, 07:57 PM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
Our Quote on Facebook uses your Java Trading API,not PEC API. Is that Java Trading API obtains prices from a different server than Trading Station?
Reply With Quote
  #26 (permalink)  
Old 02-10-2010, 07:42 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
Our Quote on Facebook uses your Java Trading API,not PEC API. Is that Java Trading API obtains prices from a different server than Trading Station?
What function are you using from the Java API to get the high and low of the trading session in your application.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #27 (permalink)  
Old 02-22-2010, 03:13 AM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
Our code to subscribe currency (some abridged):

IGateway mFxcmGateway = GatewayFactory.createGateway();
mFxcmGateway.registerGenericMessageListener(this);
mFxcmGateway.registerStatusMessageListener(this);
mFxcmGateway.login(new FXCMLoginProperties(sUsername, sPassword, sStation, sServer, sConfigfile));
...
MarketDataRequest mdr = new MarketDataRequest();
... // addRelatedSymbol
mdr.setFXCMTimingInterval(FXCMTimingIntervalFactor y.TICK);
mdr.setSubscriptionRequestType(SubscriptionRequest TypeFactory.SUBSCRIBE);
mdr.setMDEntryTypeSet(MarketDataRequest.MDENTRYTYP ESET_TICKALL);
mFxcmGateway.sendMessage(mdr);


Our code to pick High/Low:

long High = aMarketDataSnapshot.getAskHigh();
long Low = aMarketDataSnapshot.getBidLow();
Reply With Quote
  #28 (permalink)  
Old 02-22-2010, 06:42 AM
Member
 
Join Date: Jul 2009
Posts: 172
Daniel Alcarraz-Morales is an unknown quantity at this point
Quote:
Originally Posted by Youholder View Post
Our code to subscribe currency (some abridged):

IGateway mFxcmGateway = GatewayFactory.createGateway();
mFxcmGateway.registerGenericMessageListener(this);
mFxcmGateway.registerStatusMessageListener(this);
mFxcmGateway.login(new FXCMLoginProperties(sUsername, sPassword, sStation, sServer, sConfigfile));
...
MarketDataRequest mdr = new MarketDataRequest();
... // addRelatedSymbol
mdr.setFXCMTimingInterval(FXCMTimingIntervalFactor y.TICK);
mdr.setSubscriptionRequestType(SubscriptionRequest TypeFactory.SUBSCRIBE);
mdr.setMDEntryTypeSet(MarketDataRequest.MDENTRYTYP ESET_TICKALL);
mFxcmGateway.sendMessage(mdr);


Our code to pick High/Low:

long High = aMarketDataSnapshot.getAskHigh();
long Low = aMarketDataSnapshot.getBidLow();
Use aMarketDataSnapshot.getHigh(); and aMarketDataSnapshot.getLow();

Those two methods will give you the highest and lowest tick of the session.
__________________
FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.
Reply With Quote
  #29 (permalink)  
Old 02-23-2010, 11:50 PM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
Now we get the same High/Low price with FXCM Trading Platform.

Thanks a lot!
Reply With Quote
  #30 (permalink)  
Old 03-01-2010, 04:02 AM
Member
 
Join Date: Oct 2009
Posts: 23
Youholder is an unknown quantity at this point
Sorry for report again...


We found another question:

The High data is correct at the moment that we link to your server.
But when it being linked for many hours,some High data getting wrong.

Now we just subscribe only 23 pairs.
And restart our server(also relink to your server) everyday.
This situation still happens.

Please help to find out a solution.
Thanks again!


Rita
Reply With Quote
Reply

Tags
bidhigh

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