Download MetaTrader 5

Symbol Equity When Trading Multiple Currency Pairs

To add comments, please log in or register
Read the Forum and improve your rating!
jamesmean
189
jamesmean 2014.01.02 06:10 

Hello,

 

I was wondering if someone could point me in the right direction.  I've been trying to modify my expert so that it will send out multiple trades when a currency pair is negative.  For instance, if i trade three currency pairs at one time, and all of them are in profit except for one, I would like the ability to add in additional orders except to the one that is unrealized negative.  In order to do this, I've tried SymbolInfoInteger(), but none of the options provide the integer amount for the outstanding equity of a specific currency pair.  Can anyone help?

 

Thanks!

 

 

James 

Alain Verleyen
Moderator
30640
Alain Verleyen 2014.01.02 12:13  
jamesmean:

Hello,

 

I was wondering if someone could point me in the right direction.  I've been trying to modify my expert so that it will send out multiple trades when a currency pair is negative.  For instance, if i trade three currency pairs at one time, and all of them are in profit except for one, I would like the ability to add in additional orders except to the one that is unrealized negative.  In order to do this, I've tried SymbolInfoInteger(), but none of the options provide the integer amount for the outstanding equity of a specific currency pair.  Can anyone help?

 

Thanks!

 

 

James 

There is only 1 position for each symbol, so you can use the following :

PositionSelect(_Symbol);     
PositionGetDouble(POSITION_PROFIT);
jamesmean
189
jamesmean 2014.01.03 01:45  
angevoyageur:

There is only 1 position for each symbol, so you can use the following :

angevoyageur
:

There is only 1 position for each symbol, so you can use the following :

THANK YOU VERY MUCH!  It has solved my problem and the expert works EXACTLY how I wanted it to.  Than you again and you've been a big help.
To add comments, please log in or register