[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 449
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
or as follows
So it turns out that in mql4 you can't perform a loop every 20 seconds, regardless of ticks?
What's wrong with this tick-independent algorithm?
It turns out that in mql4 it's impossible to execute a cycle once every 20 seconds, regardless of the ticks?
What's wrong with this tick-independent algorithm?
But it will work if the quotes come in at least 20 seconds. Otherwise the loop will only execute when a quote arrives. For example after 34 minutes...
I described what I had during my tests this week . I just don't have the opportunity to test it yet.
I also don't know what function ---->>
MathMod
In your version .
MathMod -Functionreturns real remainder after division of two numbers.
as i understand it is....
int start()
{
int r=30;
int t=2;
int y=r/t;
Alert("Ответ = "+y); // <<<------------- вот это
return(0);
or like this
int start()
{
int r=30;
int t=2;
int y;
y=MathMod(r,t); //делим r/t
Alert("Ответ = "+y); //Остаток от двух деленных чисел
return(0);
}
It doesn't seem to divide anything.
semiromid:
It's not like there's anything to share.
I give up. I'll take it from here. won't help a lazy man like you.
I give up. I'll take it from here.
I knew it...
I knew it...
Well, how did it end?
By the way, thank you for responding and bringing a fresh solution to this issue.
Thank you to everyone who helped make sense of this issue =0)
This is roughly what I wanted it to be. rlx:
bool flag = true;
int i=0;
int w=0;
int start()
{
if (flag)
{
while(i<1)
{
w=w+1;
Alert(+w, "-й, и последний звонок ^_^");
i++
;
}
flag = false;
}
return(0);
}
Thank you to everyone who helped make sense of this issue =0)
This is about what I wanted it to be. It's based on the example of rlx:
bool flag = true;
int i=0;
int w=0;
int start()
{
if (flag)
{
while(i<1)
{
w=w+1;
Alert(+w, "-й, и последний звонок ^_^");
i++
;
}
flag = false;
}
return(0);
}
Do you know a script or an Expert Advisor to make a 6-hour chart?