Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 451
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
formula MathMin(Time1-Time2,Time2-Time3)/MathMax(Time1-Time2,Time2-Time3)
but it started giving 0 again, although separately it is correct
I added variables of int type, in which I put explicitly converted datetime, and it worked. But now I need the result of ratio to be lower than 1, i.e.
formula MathMin(Time1-Time2,Time2-Time3)/MathMax(Time1-Time2,Time2-Time3)
but it started giving 0 again, although separately it is correct
I wrote that I tried it that way already, nothing
the receiving variable must also be double
MathMin and MathMax give the same value even though their arguments are different
Please advise, how to find ratio of 2 timeframes? (we need the ratio of bars between 2 periods)
I wrote it like this but it gives 0. Time1>Time>Time3 always
I tried both without explicit type conversion, and (double) tried to write
And with an example you can explain what is on the input and what should be on the output. I have already reread all tips and questions several times, but I still can't understand where we start from and what we should come to.
For example this code
gives this result
And with an example, can you explain what the input is and what the output should be. I have already read all the advice and questions several times, but I still don't understand what we are starting from and what we should come to.
For example this code
gives this result
Yes, except it gives 0 or 1, but I solved it with an if else condition, but at least it works
Yes, except that it gives 0 or 1, but I solved it with an if else condition, but at least it works
It says it should output result like double
Forum on trading, automated trading systems & strategy tester
Any MQL4 beginners questions, tips and discussion on algorithms and codes
Taras Slobodyanik, 2018.02.04 12:10
and here
Forum on trading, automated trading systems and testing trading strategies
Any questions from beginners on MQL4, help and discussion on algorithms and codes
Vitaly Muzichenko, 2018.02.04 12:25
And even after my example.... the words are not enough.
What does it have to do with if else??? This is a conditional operator and does not depend in any way on the type of values in the conditions.
It can only make 1 if numerator and denominator are equal. But it can NEVER be 0.
Good day to you all.
Can you please tell me how to get rid of the huge
of metaeditors in the computer.
I have 7 terminals installed and each one is dragging a meta-editor with it.
7.0 is going crazy when you try to open an mq file from the context menu
It opens them in different metaeditors periodically which makes me feel very uncomfortable.
Maybe someone knows how to solve this problem?
Would like to have only 1 configured meta editor.
Thanks in advance.
Good day to you all.
Can you please tell me how to get rid of the huge
of metaeditors in the computer.
I have 7 terminals installed and each one is dragging a meta-editor with it.
7.0 is going crazy when you try to open an mq file from the context menu
it periodically opens them in different meta-editors, which makes it emotionally unpleasant.
May someone know how to solve this problem?
I would like to have only 1 configured meta editor.
Thanks in advance.
I solved this problem for me with"symbolic link/label" to MQL folder. As such, I took the main folder out of the program directory, created a shortcut to it and deleted these directories, replacing them with a shortcut. Now I have the same set of Expert Advisors/indicators/scripts in any terminal. And Opening any maetaditor leads to the same files.
Of course, the main directories are different for MQL4/5.
I solved this problem with a"symbolic link/label" to the MQL folder. As such, I took the main folder out of the program directory, created a shortcut to it and deleted these directories, replacing them with a shortcut. Now I have the same set of Expert Advisors/indicators/scripts in any terminal. And Opening any maetaditor leads to the same files.
Of course, main directories are different for MQL4/5.
Thanks for the advice.
But it would be desirable for me to see only "my EAs and indicators" in different terminals.
In other words, MQL folders must be "their own".
This suggests the brute force method. I should pluck meta-editor files from the installed distributions.
Leave only one of them. And then use registry cleaner to remove paths to non-existing files.
But I don't know if it will work or not. I would like it to be without consequences.