Go Back   DailyFX Forum

View Single Post
  #11 (permalink)  
Old 06-09-2009, 12:56 AM
DrMark DrMark is offline
Member
 
Join Date: Dec 2006
Posts: 23
DrMark is on a distinguished road
Question Getting close to the answer -- I think

I think we may have found something. This is the code I use to create the core object. I copied it from the example program (LoginAndTrade) supplied with the API download and then modifed it for VB.NET.

Private core as Object
.
.
.
Private Function CreateCore() As Boolean
Try
core = CreateObject("Order2Go.core")
CreateCore = True
Catch ex As Exception
Throw ex
End Try
End Function

I also tried your C# test console program in Visual Studio and successfully executed a trade in my real account while I watched it from TS. Now I will adjust my program to look like yours and I think we will have this one solved. Thanks so much for your help !!!!!!! Now all we have to do is get the API to work with Micro Accounts.


DrMark

Last edited by DrMark; 06-09-2009 at 01:47 AM..
Reply With Quote
 


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