Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)
Of course I did several checks on why the buffers are still empty.
However, I do not get any error at all. I also get e.g. the value 1 or 0 from the variable Up[i], but as stated, all those values are not available/stored in the buffer.
Maybe someone can see the reason for that. I would highly appreciate that, thanks
When you iterate the calculation loop that way, all buffers have be set as series not just open/high/low
Don't use ArrayInitialize in the loop like that. Only initialize the buffers when prev_calculated = 0, and outside of the loop

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear all,
I am trying to write an MQL5 indicator, but the buffers are empty. Additionally, the arrows are logically not shown.
Can someone please help me? Here's the code:
Thanks!