simoncs:
Hi
I am running an ea on a vps. The trace from vps to the broker reports about 70ms.
I included the below code into my EA to check latency and slippage. The first time the ea traded it reported 375ms, which is about what I was getting at home, about 15000 km away from the brokers server.
Could this code not be reflecting what I am trying to check, or could it be an issue with the vps? I have spoken to the vps provider and they can't see any issue.
Are you sure RefreshRates() is needed ? If yes, you have to execute it before your start counter. Not sure what can be the impact though.
Hi
I am running an ea on a vps. The trace from vps to the broker reports about 70ms.
I included the below code into my EA to check latency and slippage. The first time the ea traded it reported 375ms, which is about what I was getting at home, about 15000 km away from the brokers server.
Could this code not be reflecting what I am trying to check, or could it be an issue with the vps? I have spoken to the vps provider and they can't see any issue.
I use the code below, but I think the speed is the time for order to go, to be filled and to come back from broker
That's why I get between 300 and 3000ms results. My server is only at 1ms from broker server.
tick=GetTickCount(); ticket=OrderSend(Symbol(),OP_SELL,lotshort,BID,Slippage,stop,takeprofit,EANAME,MAGIC,0,Red); speed=GetTickCount()-tick;
kissandfly:
I use the code below, but I think the speed is the time for order to go, to be filled and to come back from broker
That's why I get between 300 and 3000ms results. My server is only at 1ms from broker server.
interesting, thanks.
my concern was also that i was getting the same times from home. If what you say is correct, then it almost looks like it vps has less impact from a slippage point of view, and is more to do with the brokers processing time.
Yes. It is brokers processing speed. If you don't notice, try doing trade 8 hours apart. You will see there are trades that opened real fast while there might be times when trades opened after quite some time.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am running an ea on a vps. The trace from vps to the broker reports about 70ms.
I included the below code into my EA to check latency and slippage. The first time the ea traded it reported 375ms, which is about what I was getting at home, about 15000 km away from the brokers server.
Could this code not be reflecting what I am trying to check, or could it be an issue with the vps? I have spoken to the vps provider and they can't see any issue.