Download MetaTrader 5
To add comments, please log in or register
Have you developed a profitable strategy? Launch your trading signal and make profit from it!
Mohammad Soubra
24621
Mohammad Soubra 2016.08.09 02:08 

Hello,

---

MT4, EAs Programming 

Just I am wondering while using the ZigZag indicator by calling the iCustom() function as below:

void OnTick()
  {
//---
   double zz0=iCustom(NULL,0,"ZigZag",12,5,3,0,0);
  }

 

it is mostly giving this Alert/Error:

Array out of range: ZigZag.mq4

Biantoro Kunarto
14806
Biantoro Kunarto 2016.08.09 03:40  

I am using this code, and it's work.


Files:
CheckEA.mq4 2 kb
Mohammad Soubra
24621
Mohammad Soubra 2016.08.09 03:46  
Biantoro Kunarto:

I am using this code, and it's work.


but it is mostly coming in the back test
Biantoro Kunarto
14806
Biantoro Kunarto 2016.08.09 04:57  
Mohammad Soubra:
but it is mostly coming in the back test

In strategy tester, this EA also work :


Sergey Golubev
Moderator
55305
Sergey Golubev 2016.08.09 06:50  

Forum on trading, automated trading systems and testing trading strategies

Something Interesting

Sergey Golubev, 2016.01.27 12:41

Just some example about how to solve An array is out of range issue (I personally had this issue few times so it may be good to read the thread about how we can solve this our error during the coding for example).

/
To add comments, please log in or register