Download MetaTrader 5
To add comments, please log in or register
Find out the latest MQL5.community news!
AussieBattler
103
AussieBattler 2014.07.05 05:58 

I am experiencing some weird issues with an EA I am currently working on.

The EA is modular and at present runs two interrelated strategies. When either strategy is run on it's own the EA runs fine, placing orders, modifying them, deleting them etc all as it should be.

However, when the strategies are both activated, the EA occasionally sets the SL/TP but then on the following order modification decides to remove the TP.

All two strategies are governed by their own order arrays, trading criteria and trading operations blocks. There is obviously some crossover between the two that is occurring but I can't seem to locate it.

If someone could please take a look and give some feed back that would be great.

Files:
maslopeea.zip 203 kb
AussieBattler
103
AussieBattler 2014.07.05 08:09  
To make things a little easier (seeing as there are a multitude of include files) I believe the issue lies in the SetStops include as this sets TP/SL levels after the pending orders have been filled
/
To add comments, please log in or register