where GlobalVariableSet and GlobalVariableGet are used high-frequently, ping delay in MT4 ?

 

I use Beeks VPS. the specs are 1 core cpu, 1.3G memory.

I made an EA uses GlobalVariableSet and Get high-frequently for MT4.

After i launch the EA, I realized that ping speed was up comparing with one some hours ago.

I don't know why. but i think the reason is connected with memory leaks?

Do you know this reason?

 
hoitaku:

I made an EA uses GlobalVariableSet and Get high-frequently for MT4.

After i launch the EA, I realized that ping speed was up comparing with one some hours ago.

I don't know why. but i think the reason is connected with memory leaks?

  1. GVs are normally used for interprocess communication (and a poor man's persistent storage.) Unless you are using it in that method, you should be doing that.
              The XY Problem

  2. Ping speeds do vary; measure long term. Just as indicators can not trade because that would stop the terminal, your high frequency updates could be slowing down the terminal. Why are you doing that?
  3. Measure RAM usage over time and find out, don't think. Then fix your broken code.
Reason: