Multi Symbols EA

 

Good Day...

I am currently testing an EA to which it monitors simultaneously on 3 chosen symbols (EURUSD, GBPUSD, USDJPY). The EA at some point open trades, modify trades (Trailing stoploss), close trades on certain condition to which it allows to open 3 trades per symbol with a time interval. I have used an array to store the ticket number with the target profit to which the target profit will increase if the active trades reaches the target profit which will then compute the Trailing StopLoss needed in order to keep on profiting. The only problem that i observe is that, sometimes saving data on array is not that accurate. I mean, sometimes the EURUSD has 3 or more trades that the 2 symbols which sticks only to 3 opened trades...

Do you have alternative on this on how to monitor each trade in each symbol more accurately..

Thanks...

 
raven_chrono: sometimes saving data on array is not that accurate.

Code is always, perfectly, accurate. Humans are not. Your code is broken.
Fix your code, or post it and accurately describe what it is doing - there are no mind readers here.

Reason: