You organise an enumeration of open positions. You filter them by symbol, type and magician. If profit of the selected position corresponds to the trawl triggering criterion - move the stop of this position to the specified level, not forgetting to do all checks on the correctness of these actions.
I have one million, but I found that if it's less than 100 bars, the tester doesn't test at all. Then the question is, if the 100-bar rule is respected, why does it not test within these 100 bars and starts only afterwards?
I have a million, I found that if less than 100 bars, the tester does not test at all. Then the question is: if the 100-bar rule is respected, why does it not test within these 100 bars and starts only afterwards?
The 10 million bars are for the minute bars on which the tester simulates ticks. And 100 bars-minutes is very small, less than the bars that fit on a 1-minute chart. The tester should work if there are at least 1440 bars to run from 0.00 to 0.00! That's probably the minimum, and why do you need it? Did you want to test on a short section? But you can't set testing by hours, only by dates, whole days. I understand in your case.
//+-------------------------------------------------------------------------------------+//| Определение индекса бара, с которого необходимо производить перерасчет |//+-------------------------------------------------------------------------------------+int GetRecalcIndex(int& total)
{
int counted_bars = IndicatorCounted(); // Сколько баров уже посчитано
total = Bars - 1; // Определение первого бара историиif (indBarsCount > 0 && indBarsCount < total) // Если не нужно рассчитывать всю..
total = indBarsCount; // ..историю, то начнем с указанного..// ..бара - indBarsCountif (counted_bars == 0) // Кол-во посчитанных баров - 0.
{
DeleteAllObjects(); // Не забудем удалить все созданные..// ..объектыreturn(total); // Нужно пересчитать всю историю
}
return(Bars - counted_bars - 1); // Начинаем с первого непосчитанного..// ..бара
}
One thing I don't understand. Usually they check the number of uncalculated bars like this:
Bars - counted_bars
The essence is as follows. For example, we have 500 bars. Also 500 have been calculated. After the function is executed, it will return 500 - 500 - 1 = -1. Is it normal?
If it were not -1 at the end, it would return 0, i.e. all bars are calculated. How to understand this point?
One thing I don't understand. Usually they check the number of uncalculated bars like this:
Bars - counted_bars
The essence is as follows. For example, we have 500 bars. Also 500 have been calculated. After the function is executed, it will return 500 - 500 - 1 = -1. Is it normal?
If it were not -1 at the end, it would return 0, i.e. all bars are calculated. How to understand this point?
A zero bar cannot be "calculated" because it is not yet complete.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
What's the forum got to do with it?
the order queue of course.Thanks for the sensible answer
Thanks for the sensible answer
Even more intelligible:
You organise an enumeration of open positions. You filter them by symbol, type and magician. If profit of the selected position corresponds to the trawl triggering criterion - move the stop of this position to the specified level, not forgetting to do all checks on the correctness of these actions.
I have worked out my turn... Next... :)
Thank you for your reply about the CCI crossing with zero.
Thank you for your reply about the CCI crossing with zero.
You have been shown how to calculate CCI crossings.
I think you will be able to handle it from here.Is period_converter from the standard supply not suitable?
Of course not, it does not form weeks and above correctly, have you used it?
COMRADES, BRONTO, BRONTO!!! HELP
Another question, what is the tester error? How many bars minimum does the tester need to run and why is this restriction needed?
Can this parameter be edited?
No of course it does not form weeks and above correctly, have you used it yourself?
COMRADES, BRONTO, BRONTO!!! HELP
Another question, what is the tester error? How many bars does the tester need at least to start?
Set it to 10 million in Settings!
I have one million, but I found that if it's less than 100 bars, the tester doesn't test at all. Then the question is, if the 100-bar rule is respected, why does it not test within these 100 bars and starts only afterwards?
I have a million, I found that if less than 100 bars, the tester does not test at all. Then the question is: if the 100-bar rule is respected, why does it not test within these 100 bars and starts only afterwards?
This is the function of the indicator:
One thing I don't understand. Usually they check the number of uncalculated bars like this:
Bars - counted_bars
The essence is as follows. For example, we have 500 bars. Also 500 have been calculated. After the function is executed, it will return 500 - 500 - 1 = -1. Is it normal?
If it were not -1 at the end, it would return 0, i.e. all bars are calculated. How to understand this point?
This is the function of the indicator:
One thing I don't understand. Usually they check the number of uncalculated bars like this:
Bars - counted_bars
The essence is as follows. For example, we have 500 bars. Also 500 have been calculated. After the function is executed, it will return 500 - 500 - 1 = -1. Is it normal?
If it were not -1 at the end, it would return 0, i.e. all bars are calculated. How to understand this point?