Error for "Variable not defined" I am sure this has a simple answer but I cannot find it. Please Help
Did you . . .
double Line_5[100];
. . . define the array variable first ?
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
Can anyone help? I think I am being particularly thick today.....
On the first line of code, I am taking an average of the values of three lines for an indicator in "Line 4" and assigning it to a double variable of "x"
In the second line of code, I want to take the value x and divide it by an external variable "Aver_Bars"
-------------------------------------------------------------------------------------------------------------------
Line_4[i]=((Line_1[i]+Line_2[i]+Line_3[i])/3)=x;
Line_5[i]= x/Aver_Bars;
------------------------------------------------------------------------------------------------------------------
When I go to compile I am told that "Line_5 Variable is not defined"
So, my question is why? What did I do wrong??