My_Buffers first dimension has no size
Many thanks.
The buffers used for the 'buffers' don't appear to need dimensions i.e. Buf_0[]
But My_Buffers does need the dimension!
I just left the second dimension as 7 and added an 5000 for the first and I get something! [2 almost horizontal lines plus shortname and parameters]
Indeed, the internal buffers used for drawing are sized automatically once you 'SetIndexBuffer()' them.
For manual managed buffers you need to do all yourself. Including shifting on a new bar and so on
Indeed, the internal buffers used for drawing are sized automatically once you 'SetIndexBuffer()' them.
For manual managed buffers you need to do all yourself. Including shifting on a new bar and so on
Thanks more difficult than I first thought
May i ask what you try to do? 99% of the indicators and calculations do not need a moredimensional array
Thanks for asking.
I'll send a PM to you.
after you think you have filled the buffers and you will find they are zero. There is no draw_line in the second buffer declaration etc.
If this is your second indicator I would suggest you make it more simple and build on working code.
At a glance I can see many things wrong in this code. The array declaration is correct but you should use ArrayResize(My_Buffers,20); or something to set the dimension before you use it. Also stick a comment in like this Comment("x= ",Buf_0[0]," y= ",Buf_1[0]);
after you think you have filled the buffers and you will find they are zero. There is no draw_line in the second buffer declaration etc.
If this is your second indicator I would suggest you make it more simple and build on working code.
Thanks for your comments.
Following suggestions from zzuegg I have decided to avoid using the 2 dimensional array.
Typically I use Comment() statements frequently or FileWrite but removed many lines of surplus coding for this posting.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Have been trying to develop my first customer indicators.
One example sort of worked and I could access the results - great.
The following displays nothing in the indicator window - not even the ShortName, parameters - just a complete blank panel
I have simplified (and simplified) by removing code so probably isn't too meaningful - just a graph of the HIGH for 2 symbols.
I wanted to use an array My_Buffers so I could handle a variable number of symbols.
I obviously have got something fundamental wrong but can't see it at the moment.
I put a comment in the indicator - just to see if it was displayed ( at the start of of the main body - it showed so the indicator is loading and trying to do something)
Help please!