bred_bred1 / Publications
Forum
OrderCalcMargin() always returns true and margin 0
Hi, Stuck into a problem. Using the standard MoneyManagement modules results in OrderCalcMargin always returns true and margin 0. in AccountInfo it's that call OrderCalcMargin (trade_operation,symbol, 1.0 ,price,margin) which with further execution leads to the usage maxvolume of the symbol
Pass the class member function as an argument to the class member function
Hi, Have a code from standard library //snippet from a standard library module Expert\Signal\SignalMA.mqh with additional Compare() and LongCondition() class CSignalAMA : public CExpertSignal { protected : CiAMA m_ma; double MA( int ind) { return