#11 (permalink)  
Old 05-18-2005, 12:01 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

I find it has no problem. Maybe you don't set the Lots correctly, because Lots in mini differs from standard account and also differs from one currency pair to another. Be sure to pay more attention to it.

To know more about Lots of all pairs, you should explore the ConSecurity array returned from GetSecurities() function.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #12 (permalink)  
Old 05-18-2005, 03:07 PM
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
I find it has no problem. Maybe you don't set the Lots correctly, because Lots in mini differs from standard account and also differs from one currency pair to another. Be sure to pay more attention to it.

To know more about Lots of all pairs, you should explore the ConSecurity array returned from GetSecurities() function.

thanks for the pointer. I'm having a look at the differences and it appears that the volume i need to push through is just 10x that of the mini which of course makes sense as 1 lot in mini is 10k and 1 lot in std is 100k.

With this in mind, when I ask for the current rate with a volume of 1, it says invalid volume which i expect. 1000 (1 lot for std), it says off quotes. So I'm really confused
Reply With Quote
  #13 (permalink)  
Old 05-18-2005, 03:35 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

In standard account 1 lot of EURUSD = 100,000 units (100k), so the Lots value should be 100 for standard, while 10 for mini. (The Lots parameter expects lot size in kilo)
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #14 (permalink)  
Old 05-18-2005, 03:38 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Be careful with currency pair. If you play with GetSecurities(), you will see the lot size of GBPUSD = 70,000 while EURUSD = 100,000 in standard account.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #15 (permalink)  
Old 05-18-2005, 03:51 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Btw, use GetCurrentRate() before closing an order only. For normal flow of ticks, try using GetUpdatedTickInfo() while in pumping mode.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #16 (permalink)  
Old 05-18-2005, 04:29 PM
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
Btw, use GetCurrentRate() before closing an order only. For normal flow of ticks, try using GetUpdatedTickInfo() while in pumping mode.
I usually GetCurrentRate() before sending an order also because so many times I've been rejected using pumped prices because they're stale. THe main reason why I'm getting confused with GetCurrentRates() on standard account is that it just doens't seem to work regardless of the params I send.
Correct me if I'm wrong but shouldn't I be able to pass 0 as the volume parameters and still get the quote?
Reply With Quote
  #17 (permalink)  
Old 05-19-2005, 01:07 PM
Cartoon's Avatar
Super Moderator
 
Join Date: Aug 2004
Posts: 165
Thanks: 0
Thanked 1 Time in 1 Post
Cartoon is a name known to allCartoon is a name known to allCartoon is a name known to allCartoon is a name known to allCartoon is a name known to allCartoon is a name known to all
Exclamation

Sorry, did anybody here know how to make the metatrader"3" get the market price more faster?
Reply With Quote
  #18 (permalink)  
Old 05-19-2005, 03:38 PM
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 Cartoon
Sorry, did anybody here know how to make the metatrader"3" get the market price more faster?
scorpion will def know better but the pumping process seems to be on a timer like every second and there doesn't seem to be any way of altering the frequency. It's the same in the api as in the MT app. The way I'd get it faster i by callign the getcurrentrate/price function every 0.x seconds or however fast you require. This is most likely the cause of getting the Price Changed error so often during fast markets because the underlying price can change x times in 1 second while MT will only show the price every second. I find however I have more difficulty in closing out than opening a trade due to this issue. I think it might also depend on the dealer
Reply With Quote
  #19 (permalink)  
Old 05-19-2005, 11:51 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

All underlying restrictions are concealed inside mtapi.dll. If only I could hack the file and took out all restrictions. I disassembled the dll a few days ago, and I found 'Too frequent requests' restriction. Unfortunately it's quite complex to be removed. If only I were an expert in hacking the asm code.

I doubt whether the mtapi.dll is account for the delay in price update or not. But I think it is for sure. The dll might use GetUpdatedRate() to get rate from server every few seconds???
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #20 (permalink)  
Old 05-19-2005, 11:53 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Quote:
Originally Posted by Cartoon
Sorry, did anybody here know how to make the metatrader"3" get the market price more faster?
Faster market price can only be in high-speed feed api www.metaquotes.net/metatraderapi/feedapi.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket problems with MT3 API fxtrader625 MetaTrader and ZeroCode 2 12-29-2005 12:26 PM


All times are GMT. The time now is 11:15 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

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