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
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.