test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no trading operations
test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 2016.02.0100:00 exp_martin_new NZDUSD,H1: initialization failed (32767) there are no trading operations
大家好!谁能够绕过余额为1美元的检查,我在我的代码中是检查如果没有足够的钱交易操作 不执行。因此,我得到以下验证日志
there are no trading operations
test on NZDUSD,H1
there are no trading operations
test on GBPUSDcheck,M30
there are no trading operations
test on XAUUSDcheck,Daily
there are no trading operations
如果在初始化阶段,你检查余额,检查最小手数所需的最低保证金,如果不够,就不启动专家顾问?
试过了,没有用
有趣的是,事实上,初始化阶段的输出意味着输入参数,在这种情况下可能包括平衡...
在这种情况下,专家顾问是否会出现错误?或者它默默地 "离开 "了?
有趣的是,事实上,初始化阶段的输出意味着输入参数,在这种情况下可能包括平衡...
在这种情况下,专家顾问是否会出现错误?或者它默默地 "离开 "了?
我正在添加这段代码
{
if(AccountFreeMarginCheck(_Symbol,OP_BUY,SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN))<=0.0)
{
return(INIT_PARAMETERS_INCORRECT);
}
我得到这样的答复
there are no trading operations
test on NZDUSD,H1
2016.02.01 00:00 exp_martin_new NZDUSD,H1: initialization failed (32767)
there are no trading operations
验证再次失败。
我添加了这段代码
事实上,有一篇关于这个问题的文章 。而且还有一个密码。
{
double free_margin=AccountFreeMarginCheck(symb,type,lots);
//-- если денег не хватает
if(free_margin<0)
{
string oper=(type==OP_BUY)? "Buy":"Sell";
Print("Not enough money for ", oper," ",lots, " ", symb, " Error code=",GetLastError());
return(false);
}
//-- проверка прошла успешно
return(true);
}
因此,如果有人不喜欢的东西,请链接到这篇文章。
MT5?显然是MT4。为什么只在测试器中检查?
你在测试器中是什么意思?交易时,我在开单功能中组织了检查
事实上,有一篇关于这个问题的文章 。而且还有一个密码。
{
double free_margin=AccountFreeMarginCheck(symb,type,lots);
//-- если денег не хватает
if(free_margin<0)
{
string oper=(type==OP_BUY)? "Buy":"Sell";
Print("Not enough money for ", oper," ",lots, " ", symb, " Error code=",GetLastError());
return(false);
}
//-- проверка прошла успешно
return(true);
}
因此,如果有人不喜欢的东西,请链接到这篇文章。
如果你使用这个函数,你会得到一个验证错误,没有交易操作,也不清楚如何绕过它。