麻烦高手帮忙一下了,关于MT5的一点小问题。。

 

class CAccountInfo
{
public:
//--- fast access methods to the integer account propertyes
long Login();
ENUM_ACCOUNT_TRADE_MODE TradeMode();
string TradeModeString();
int Liverage();
ENUM_ACCOUNT_STOPOUT_MODE MarginMode();
string MarginModeString();
bool TradeAllowed();
bool TradeExpert();
string Company();
//--- access methods to the API MQL5 functions
long InfoInteger(ENUM_ACCOUNT_INFO_INTEGER prop_id);
double InfoDouble(ENUM_ACCOUNT_INFO_DOUBLE prop_id);
string InfoString(ENUM_ACCOUNT_INFO_STRING prop_id);
double FreeMarginCheck(string Symbol,int trade_operation,double volume);
};

//+------------------------------------------------------------------+
//| Access functions AccountFreeMarginCheck(...). |
//| INPUT: name -symbol name, |
//| trade_operation -trade operation, |
//| volume -volume of the opening position. |
//| OUTPUT: the property value. |
//| REMARK: no. |

double CAccountInfo::FreeMarginCheck(string symbol,int trade_operation,double volume)
{
return(AccountFreeMarginCheck(symbol,trade_operation,volume));
}
整个程序过长,中间一部分我省略表示了,在运行时得到一个错误: "AccountFreeMarginCheck" function is not defined. 我不知道在哪里及如何定义"AccountFreeMarginCheck".请高手帮个忙了。。十分感激。

 
版本问题。自动升级程序不管例子。
备份MT5安装目录下除了MQL5目录以外的全部文件
备份MQL5目录下自己写的文件
https://www.metatrader5.com//
下载最新版安装程序重装
恢复备份文件
重新编译那个例子,应该就好了。
原因: