错误、漏洞、问题 - 页 1441 1...143414351436143714381439144014411442144314441445144614471448...3184 新评论 mehanix 2015.11.27 12:43 #14401 当我试图成为一个信号买家时,它说订阅失败。这可能是什么原因?在日志中。2015.11.27 17:30:23.482 '100980': Signal - error purchasingproduct[142893] - attempt to subscribe to foreign signal, broker enabled only own signals怎么办? [删除] 2015.11.27 12:53 #14402 mehanix:当我试图成为一个信号买家时,它说订阅失败。这可能是什么原因?在日志中。2015.11.27 17:30:23.482 '100980': Signal - error purchasing product [142893] - attempt to subscribe to foreign signal, broker enabled only own signals怎么办? 你是否从网站上订阅了一个信号?在你的经纪人那里,你可以订阅只由你的经纪人广播的信号。 costy_ 2015.11.29 11:51 #14403 升级终端 后,出现了ArrayResize的错误请修复它。(与ArraySetAsSeries(t,true);)#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+int OnInit() { ArraySetAsSeries(t,true); ArrayResize(t,11); for(int a=0;a<ArraySize(t);a++) t[a]=a;//--- string txt=""; for(int a=0;a<ArraySize(t);a++) txt+=t[a]+" "; Print(txt);//--- ArrayResize(t,ArraySize(t)+1); t[0]=11;//--- txt=""; for(int a=0;a<ArraySize(t);a++) txt+=t[a]+" "; Print(txt);//--- return(INIT_SUCCEEDED); }int t[];//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double &price[]) {//---//--- return value of prev_calculated for next call return(rates_total); }//+------------------------------------------------------------------+ Errors, bugs, questions 新人对MQL4和MQL5的任何问题,对算法和代码的帮助和讨论 萌新求助,最简单的5日移动均线如何编写?mql4 Evgeny Chernyshev 2015.11.30 09:08 #14404 costy_:升级终端 后,出现了ArrayResize的错误请修复它。(与ArraySetAsSeries(t,true);)#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+int OnInit() { ArraySetAsSeries(t,true); ArrayResize(t,11); for(int a=0;a<ArraySize(t);a++) t[a]=a;//--- string txt=""; for(int a=0;a<ArraySize(t);a++) txt+=t[a]+" "; Print(txt);//--- ArrayResize(t,ArraySize(t)+1); t[0]=11;//--- txt=""; for(int a=0;a<ArraySize(t);a++) txt+=t[a]+" "; Print(txt);//--- return(INIT_SUCCEEDED); }int t[];//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double &price[]) {//---//--- return value of prev_calculated for next call return(rates_total); }//+------------------------------------------------------------------+ 你好。请说明所用终端/编辑器的版本、比特率和构建。 costy_ 2015.11.30 11:00 #14405 Evgeny Chernyshev: 下午。请说明你所使用的终端/编辑器的版本、比特率和构建。terminal64.exe /portable Evgeny Chernyshev 2015.11.30 13:29 #14406 costy_: terminal64.exe /portable 修复了一个错误--在添加或删除元素时 阵列的AsSeries标志未被处理。现在,调整大小的 现在,带有AsSeries标志的数组与没有AsSeries标志的数组的变化是相同的。 这个标志。也就是说,新的元素被添加到 在一个数组的末尾,而不是在其开始。同样地,当减少 阵列的大小--元素在阵列的末端被切断。该截图解释了你的例子的工作原理。 costy_ 2015.12.01 14:17 #14407 Evgeny Chernyshev: 修复了一个错误--在添加或删除元素时 阵列中的 "A "没有被AsSeries标志所处理。现在调整大小 有AsSeries标志的数组现在与没有AsSeries标志的数组完全相同。 这个标志。也就是说,新的元素被添加到 在数组的末尾,而不是在其开始。同样地,当减少 阵列的大小从阵列的末端切断。截图解释了它在你的例子中是如何工作的。根据数组的方向,添加到零单元更有意义。好吧,我得重写。大量的工作;))谢谢你的回应 Vladimir Karputov 2015.12.01 14:51 #14408 通过信息编辑器 插入的视频没有被保存。谷歌浏览器版本46.0.2490.86米。Internet Explorer 11.11.10586.0。 Yousufkhodja Sultonov 2015.12.01 18:05 #14409 你能告诉我如何克服这样的情况:尽管我在设置中指定了1000个头寸,但测试者将头寸 的数量限制在100个? picpic 2015.12.01 18:53 #14410 你好!更新后(Build 920),终端在编译后不再重新加载指标。 只有导航器窗口中的指标列表被更新。 也就是说,在更新之前,图表上的指标 通常在编译后重新启动,指标代码的所有变化都开始工作。 更新后,每当我改变代码和编译时,我必须从图表中删除指标,然后再在图表上添加它。 有谁遇到过这种情况吗? 1...143414351436143714381439144014411442144314441445144614471448...3184 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
当我试图成为一个信号买家时,它说订阅失败。这可能是什么原因?
在日志中。
2015.11.27 17:30:23.482 '100980': Signal - error purchasingproduct[142893] - attempt to subscribe to foreign signal, broker enabled only own signals
当我试图成为一个信号买家时,它说订阅失败。这可能是什么原因?
在日志中。
2015.11.27 17:30:23.482 '100980': Signal - error purchasing product [142893] - attempt to subscribe to foreign signal, broker enabled only own signals
升级终端 后,出现了ArrayResize的错误
请修复它。(与ArraySetAsSeries(t,true);)
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
ArraySetAsSeries(t,true);
ArrayResize(t,11);
for(int a=0;a<ArraySize(t);a++)
t[a]=a;
//---
string txt="";
for(int a=0;a<ArraySize(t);a++)
txt+=t[a]+" ";
Print(txt);
//---
ArrayResize(t,ArraySize(t)+1);
t[0]=11;
//---
txt="";
for(int a=0;a<ArraySize(t);a++)
txt+=t[a]+" ";
Print(txt);
//---
return(INIT_SUCCEEDED);
}
int t[];
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const int begin,
const double &price[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
升级终端 后,出现了ArrayResize的错误
请修复它。(与ArraySetAsSeries(t,true);)
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
ArraySetAsSeries(t,true);
ArrayResize(t,11);
for(int a=0;a<ArraySize(t);a++)
t[a]=a;
//---
string txt="";
for(int a=0;a<ArraySize(t);a++)
txt+=t[a]+" ";
Print(txt);
//---
ArrayResize(t,ArraySize(t)+1);
t[0]=11;
//---
txt="";
for(int a=0;a<ArraySize(t);a++)
txt+=t[a]+" ";
Print(txt);
//---
return(INIT_SUCCEEDED);
}
int t[];
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const int begin,
const double &price[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
下午。请说明你所使用的终端/编辑器的版本、比特率和构建。
terminal64.exe /portable
terminal64.exe /portable
阵列的AsSeries标志未被处理。现在,调整大小的
现在,带有AsSeries标志的数组与没有AsSeries标志的数组的变化是相同的。
这个标志。也就是说,新的元素被添加到
在一个数组的末尾,而不是在其开始。同样地,当减少
阵列的大小--元素在阵列的末端被切断。
该截图解释了你的例子的工作原理。
修复了一个错误--在添加或删除元素时
阵列中的 "A "没有被AsSeries标志所处理。现在调整大小
有AsSeries标志的数组现在与没有AsSeries标志的数组完全相同。
这个标志。也就是说,新的元素被添加到
在数组的末尾,而不是在其开始。同样地,当减少
阵列的大小从阵列的末端切断。
截图解释了它在你的例子中是如何工作的。
根据数组的方向,添加到零单元更有意义。
好吧,我得重写。
大量的工作;))
谢谢你的回应
通过信息编辑器 插入的视频没有被保存。
谷歌浏览器版本46.0.2490.86米。
Internet Explorer 11.11.10586.0。
你好!
更新后(Build 920),终端在编译后不再重新加载指标。
只有导航器窗口中的指标列表被更新。
也就是说,在更新之前,图表上的指标 通常在编译后重新启动,指标代码的所有变化都开始工作。
更新后,每当我改变代码和编译时,我必须从图表中删除指标,然后再在图表上添加它。
有谁遇到过这种情况吗?