EA在上传时遇到这种情况怎么解决呀?求教大佬

 

test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 2019.07.23 01:00:00 Steady_as_a_mountains NZDUSD,H1: array out of range in '??2.0 ????.mq4' (93,18) 2019.07.23 01:00:00 Testing pass stopped due to a critical error in the EA there are no trading operations

提示这些,下面有截图,请问我这是什么原因导致的测试无法通过,求教各位大佬

附加的文件:
123123.png  13 kb
 
Gao Fei Zhang:

test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 2019.07.23 01:00:00 Steady_as_a_mountains NZDUSD,H1: array out of range in '??2.0 ????.mq4' (93,18) 2019.07.23 01:00:00 Testing pass stopped due to a critical error in the EA there are no trading operations

提示这些,下面有截图,请问我这是什么原因导致的测试无法通过,求教各位大佬

The checks a trading robot must pass before publication in the Market - MQL5 Articles

交易EA发布之前,必须要符合发布要求!

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
 
你这稳如山的EA有数组越界的严重错误,检查代码93行,18列
 
Tiecheng Fu #:
The checks a trading robot must pass before publication in the Market - MQL5 Articles

交易EA发布之前,必须要符合发布要求!

Ziheng Zhuang #:
你这稳如山的EA有数组越界的严重错误,检查代码93行,18列

double B=High[A];  第93行是这个代码,哪里出了问题呀

 
Tiecheng Fu #:
The checks a trading robot must pass before publication in the Market - MQL5 Articles

交易EA发布之前,必须要符合发布要求!

这个需要怎么处理呢

 
Gao Fei Zhang #:

double B=High[A];  第93行是这个代码,哪里出了问题呀

代碼沒問題 

問題是數組超出範圍 就是 High[A] A的值不在設定範圍內

處理方法就是找出A計算錯誤的地方 或是High[]設定方式錯誤

 
Hung Wen Lin #:

代碼沒問題 

問題是數組超出範圍 就是 High[A] A的值不在設定範圍內

處理方法就是找出A計算錯誤的地方 或是High[]設定方式錯誤

好的,谢谢啦,我试试

 
Gao Fei Zhang #:

好的,谢谢啦,我试试

您好我是个编程小白,这组代码我发出来您有空的话帮看一下,我不大理解问题出在哪里

int A=iHighest(NULL,15,MODE_HIGH,30,1);     

    double B=High[A];

    if(Bid>(B+200*Point))

     {

       if(y1>z1 && x1>25 && y1>30)

       {

       if(t!=Time[0])                              

         { 

           if(buy(Blots,2000,400,Symbol()+"buy0",123456)>0)

             {

               t=Time[0];

             }

         }

       }

     }

 
Hung Wen Lin #:

代碼沒問題 

問題是數組超出範圍 就是 High[A] A的值不在設定範圍內

處理方法就是找出A計算錯誤的地方 或是High[]設定方式錯誤

您好我是个编程小白,这组代码我发出来您有空的话帮看一下,我不大理解问题出在哪里

int A=iHighest(NULL,15,MODE_HIGH,30,1);     

    double B=High[A];

    if(Bid>(B+200*Point))

     {

       if(y1>z1 && x1>25 && y1>30)

       {

       if(t!=Time[0])                              

         { 

           if(buy(Blots,2000,400,Symbol()+"buy0",123456)>0)

             {

               t=Time[0];

             }

         }

       }

     }