Takes in as parameters the inputs to the indicator being loaded. This follows in sequence the inputs as they are defined by input statements inside the indicator itself.
When the indicator uses input group for "grouping" inputs, it is mandatory to accout for these "groups" with an empty string, as they are internally (by the terminal) handled as regular inputs.
For a detailed explanation see this thread please:
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:
//+------------------------------------------------------------------+//| Get the property value "POSITION_COMMISSION" |//+------------------------------------------------------------------+double CPositionInfo::Commission(void) const
{
return(PositionGetDouble(POSITION_COMMISSION));
}
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.
Is there a programagic way (like symbolinfodouble, or accountinfodouble) to get the broker's commission per lot. Commission per trade = turnover x commission rate = $11. I just want to grab it from inside mql5
Could this be related to using the customsymbolcreate customsymbolsetsessionquote from monday through friday which doesn t include saturday and sunday by default. I get this error when creating customsymbolsetsessionquote
[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
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