double A[BAR_COUNT],B[BAR_COUNT];
Is not a dynamic array. You should use following data declaration:
double A[],B[];
In this case array size is dynamic, and it can be resized.
Also, you don't need this part marked with red color, you can delete it.
ArrayResize(A,BASE[2],BASE[2]); for(int i=1;i<BASE[2];i++) ArrayResize(A,i,BASE[2]);ArrayResize(A,BASE[2],BASE[2]); is enough.
Dr.Trader:
thank you.

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
i have problem in my indicator. can you please check this:
i use several array ; like this :
AND IT WORK.
now i want to get the value of " BAR_COUNT" from another indicator, so i modified the code as below:
( modification are highlithed )
so i get the value , but i have problem about it..( if it about array resize or is it nessary, )
*** https://www.mql5.com/en/docs/array/arrayresize
*** Note : The function can be applied only to dynamic arrays. It should be noted that you cannot change the size of dynamic arrays assigned as indicator buffers by the SetIndexBuffer() function. For indicator buffers, all operations of resizing are performed by the runtime subsystem of the terminal.
---> i dont use them as indicator buffers.
---------------------------------------------
can you please help?
thank you.