Download MetaTrader 5

Question about PositionsTotal() from a newbie

To add comments, please log in or register
All articles are available from MetaTrader 5. Contribute your own one!
johnf35
17
johnf35 2014.12.20 08:39 

Within MetaEditor 5.00, I have inserted the following line into my EA code: 

NumOpenPosns = PositionsTotal(); 

On compilation, I get the following error message: "'PositionsTotal' - function not defined."  How do I fix this problem?  Isn't PositionsTotal a built-in function?

johnf35 

Alain Verleyen
Moderator
30743
Alain Verleyen 2014.12.20 18:20  
johnf35:

Within MetaEditor 5.00, I have inserted the following line into my EA code: 

NumOpenPosns = PositionsTotal(); 

On compilation, I get the following error message: "'PositionsTotal' - function not defined."  How do I fix this problem?  Isn't PositionsTotal a built-in function?

johnf35 

PositionsTotal() is an mql5 function, are you trying to use it with mql4 ?
To add comments, please log in or register