Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 473

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
Let me put it another way. How can you determine the maximum price in the last 10 seconds?
In MT5 - CopyTicks()
In MT4 - save ticks in array of structures MqlTick. From it, take max/min prices.
Can you tell me how to do this? I wrote a notification function and the notifications come on every tick! The function itself is just written in int Start. PATTERN conditions on M30.
Can you tell me how to do this? I wrote a notification function and the notifications come on every tick! The function itself is simply written in int Start.
@Artyom Trishkin Thank you! Interesting came out now it's quiet at all!
Can you tell me how to do this? I wrote a notification function and the notifications come on every tick! The function itself is just written in int Start. PATTERN conditions on M30.
You declare variables and immediately compare with them. Of course you always get the same result.
It's hard to read the code on a mobile. There must be something else wrong with it.
I think it should have gone like this
datetime BarTime;
@Konstantin Nikitin Hello!!! Fixed it!!! Daily signals are up! Still need to check the intraday ones!
Fixed! Here:
@Konstantin Nikitin Hello!!! Fixed it!!! Daily signals are up! Still need to check the intraday ones!
Fixed! Here:
Take it to the global level. You will always have them equal to 0, because each time the function is called, a new one will be declared.