| / | Forum |
|
ukt
2008.06.16 21:38
wondering... docs say that OrderClose() is trading operation. seems ok, as client must talk to server. what seems strange is that OrderClose() of 12 orders can take place with or without " while(!IsTradeAllowed()) ..." the without was in a OrdersTotal()-1 for loop with OrderSelect(...) > switch(OrderType()) > OrderClose(...) if this done with OrderSend() or OrderModify() would expect comms delays + server think time to cause an execution error of some sort eg, ERR_SERVER_BUSY or ERR_TOO_FREQUENT_REQUESTS or... Or am I that slow here, that ~2740ms is indeed acceptable speed? Can appreciate that client/server talk can be minimal as is command to close specific order, but server must ack the command result status back to client etc. Basically IsTradeAllowed() should be used for send/modify otherwise issues appear... So - c'mon then, please explain to me why can be done without IsTradeAllowed() and done what seems to me a fast time? If normal/or? to expect this, please explain what you believe happens for an OrderClose() transaction and why, unlike send/modify, IsTradeAllowed() not needed. time of tests 17:13..17:18 gmt |
|
How to Evaluate the Expert Testing Results The article gives formulas and the calculation order for data shown in the Tester report. |
|
phy
2008.06.16 21:53
12 x 200ms = 2.4 seconds Sounds reasonable. |
|
ukt
2008.06.16 22:05
Thanks phy but: "sounds reasonable". what does this mean? can I open or modify 12 orders in average 200ms each without using IsTradeAllowed() ? What is difference in client/server traffic regards close/open/modify ? Would you place 12 open orders in a tight loop without using IsTradeAllowed() ? ;) |
|
phy
2008.06.16 23:48
"Or am I that slow here, that ~2740ms is indeed acceptable speed?" ... "sounds reasonable" means that amount of time for internet communication latency and trade server order processing does not raise a flag in my mind as to being too slow or too fast, but, reasonable. ... "What is difference in client/server traffic regards close/open/modify ?" ... Since communication between the client and server is encrypted, I have not monitored that information. ... "Would you place 12 open orders in a tight loop without using IsTradeAllowed() ?" ... I don't remember ever using IsTradeAllowed. If an order results in an error I try it again. ... ... ... A little test here, open and close 5 orders takes about 3 seconds, on demo. . 2008.06.16 16:19:15 Phy__BuySell EURUSD,H1: Elapsed Time = 2937 |
|
ukt
2008.06.17 01:20
right, ok - thanks for input... I'll still do the checks anyway. |
|
-MIRACLE-
2009.01.15 14:50
Hai im a newbie. I had 3 script that works in 14pairs cause i plan to using basket trading. The scripts is: 1. Buy All 2. Sell All 3. Closed All The problem is can you make the buy or sell script had an magic number so when i closed all trades that opened by my buy or sell scripts it didn't affecting my other trades that is opened by my EA. It's just closed the 14 pairs that i opened by the scripts (buy or sell). And also can you make the scripts open more faster? Can you help me? And also i attached the files of my scripts ok... |