Lomonosov1991: Thanks to Igor Makan. I made the function yesterday so the function the day before yesterday I made it so Can I make it not reset to zero on weekends? i.e. Monday yesterday was Friday for it. i.e. how do I get rid of weekends?
datetime d1 = iTime(NULL,PERIOD_D1,1); //один торговый день назад (вчера)datetime d2 = iTime(NULL,PERIOD_D1,2); //два торговых дня назад (позавчера)
.....
you can define the day of the week using TimeDayOfWeek()
You can also "collect / parse" datetime using StructToTime() and TimeToStruct()
Ghabo: Hello. What is wrong? The condition is that the first candle closed below the low of the 10 candles, but the candle closed above the low and puts the arrows.
iLow[iLowest(NULL,0,MODE_LOW,period,2)] так правильнее написать
[in] Индекс (смещение относительно текущего бара) начального бара, с которого начинается поиск наименьшего значения. Отрицательные значения игнорируются и заменяются нулевым значением. Индекс наименьшего найденного...
Thanks to Igor Makan. I made the function yesterday so the function the day before yesterday I made it so Can I make it not reset to zero on weekends? i.e. Monday yesterday was Friday for it. i.e. how do I get rid of weekends?
use bar open time on D1 timeframe
you can define the day of the week using TimeDayOfWeek()
You can also "collect / parse" datetime using StructToTime() and TimeToStruct()
Hello. What is wrong? The condition is that the first candle closed below the low of the 10 candles, but the candle closed above the low and puts the arrows.
NULL - symbol
0 - current timeframe
period - number of bars
2 - 1st bar (if 1, it is the current bar)
https://www.mql5.com/ru/docs/series/ilowestNULL - symbol
0 - current timeframe
period - number of bars
2 - 1st bar (if 1, it is the current bar)
https://www.mql5.com/ru/docs/series/ilowestit is not correct
correct
Thank you Igor)
How do I write in Russian where the variables are? To write notStopNewOrder but"Drawdown to stop trades"
Thank you Igor)
How do I write in Russian where the variables are? To write notStopNewOrder but"Drawdown to stop trades"
I heard that it works in MQL5. It does not work on MQL4.
works, you can experiment with this script:
That's not right.
That's right.
Isn't your version and what I have written the same?
In any case, nothing has changed on the graph.