[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 452

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
Why every 20 seconds exactly? Why not at 19 or 17?
In 19 seconds the remainder will be 19.
In 17 it will be 17.
If MathMod(EVERYTHING, 20) = 0, it means (if memory serves me correctly)
that EVERY NUMBER is divided by 20 without a remainder.
20 40 60 80 100 120 140 160 etc.
I.e. if MathMod(EVERYTHING, 13) = 0, then "0" will be obtained in 13 seconds?
How do I write it, to understand how it works?
for example 2+2 =4 =)
For example (Local computer time 800000000) how do we divide it by 12 in 12 seconds. Or it is a property of the real remainder that it is divided by whatever it is divided by, so the operation is done in time. If we divide 100 / 5, then 100 divided by 5 in 5 seconds.
Can you write down how it happens?
bool flag = true;
int i=0;
int w=0;
double sum;
int t=20;
int start()
{
sum=TimeLocal() / t;
if (flag)
{
while(i<20)
{
w=w+1;
Alert(+w,"-й, Результат TimeLocal-",+sum);
i++;
sum=sum/20;
Sleep(1000);
}
flag = false;
}
return(0);
}
So, if MathMod(EVERY NUMBER, 13) = 0, we get "0" in 13 seconds?
It means any number divided by 13 without a remainder e.g. 705495973
Seconds have nothing to do with it.
How do I know which indicators are in the template? I installed an old template, but not all indicators are displayed. I forgot the names of indicators included in the template. Thank you!
.....
Suppose (Local computer time 800000000) how do you divide by 12 in 12 seconds . Or does the real remainder have the property that it is divisible by what it is divided by, in which time the operation takes place? . Divide 100 / 5 so in 5 seconds divide 100 by 5 ?
Can you write how it is done?
What makes you think that? Did you study mathematics?
MathMod(A, B) ----- A math function -- will do the math in fractions of a second.
It shows the remainder of A divided by B.
123 / 20 = 6 integers
123 -- (20 * 6) = 123 --- 120 = 3 (remainder) is what this function calculates.
https://ru.wikipedia.org/wiki/Деление_ (maths)
https://ru.wikipedia.org/wiki/Остаток_от_деления
You lack practice. You cannot run your programme, it does not work. A vicious circle: no working option-> no skill-> no working option.
You have to start from the beginning and change everything:
- use Print() instead of Alert()
- do not write an Expert Advisor, but a script
- if writing an EA, run it through the strategy tester
You cannot see the result of your programme.
I have to think about it.... :-/
How do I know which indicators are in the template? I installed an old template, but not all indicators are displayed. I forgot the names of indicators included in the template. Thank you!
Does Ctrl-I show?
https://docs.mql4.com/ru/constants/special
EMPTY_VALUE == 0x7FFFFFFFF ---- integer 2147483647.
IMHO it can.