Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1750
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
For example:
Missed 1 bar on Wednesday, started by this symbol at 00:30, i.e. lost at 00:00
M30 time frame, it turned out to be 47 in a day instead of 48. This is exactly what we need to identify
Here is an example:
Missed 1 bar on Wednesday, started by this symbol at 00:30, i.e. lost at 00:00
M30 time frame, got 47 in the day instead of 48. This is exactly what we need to identify.
I do not know the right way, but I would think in this direction
Here is an example:
Missed 1 bar on Wednesday, started by this symbol at 00:30, i.e. lost at 00:00
M30 time frame, got 47 in the day instead of 48. This is exactly what we need to identify
Vitaly Muzichenko #:
That's exactly what we need to identify.
Got it, the question is false alarms, of which there will be many.
If 47
This is possible, you can also CopyOpen()
Can't decide how to organise this in a loop through the whole story
even simpler:
This is possible, you can also CopyOpen()
Can't decide how to organise this in a loop through the whole story
This is possible, you can also CopyOpen()
I can't decide how to arrange it in a loop over the whole history
Exactly (for example for M30) - if time between openings (modulo % 24 hours) of neighbouring bars is longer than M30 - it means that there are bars missing between them.
int nbars = ( ( iTime(_Symbol,PERIOD_M30,N) - iTime(_Symbol,PERIOD_M30,N+1) ) ) / PeriodSeconds(PERIOD_M30) ) % 48; // сколько баров должно быть между ссоедними отметками
if (nbars>1) PrintFormat("Пропущено баров: %d",nbars-1);
Thank you all, the principle is clear, the problem has been formalised.
---
Now a question: What am I doing wrong, all characters have the same value?
---
P.S. Terminal MT4, checked on two different terminals in different brokerage companies
P.SS. I checked in MT5, the result is the same
---
I am probably doing something wrong!
I need to get "Point value"
Thank you all, the principle is clear, the problem has been formalised.
---
Now a question: What am I doing wrong, all characters have the same value?
Vitaly, here it is necessary to either bug the developers, or