ArrayResize(fiblevels1,50,10);
To be honest I don't actually know what happens when you resize an array to 50, but set the reserve to 10, but it seems a very strange thing to do.
If you know that you are going to use 25 (you don't use [0]), then why not set the size accordingly?
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
ArrayResize(fiblevels1,50); ArrayResize(fibodownlevels1,50); ArrayResize(fibodownlevels1,50);
Maybe because you don't size fibouplevels1 /
How Silly I am, really, a copy paste can kill you sometime, thanks for pointing it out, it worked for me.

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 Erveryone,
I am new to MT4 programming, and just try to learning and creating my own EA with my logic, and for that I needed to calculate Fibo levels between 2 assigned prices, I tried to search a lot, but I couldn't find an inbuilt function or class, though I found some OBJFIBO but couldn't understand how to use it, so I have 2 queries:
1. Can I get Fibo values by a function by just passing high, low and trend values.
2. if not I tried to create custom code for the same, below is the code snippet I am using and compiler shows no error, but when I try to run the code the debugger says "Array out of Range" if someone can help me on the same please.
TIA