
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
That is the initialization list for an array, but you have only a single variable.
this works but you lose integers
That is a single variable not an array. Stop trying to use initializer lists on a single variable.
That is a single variable not an array. Stop trying to use initializer lists on a single variable.
this works but you lose integers
Since we are still waiting for MQ to add commission details to the MQL-API, I have found in
Include/Trade/PositionInfo.mqh
this member function:
Which seems to show an undocumented predefined constant/enum to retrieve a positions commission charge.
MetaEditor does not mark this constant as "red" (default color scheme) and therefore does not acknowledge this as existing/valid, but mql5.com does.
Also there is no mentioning of POSITION_COMMISSION in the documentation, at lest I was unable to find it.
EDIT:
https://www.mql5.com/en/forum/374848
EDIT2:
StrikeOut: See next post, please.
It is documented with a single line in Documentation on MQL5: List of MQL5 Constants
But nothing else is explained about it.
EDIT: It probably only returns the current entry commission of a position just as it is mentioned in the Standard Library class method documentation ...
Undocumented error #4307.
Example: https://www.mql5.com/en/forum/363224#comment_20858284
https://www.mql5.com/en/docs/python_metatrader5/mt5initialize_py
path
[in] Path to the metatrader.exe or metatrader64.exe file. Optional unnamed parameter. It is indicated first without a parameter name. If the path is not specified, the module attempts to find the executable file on its own.
There is no "metatrader64" exe file but terminal64.exe