How trade more than one

 

Trading an EA, I have only one trade pending.

I suppose it's because in program there is : If(total<1)......

What if I want till 4 trades maximum, but on 4 different pairs.

Thanks for help.

 

if you are using the same format i think you are, here's a way i prefer to use, i learned it from aaragorn .

Where it says, which i think defines your description.

if(OrdersTotal() < 1)[/php]

i like to add a global variable and use it like this

if(OrdersTotal() < MaxOpenTrade)

and be sure to add global variable

[PHP]extern double MaxOpenTrade = 4

at the top.

i use this method simply becuase it's quicker to edit, and can be done quickly through the tester window for experementing.

simple as that

Reason: