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
int PositionsCount = PositionsTotal();
This line is for this error
int PositionsCount = PositionsTotal();
This line is for this error — 'PositionsTotal' - function not defined 63 30
Did you not read the post before yours?
Forum on trading, automated trading systems and testing trading strategies
Question about PositionsTotal() from a newbie
Alain Verleyen, 2014.12.20 18:20
PositionsTotal() is an mql5 function, are you trying to use it with mql4 ?
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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