username1:
This is the piece of code i'm working on. The compiler says "the variable BarsCount is not defined". What do i do? As far as I can see, the variable has been initialized and given a value.
Is it my compiler problem or code problem ?
This is the piece of code i'm working on. The compiler says "the variable BarsCount is not defined". What do i do? As far as I can see, the variable has been initialized and given a value.
Is it my compiler problem or code problem ?
You've left off the ; on likes 14 and 15.
You are also missing the closing } of the if statement.
jaman:
You've left off the ; on likes 14 and 15.
You are also missing the closing } of the if statement.
jaman,
That solved the problem. Thank you. :-)
username1:
The compiler says "the variable BarsCount is not defined". What do i do? As far as I can see, the variable has been initialized and given a value.
Is it my compiler problem or code problem ?
The compiler says "the variable BarsCount is not defined". What do i do? As far as I can see, the variable has been initialized and given a value.
Is it my compiler problem or code problem ?
double MA=iMA(NULL,tf,period,0,method,0,shift) return(MA)
missing semicolons:
double MA=iMA(...) return(MA) } int start() {int BarsCount=0;
BarsCount not yet defined.

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 piece of code i'm working on. The compiler says "the variable BarsCount is not defined". What do i do? As far as I can see, the variable has been initialized and given a value.
Is it my compiler problem or code problem ?