Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > General Discussion

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 02-10-2009, 10:14 AM
chz chz is offline
Member
 
Join Date: Oct 2008
Posts: 5
chz is on a distinguished road
Question beginning to work with o2g...

sorry first of all, can someone please move this post to the Forum "Order2Go COM Trading API", because i am off-topic here. thank you!


good afternoon from vienna, austria, europe!

after i have read more than one time some of the source examples of the o2g api i have some questions.

i want to write a program that trades one particular instrument like EUR/USD or GBP/JPY. there is no user interaction necessary. the program shall compute quantity, open long or short, monitor the position and close it after certain rules, all by itself.

as far as i have learned i can take the LoginAndTrade... part in c++ and enrich it with my coding, including all branching and the loops. is this possible?

parts of the decision management are basing on the prices tick by tick. can i program the retrievement of the price stream from any other already existing example program?

so what do i need for it? i suppose
1. learn to understand and program in c++ (thx god i can read parts of it)
2. a c++ development kit (compiler), right? is there existing somthing in free?

thanks in advance for your help
chz
Reply With Quote
  #2 (permalink)  
Old 02-10-2009, 04:28 PM
Member
 
Join Date: Oct 2008
Posts: 474
Nikolay.Gekht is on a distinguished road
Quote:
as far as i have learned i can take the LoginAndTrade... part in c++ and enrich it with my coding, including all branching and the loops. is this possible?
Yes, you can. You can use Microsoft Visual C++ 2008 Express Edition which is free.

But let me note that C++ is not the easiest language :-) to program COM code. What about C#? It is a bit bigger in deployment because of .NET is required, but much easier to develop and debug the code.

You can also start code using Microsoft Visual C# 2008 Express Edition or using .NET SDK (without IDE, but there are many good text editors)!

Since you decide which language is the most comfortable for you I can recommend you examples to see.
Reply With Quote
  #3 (permalink)  
Old 02-11-2009, 01:02 PM
chz chz is offline
Member
 
Join Date: Oct 2008
Posts: 5
chz is on a distinguished road
Good evening from Vienna, Austria, Europe!

Quote:
Originally Posted by Nikolay.Gekht
Yes, you can. You can use Microsoft Visual C++ 2008 Express Edition which is free.
Thank you for this hint, i will have a look where i can find it.

Quote:
Originally Posted by Nikolay.Gekht
But let me note that C++ is not the easiest language :-) to program COM code. What about C#? It is a bit bigger in deployment because of .NET is required, but much easier to develop and debug the code.

You can also start code using Microsoft Visual C# 2008 Express Edition or using .NET SDK (without IDE, but there are many good text editors)
I admit that it seems quite difficult to understand for me because I am pretty new to programming in object oriented languages, at least not to programming in general. Will the program have a quicker performance in C++ than in C#?

Quote:
Originally Posted by Nikolay.Gekht
Since you decide which language is the most comfortable for you I can recommend you examples to see.
So if the program will run faster in c++ than in C# then i have made up my mind about choosing C++. I am already looking for the main characteristics to learn more about it. The logical structure of the program that i want to design is already existing in a nassi-shneiderman diagram. also a very short code-like structure (do while loops, if and case decisions, ...) i have already written.

Thanks a lot for help in the beginning, I am looking forward to see the examples, maybe they are even commented so I can see what hppens what for...

Best wishes
ChZ
Reply With Quote
  #4 (permalink)  
Old 02-19-2009, 11:56 AM
Member
 
Join Date: Oct 2008
Posts: 474
Nikolay.Gekht is on a distinguished road
In the situation when your application do not do heavy calculation or big data array processing - the most time will be spent inside of I/O and remote operations, including work inside of o2go. So, in this case it is not matter when language do you use. Really, the C# is 1.5-5 times slower in the calculations. The only thing is really slower in the C# (as well as in java) - the memory allocation. It's the price of the garbage collection. But you can avoid this problem by reasonable memory usage policy.

What about "OO" programming you always can limit yourself with a set of static methods inside of one class what will be exact analogue of the functional programming.
Reply With Quote
  #5 (permalink)  
Old 08-04-2009, 12:01 PM
Registered User
 
Join Date: Aug 2009
Posts: 2
Iucky is an unknown quantity at this point
Question hello world example

Quote:
Originally Posted by Nikolay.Gekht View Post
What about C#? It is a bit bigger in deployment because of .NET is required, but much easier to develop and debug the code.

You can also start code using Microsoft Visual C# 2008 Express Edition or using .NET SDK (without IDE, but there are many good text editors)!
Can you link me to a thread, video, website with a good hello world tutorial in c# express edition? I just want to write something that will open a trade and close it 5 minutes later just for fun but really don't know where to begin. Thanks for any guidance.
Reply With Quote
  #6 (permalink)  
Old 08-05-2009, 12:17 AM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
There are Help document and Example inside the Order2Go COM Trading API package.

You might want to request for this API and take a look.

To request for the API, please visit http://www.fxprogrammers.com/api_request.htm

Last edited by FXCM Help; 08-05-2009 at 12:21 AM..
Reply With Quote
  #7 (permalink)  
Old 08-11-2009, 04:42 PM
Registered User
 
Join Date: Aug 2009
Posts: 2
Iucky is an unknown quantity at this point
thanks for the link i've filled out the form requesting o2g api for use with c#

is there a time limit that i can use the service before having to pay a fee? how does that work? i don't mind only trading with fxcm since it has the best fractional pip spreads etc. so if that's the only requirement i should try and read more about o2g and work through a simple c# application to trade everyday at 1pm and close at 2pm. (terrible strat i know but i got to start somewhere)

am i missing the purpose of o2g?
Reply With Quote
  #8 (permalink)  
Old 08-11-2009, 08:45 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
There is currently no time limit for the usage of Order2Go COM Trading API.
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 08:14 PM.
Copyright ©2009 Daily FX. All Rights Reserved.