Forum

Global vs local in OnTick()

I prefer to declare variables, structures and classes that I use in OnTick() globally (one time), rather than locally within OnTick(). I feel that it is more efficient and less time consuming considering that OnTick() is called so frequently. Yet I see that it is common practice to declare locally

No more Chicago server on MQL5 VPS?

I subscribed to the Chicago server connection on the MQL5 VPS a few months back. I now notice that this is gone and I've been connected to a New York server which of course has a higher latency. I checked and there is no longer any connection in Chicago. I trade CME futures with AMP Futures and they

2 or more pending orders in netting account for same symbol

I'm having a problem back testing my EA which opens 2 (or more) pending buy limit orders for the same symbol in a netting account. The deals associated with the 2 orders have different DEAL_TICKET and DEAL_ORDER values, but the same DEAL_POSITION_ID value. As a result, when a Take Profit (or Stop

VPS for custom symbol

Hello, I would like to subscribe to a MetaTrader VPS for my MQL5 EA. My EA uses a custom symbol on a 1-minute chart (e.g. 1.35* GC - 2.14* SI , where GC and SI are Gold and Silver futures symbols respectively). I am currently running the EA on this chart with no problems on my desktop MT5, even