错误、漏洞、问题 - 页 1441

 

当我试图成为一个信号买家时,它说订阅失败。这可能是什么原因?

在日志中。

2015.11.27 17:30:23.482 '100980': Signal - error purchasingproduct[142893] - attempt to subscribe to foreign signal, broker enabled only own signals

怎么办?
 
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

怎么办?
你是否从网站上订阅了一个信号?在你的经纪人那里,你可以订阅只由你的经纪人广播的信号。
 

升级终端 后,出现了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_:

升级终端 后,出现了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);

  }

//+------------------------------------------------------------------+


你好。请说明所用终端/编辑器的版本、比特率和构建。
 
Evgeny Chernyshev:
下午。请说明你所使用的终端/编辑器的版本、比特率和构建。

terminal64.exe /portable

 
costy_:

terminal64.exe /portable

修复了一个错误--在添加或删除元素时
阵列的AsSeries标志未被处理。现在,调整大小的
现在,带有AsSeries标志的数组与没有AsSeries标志的数组的变化是相同的。
这个标志。也就是说,新的元素被添加到
在一个数组的末尾,而不是在其开始。同样地,当减少

阵列的大小--元素在阵列的末端被切断。


该截图解释了你的例子的工作原理。


 
Evgeny Chernyshev:
修复了一个错误--在添加或删除元素时
阵列中的 "A "没有被AsSeries标志所处理。现在调整大小
有AsSeries标志的数组现在与没有AsSeries标志的数组完全相同。
这个标志。也就是说,新的元素被添加到
在数组的末尾,而不是在其开始。同样地,当减少

阵列的大小从阵列的末端切断。


截图解释了它在你的例子中是如何工作的。


根据数组的方向,添加到零单元更有意义。

好吧,我得重写。

大量的工作;))

谢谢你的回应

 

通过信息编辑器 插入的视频没有被保存。

谷歌浏览器版本46.0.2490.86米。

Internet Explorer 11.11.10586.0。

 
你能告诉我如何克服这样的情况:尽管我在设置中指定了1000个头寸,但测试者将头寸 的数量限制在100个?
 

你好!


更新后(Build 920),终端在编译后不再重新加载指标。

只有导航器窗口中的指标列表被更新。

也就是说,在更新之前,图表上的指标 通常在编译后重新启动,指标代码的所有变化都开始工作。

更新后,每当我改变代码和编译时,我必须从图表中删除指标,然后再在图表上添加它。


有谁遇到过这种情况吗?