Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1425
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
Copy the ticks for the last 20 seconds, get the difference of the extreme values of the array and compare it with that constant.
Copy the ticks for the last 20 seconds, get the difference of the extreme values of the array and compare it to the same constant.
This should not be done one time, but as a continuous EA loop.
(A piece of code if you can...).
Copy the ticks for the last 20 seconds, get the difference of the extreme values of the array and compare it to the same constant.
Good morning, Alexey! What if we initialise the timer for 20 seconds first and check the difference of extreme values without an array? Isn't this option easier?
Regards, Vladimir.
Good morning, Alexey! What if we initialise the timer for 20 seconds first and check the difference of extreme values without an array? Wouldn't that be easier?
Regards, Vladimir.
This is all very interesting, of course, but I'd like to see a "cheat sheet" for the big boy 😁
It's too early to talk about the cheat sheet. I'm learning programming myself, that's why I'm asking questions. Maybe it will come in handy for me someday too.
Regards, Vladimir.
Good morning, Alexey! What if we initialise the timer for 20 seconds first and check the difference of extreme values without an array? Wouldn't that be easier?
Regards, Vladimir.
It may be easier, but the task is not to check every 20 seconds, but every tick from the current price 20 seconds backwards.
This should be done not once, but as a continuous cycle of the Expert Advisor.
(A piece of code, if you can...)
In OnTick it will be executed every tick continuously.
A piece of code if you can, but it goes against my principles. I don't write cheat sheets for two-liners. One cheat sheet for all cases has already been written and can be found here.
It may be easier, but the task is not to check every 20 seconds, but every tick from the current price 20 seconds backwards.
In OnTick it will be executed every tick continuously.
I can write a piece of code, but it goes against my principles. I don't write cheat sheets for two-students. One cheat sheet for all cases has already been written and can be found here.
I'm going to ask for help from knowledgeable people again now, but you please don't get distracted by me - keep the principles!
ok. Please wait for a reply.
Look at this code:
Regards, Vladimir.