I'm looking at your exercises and thinking to myself: - You start a few wizards - then you keep track of magician numbers and depending on the number you assign the appropriate numeric value to the MMMMMM variable
Question: isn't it easier to assign this value to a wizard once in the inite and then use it?
I've been asked to fix-refine someone else's EA (- move the magicians to global). It is 1800 lines of code and complex algorithms of interaction of orders with different mages.
I simply cannot physically take the time to study these complicated control circuits. I find it easier to replace digital magics with "global" ones and fix those magics in a few functions in a purely mechanical way (without going deep into them).
I've been asked to fix-refine someone else's EA (- move the magicians to global). It is 1800 lines of code and complex algorithms of interaction of orders with different mages.
I simply cannot physically take the time to study these complicated control circuits. I find it easier to replace digital magics with "global" ones and fix those magics in a few functions in a purely mechanical way (without going deep into them).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
It's working so far. One more question.
There's another piece of code like this.
Would it be correct to replace it with -
- You start a few wizards
- then you keep track of magician numbers and depending on the number you assign the appropriate numeric value to the MMMMMM variable
Question: isn't it easier to assign this value to a wizard once in the inite and then use it?
It's working so far. One more question.
There's another piece of code like this.
Would it be correct to replace it with -
It is of course only for this particular case
Thank you. for the answers.
No, granit77, - that's not exactly the case.
I've been asked to fix-refine someone else's EA (- move the magicians to global). It is 1800 lines of code and complex algorithms of interaction of orders with different mages.
I simply cannot physically take the time to study these complicated control circuits. I find it easier to replace digital magics with "global" ones and fix those magics in a few functions in a purely mechanical way (without going deep into them).
Thank you. for the answers.
No, granit77, - that's not exactly the case.
I've been asked to fix-refine someone else's EA (- move the magicians to global). It is 1800 lines of code and complex algorithms of interaction of orders with different mages.
I simply cannot physically take the time to study these complicated control circuits. I find it easier to replace digital magics with "global" ones and fix those magics in a few functions in a purely mechanical way (without going deep into them).
Where has Leonid gone?
He trades. He pretends he has no time. He's making arbitrage "dough" on the gold-silver spread.
--------------------------
And probably the last question.
Here is this part of the code:
To replace case 101-102-103.... with Magic_101, Magic_102, Magic_103...
Would it be correct to do it like this:
Yes - that's what I'm doing...
--------------------------
To replace 101-102-103.... to Magic_101 - Magic_102 - Magic_103 -...
Would it be correct to do the following:
wrong. read about switch statement https://docs.mql4.com/ru/basis/operators/switch
In your example, just replace switch with if
replace with.