MQL5 open 4 positions per trade

 

Hey guys, I'm quite new to MQL5 so this might be a noob question.

When I get my entry signal I want to open 4 positions, each with the same Stop loss but but different Take profits. 

So I guess my question is how to I open 4 positions and how do I set each position with its own take profit level?

I'm thinking it might be an array of sorts. 

 
Okeyo Giose:

Hey guys, I'm quite new to MQL5 so this might be a noob question.

When I get my entry signal I want to open 4 positions, each with the same Stop loss but but different Take profits. 

So I guess my question is how to I open 4 positions and how do I set each position with its own take profit level?

I'm thinking it might be an array of sorts. 

In fact, you'd better use a simple loop.

Reason: