MT4 Multiple Trades EA

 

Hi all,


I am creating an EA, but with some issues. I am following the MACD example advisor, but it will only allow one trade in a time, despite the EA is on multiple chart windows. What if I want to make a new trade in a new chart window? For example I create a new chart with EURUSD and run the EA on it. I run the EA onto USDJPY chart window, but the EURUSD is currently being traded. If the condition is right for USDJPY, it will not create a USDJPY trade until I close the EURUSD trade. I would like them to run in parallel. 

Please advise.


Thanks,

PiL

 

Make sure that you use a different magic number when attaching the ea to the new chart.

In future please post in the correct section

I will move your topic to the MQL4 and Metatrader 4 section.

 
Keith Watford:

Make sure that you use a different magic number when attaching the ea to the new chart.

In future please post in the correct section

I will move your topic to the MQL4 and Metatrader 4 section.

Thanks. I will remember to post in the right section next time. So for a new magic number, I could use, MathRand() ?

 
PublicImageLtd:

Thanks. I will remember to post in the right section next time. So for a new magic number, I could use, MathRand() ?

Why would you want to do that?

Just have the magic number as an input.

Reason: