
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
There doesn't seem to be an error, but it's in the log.
You were right originally, due to lack of near minimum
ran from 2002 and in 2016 everything is fine.
You were right initially, for lack of a near minimum
ran from 2002 and in 2016 all is well .
AUDUSD 2020 same thing. Remove from the cycle for 2 expression there is an error , if we leave it there is no error , just on that day we do not redraw the line
Do you have the same check?
strange that the loop almost always breaks at 1001 bars (maybe the array limit ?)
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: array out of range in 'Test_Level.mq4' (51,59)
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: i = 1001 Bar_data_D1 [i][2] = 0.77324
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: i = 1000 Bar_data_D1 [i][2] = 0.76934
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: i = 999 Bar_data_D1 [i][2] = 0.76907
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: i = 998 Bar_data_D1 [i][2] = 0.76963
2020.12.10 09:56:40.177 2020.03.02 00:01:00 Test_Level AUDUSD,H1: i = 997 Bar_data_D1 [i][2] = 0.7548
There is a question. Why do you start the loop from the first element, and not from zero?
If Low_D1_Level is the level of the previous day, then Min_D_Level should be looked for fromLow_D1_Level and it is equal to i=1 , or I am mistaken?
it is strange that the loop almost always breaks at 1001 bars (maybe the array limit?)
not always
AUDUSD is not like that for me
I'm not sure, but I think you need to insert something like
I'm not sure, but I think you need to put something like
Like for an indicator ?
EMPTY_VALUE
Empty value in indicator buffer
Kind of like for an indicator ?
EMPTY_VALUE
Empty value in indicator buffer
Now it's time to study the structures
how and where to correctly declare MqlRates
you can if you have some time and it's not too much trouble ( example in the code )
The C++ code is full of information, but MQL4 does not give a clear explanation of what's what.
Dark Kchlyzov:
I can if I have some time and it's not too much trouble (example in the code).
Sorry, I am not a programmer, I am just curious.
Instead of EMPTY_VALUE you can useNULL
Now it is time to study the structures
how and where to declare MqlRates correctly
If you have some time and it's not too much trouble ( example in the code )
I have a lot of information in C++, but MQL4 as for me, it doesn't explain properly how and what to do.
I don't even know what else to add. In principle, I have given the main examples. This is the code. That's why I recommend you to tell me, what's unclear.