[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 204

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 not a nested function, but part of the basic MACD Sample EA. I'm trying to add a calculated lot. Main and only start() function
You need to look at the whole code, then. What you have shown is the function
It goes something like this.
Thank you for your help!
Only the lot calculation function should be made universal
Hello.
I am a beginner in this business. So I'm asking for your help.
Here is a piece of code:
I want to make first check balance on amount if less than 111 then alert and return, if more then check on account number, if account is correct then trade if not then alert and return...
But for some reason it's only done individually if I remove AccountBalance or AccountNumber...
Probably a nouveau question, but what did I miss?
thanks
Hello.
I am a beginner in this business. So I'm asking for your help.
Here is a piece of code:
I want to make first check balance on amount if less than 111 then alert and return, if more then check on account number, if account is correct then trade if not then alert and return...
But for some reason it's only done individually if I removeAccountBalance or AccountNumber...
Probably a nouveau question, but what did I miss?
thanks
Have you tried brackets (shaped brackets)?
There were enough brackets, but in the wrong places
I tweaked it with your help, but it fails to compile, so here's a screenshot, maybe there's an extra bracket or .... :(
And if there were also open positions in other instruments, or other EAs? Think about what you are writing.