![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 would like to add about the section criticized by gip:
Basically, to optimize calculations it would be more logical to end each if() block with break check - otherwise it turns out that all five if() operators will be passed regardless of check results.
Since break operator cannot be used here directly, this block can be easily built into some loop. Here is, say, a "loop" variant:
Of course, initialization of logical variables is desirable, it's true.
And it would be quite brief, if you write these string names of currencies in an array-constant and pass through it in a natural loop.
P.S. I've now understood my mistake: I should at least pass at least two if()'s :) Nevertheless, this can be optimized too, by cutting off checks after finding two currencies in a pair.
Thanks Dimitri for your attention...I respect your knowledge....and humour of course.
Couldn't appreciate it - no MSoffffffis installed
Here http://www.twirpx.com/file/86887/?rand=1440166 is a textbook on formal logic in djvu format. "Kirillov V.I., Starchenko A.A. Logic" is a logic textbook for lawyers. This book will be better. I myself once started with it.
==++
Not everyone is logically capable of starting from the beginning. From the first post. Like Chukchi - what I see, what I sing...
==++
Not everyone can logically start from the beginning. From the first post. Like Chukchi - what I see, what I sing...
You're the Chukcha!)
The topicstarter should start, but he announced it and disappeared, so the public is getting impatient...
Here http://www.twirpx.com/file/86887/?rand=1440166 is a textbook on formal logic in djvu format. "Kirillov V.I., Starchenko A.A. Logic" is a logic textbook for lawyers. This book will be better. I myself once started with it.
Thank you Vladimir!
Gentlemen, please don't attack each other, or I will delete all unnecessary posts. And don't get emotional. A thread is a thread.
Tomorrow I will try to redo this indicator https://www.mql5.com/ru/code/9751.
The relevant factor will be the calculation time. The faster the better. But the rendering should be maintained. We may call it homework (to find variants to reduce calculation time).
The indicator just happened to be the last one in CodeBase, so I apologize to the author.