Normal data alignment in MT5 starts from zero. i.e. Array[0], Array[1], Array[2]....., Array[rates_total - 1]. Are you considering it?
Naguisa Unada:
Normal data alignment in MT5 starts from zero. i.e. Array[0], Array[1], Array[2]....., Array[rates_total - 1]. Are you considering it?
Normal data alignment in MT5 starts from zero. i.e. Array[0], Array[1], Array[2]....., Array[rates_total - 1]. Are you considering it?
Yes. I set the ArraySetasSeries to true. To mention, the values from the tester vs what is shown in the terminal are different. From what I know even if arrayasseries are not set, they should show same values or at least when I ArrayPrint the buffer. Or am i missing something?
On an update: I am currently going over again basic articles on how create indicators, maybe have some leads to my situation.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys, first just wanted to thank everyone who makes an effort to read my concern.
Here goes:
1. I created an Custom Indicator. Working Fine. (Checked)
2. Created an EA from my EA template. Used donchian channel method as error checked for basic function i.e. trading/SL/trailing/etc. No custom indicator was called or used, I just use iHighest,etc inside EA. Working Fine. (Checked)
3. Now, I tried applying/getting the feed from the Custom Indicator to the EA. From the articles I read, I goes like this:
However the Array is returning wrong numbers/data when I tried testing and printing the Array for info.
Moreover when I use Strategy Tester on Visualization, it looks like this (See attached image, Mt5 terminal vs Mt5 Tester). The two yellow arrows on the picture points the same bar. And it clearly shows something is wrong.
Please advise, articles I read havent really help my situation. Any replies or leads is appreciated! thank you!