How many elements are there in your array ?
I think my code is very simple,but I can't get the result I want,so can somebody please tell me what's wrong?
My code:
#property copyright "lb"
#property link ""
#property indicator_chart_window
double test_value[];
int init()
{
test_value[0] = Low[0];
return(0);
}
int start()
{
Comment(test_value[0]);
return(0);
}
you must size and initialize numeric(incl datetime) arrays either at the declaration level or using array operations (arrayinitialize(..., etc) within any functions, but this command can't be used if your array is string or boolean.
- How many elements are there in your array ?
you must size and initialize numeric(incl datetime) arrays either at the declaration level or using array operations (arrayinitialize(..., etc) within any functions, but this command can't be used if your array is string or boolean.
Thank you very much,I do as you wrote and my problem solved.Thanks for your kind reply.
- How many elements are there in your array ?
I'm new to this forum,thanks for remind,I already changed.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I think my code is very simple,but I can't get the result I want,so can somebody please tell me what's wrong?
My code: