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
Depends on use and intent. ...
I agree. For example, using static variables in start() rather than global variables also changes the scope of the those variables. See Types of Variables.
The point is . . . in the event that it does fail how will the code that follows perform ?
would it be a good idea to replace all occurrences of OrderSelect() with this code (or a function that has this code):
Please forgive my ignorance. My background is one c++ course in college.
Thanks for all the comments that I got from everyone. I will think about them.
would it be a good idea to replace all occurrences of OrderSelect() with this code (or a function that has this code):
Please forgive my ignorance. My background is one c++ course in college.
would it be a good idea to replace all occurrences of OrderSelect() with this code (or a function that has this code):
Please forgive my ignorance. My background is one c++ course in college.
Thanks for all the comments that I got. I will think about them.
Is it possible to exit start() from within a function? I didn't find the exit() function in the help. How to exit a calling function?
Is it possible to exit start() from within a function? I didn't find the exit() function in the help. How to exit a calling function?
start() is a function just like any other, to exit use return, if you want to return from a function you have called from within start and as a result of the function exit start then . . .
start() is a function just like any other, to exit use return, if you want to return from a function you have called from within start and as a result of the function exit start then . . .
I understand. But, this doesn't exit start from within the function. I guess there is no easy way to accomplish this.
I understand. But, this doesn't exit start from within the function. I guess there is no easy way to accomplish this.
In what way doesn't it achieve what you have described ? the only way of exiting a function before the end of the function is using return, for a return to take effect it has to be called form the function you want to return from.
Return() will exit the function from which it is called and "return" some value to the caller -- start() for example. What I asked for is a way to exit the caller from inside a function. In C languages, there is an aptly named exit() function that does the job. It will exit the program all together -- even if it is inside a function other that main().
Btw, I am aware this is a divergence from the initial topic. Apologies for that.
Is it possible to exit start() from within a function? I didn't find the exit() function in the help. How to exit a calling function?
I understand. But, this doesn't exit start from within the function. I guess there is no easy way to accomplish this.
Return() will exit the function from which it is called and "return" some value to the caller -- start() for example. What I asked for is a way to exit the called from inside a function. In C languages, there is an aptly named exit() function that does the job. It will exit the program all together -- even if it is inside a function other that main().
Return() will exit the function from which it is called and "return" some value to the caller -- start() for example. What I asked for is a way to exit the called from inside a function. In C languages, there is an aptly named exit() function that does the job. It will exit the program all together -- even if it is inside a function other that main().
Btw, I am aware this is a divergence from the initial topic. Apologies for that.