Latency check on Ea running on vps
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;
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.
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.