Forum

EA Problem start() not executing

I am new to MetaTrader and I am having troubles with my EA. I activated an EA in my demo account and start() is not getting called. I was developing the EA a couple weeks ago and it was working well both on the demo and strategy tester . I have been away for a couple weeks, and upon my return; after

Limiting one entry per pair

Hi: I have been attempting to limit only one transaction (either long or short) per pair with the following code but it constantly opens up two transactions of each pair . Could it be due to asynchronous messages between the terminal and server? I tries sleep(3000) but that did not work either so I