return in the start function is optional.
But programming rule is: "if some function has type then function must return value of this type"
But programming rule is: "if some function has type then function must return value of this type"
thank you Slawa. much appreciated.
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
I wanted to ask a question: Lets say we have the following code:
int Start()
{
while(IsStopped==False) // endless loop
{
trading strategy code is inserted here......
}
Return(0) // Question is must I have this line at all ???
}
Question is: Must I have a return(0) line just before last bracket? My expert seems to work without having return(0) anywhere within my code. Is this ok to do this if using endless loop method ?
Thanks in advance
Regards
RJF