
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
I don't even know what else to add... I've basically given the basic examples. This is the code. That's why you may ask me what's unclear.
Greetings ! Igor a clear example of how to get a value . I have a line Low_D1_Level find the nearest bar in the history which value will be lower than Low_D1_Level
If I work with Structure without array, I get the same result as in the last code.
Write an example , and if you don't mind a description .
If Low_D1_Level is the level of the previous day, then Min_D_Level is searched fromLow_D1_Level and it is equal to i=1 , or am I mistaken?
Sorry, I didn't get into the code, I asked to make sure you were doing it consciously.
Can you tell me what you want to get as a result. Any daily levels or what? Looking at the first line, constantly copying an array in ArrayCopyRates and then loops through it is not the most economical option. You could find a more elegant solution.
I apologize, I did not delve into the code, I asked to make sure that you are doing this consciously.
You can say what you want to get in the end. Any daily levels or what? Looking at the first line, constantly copying the array to ArrayCopyRates and then looping through it is not the most economical option. You can find a more elegant solution.
I have been on the stock exchange for more than 5 years, and at the moment I live completely ( you do this consciously ). A year ago, when the understanding of trading on the stock exchange was already more or less strengthened,
It was decided to automate their knowledge in the trade, want to do a good DIY.
This is how MQL4 consciously came to me, at the moment the EA has 6000+ lines.
here is an example code when calculating the lot 1 year ago.
And here is the same function after half a year
Here's the reason for creating this thread.
I noticed purely by chance and visually when I started to run the adviser on long periods, if the second condition was removed in the cycle, an error occurred (out of the array) and the second condition simply masked the actual error.
Here is the Function that needs to be debugged, and it's time to study Structures, Classes.
Do not judge strictly for writing code -:)
Here's the function to debug.
OK, and can you tell me what you want to end up with?
Ok, can you tell me what you want to end up with?
Here is the shortened version run on AUDUSD 2020
Why doesn't it go further in the array ?
You're asking me why it doesn't work, and I'm trying to get the gist in words, because there might be a better solution to your problem, which is what I'm trying to find out.
Explain what you are trying to achieve.You ask me why it doesn't work, and I'm trying to get the gist in words, because there might be a better solution to your problem, which is what I'm trying to find out.
Explain what you want to get.So far I see _so_
So far I see _that_.
Yes, that's how human perception works. I, too, when I'm really passionate about an idea, I can barely hear the other person's arguments. Oh, well...
So far I see _ so_.
There is a levelLow_D1_Level , then we need to get the value of the next level Min_D_Level, which will be the next lowest in the history and will be lower than Low_D1_Level.
I do not know how to explain further. If you run the code in the tester with the visualization in my opinion everything is visible.
And in general, if you come to the post, please be so kind as to at least read the essence.
That's completely beside the point:
What's the "XY problem"?
It's a mistake that often wastes the time of both the person asking for help and the people trying to answer it. It is also called the "Hammer Problem". In short, people tend to ask about their unsuccessful attempts to solve the problem, rather than about the problem itself. It ends up going something like this:
So far I see _so_.
So I guess you still haven't found your X and Y !!!