- You never declared that your indicator has any buffers Program Properties (#property) - MQL4 Documentation
SetIndexBuffer(0,val); ArrayResize(val,count+1);
ArrayResize - MQL4 DocumentationNoteThe 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.
WHRoeder:
thank you for your answer, i forgot the #property indicator_buffer. One more question, assume there are no problem with the code from indicator, is this iCustom calling code from ea is proper? thank you again sir- You never declared that your indicator has any buffers Program Properties (#property) - MQL4 Documentation
- ArrayResize - MQL4 DocumentationNote
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.
double val = iCustom(NULL,0,"indicator",0,0);
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
this is the indicator code
Now this is the ea