View Single Post
  #4 (permalink)  
Old 04-27-2005, 09:22 AM
sccz97 sccz97 is offline
Sophomore
 
Join Date: Apr 2005
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
sccz97 is a jewel in the roughsccz97 is a jewel in the roughsccz97 is a jewel in the roughsccz97 is a jewel in the rough
Default

Quote:
Originally Posted by scorpion
No, I want to present this goodie to the public to make the best use of it.
First of all, many thanks for providing the the public with this. I've spent too long trying t ofigure out a way to get the mtapi.dll working in .NET!

I've gone through your example and everything works fine until I try managing orders. Looking at the original API and comparing to the methods in your wrapped dll, I am unsure of certain parameters that are required to send orders. For CloseOrder() I'm sure I'm using the correct price (just grabbing the closeprice from the traderecord) but I'm getting a NotEnoughRightsException, same with ModifyOrder(). Also, for SendOrderInfo, I'm unsure as to what the CRC and Req_Code shoudl be. Lastly, do I have to specify a price (current bid/ask) or can I leave that as 0?

Again, many thanks
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now