Download MetaTrader 5

Question about PositionsTotal() from a newbie

To add comments, please log in or register
johnf35
17
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 

Alain Verleyen
Moderator
31478
Alain Verleyen  
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