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
Regarding ArrayCopyRates, Alexey correctly said. It's written in the help:
So you have to write it:
But it's not economical code.
Yes, there's no point in dragging all 6 bar metrics if you only need one. Low.
And there is no point in going deep on one scale (TF). After a quarter you can go to weeks, then months, and 132 months, that's 11 years.
In general the idea is that there is no point in counting on the whole chart, the amount of historical data is essentially random, may be from year 70 or from 2000, different data providers have different data on different instrument, and logic is always better when it is the same for all cases.
Valery, you say exactly that!
The idea is that we only need these history bars:
The rest can be taken out of the array. That's when it would be economical.
Valery, you say exactly that!
The idea is that we only need these history bars:
The rest can be dropped from the array. That's when it would be economical.
That's the way it was drawn. The idea hasn't been voiced by TopekStarter yet)
We need to find the extrema meaningful for TC and compare them. There are a lot of identical Lows at a distance. Quite often the Open and Close on one candle are equal, and what to say about the minimum prices of the day at a considerable distance.
Noticed an error in the cycles. And changed the comparison to yesterday instead of the current day. Try
Greetings All !!!
Been away on business.
The process is in full swing.
Tested it !
The result is this.
Stopped the tester went through the history manually. Max_D value should be taken from here.
I don't understand what's wrong. It's a line of minima.
Just in case, copy the code again, I've changed it periodically there, maybe you have an old version
Yes, there is no point in dragging all six indicators of the bar if you only need one. Low.
And there is no point in going deep on one scale (TF). After a quarter you can go to weeks, then months, and 132 months, that's 11 years.
In general, the idea that there is no point in counting on the whole chart, the amount of historical data is essentially random, may be from the year 70, and may be from 2000, different data providers have different data on different instruments, and the logic is always better when it is the same for all cases.
I'll try to be more specific.
1. this is not an idea, but a 5 years experience in trading that i decided to automate (i.e. it is not good to sit at the monitor all the time, you understand it with years).
2. We use these lines to form false-breaks, and it works (you just need to know how to apply them), you may not output them at all in the future.
3. In 2020, on February 10, for the first time I noticed this inaccuracy, which you think is unnecessary from such a distant history
Note where Min_D is and it may be once a year or even 10 years (as it turns out ).
Further you see the development of events 12000 points short (I think it is not acceptable to miss such a move) In this case, the exit beyond the array and did not let me miss this opportunity.
That's how it works to this day and in general it did not cause any problems
But now it's time to move on and study MQL4
4. As for the loading or whatever there (once a day at 24.00 can be recalculated and 10 times I do not trade on Friday after 20.00, and on weekdays from 23.00 to 3.00) let myself count.
5. the idea has not yet been voiced TopikStarter.
If you read from the beginning of the post, not from the middle all is clear.
1. Low_D1 and High_D1 (D1 Last day), Min_D and Max_D (the nearest history, this is the one available for the symbol) Min_D < Low_D1 andMax_D > High_D1
2. Low_W1 and High_W1 (further it is similar to above described only for weeks)
3. Low_MN1 and High_MN1 (month is relatively similar)
In the code a for // read the description
Came for advice on how to fix it , maybe something I do not know (like load some history file , or the array itself does not support , or maybe 16 gig of aperitif is not enough , that's the question , etc.)
at the moment it's just Alert when the line doesn't change value .
I don't understand what's wrong. It's a line of minima.
Just in case, copy the code again, I've changed it periodically, maybe you have an old version
Okay. I'll try again.