Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1404

 
ifitstrue:
Hello. Can you tell me how to find the High and Low values of the past H1 hour on the M1 minutes? Thank you.

Don't be lazy to read the handbook

   double   high  = iHigh(Symbol(),Period(),shift);
   double   low   = iLow(Symbol(),Period(),shift);
Документация по MQL5: Доступ к таймсериям и индикаторам / iHigh
Документация по MQL5: Доступ к таймсериям и индикаторам / iHigh
  • www.mql5.com
iHigh - Доступ к таймсериям и индикаторам - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
MakarFX:

Don't be lazy to read the handbook.

I know about that.

I need something else. I want to draw a trend on the minutes from Low H1 to High H1.

 
ifitstrue:

I know about that.

I need something else. I want to draw a trend on the minutes from Low H1 to High H1.

You wrote

ifitstrue:
Can you tell me how to find the High and Low values of the past hour H1 on the M1 minutes?

I replied.

If you want something else, formulate it correctly...

Because you already know "find the High and Low values of the past H1 hour", all you have to do is

Ifitstrue:
I want to draw the trend on minutes from Low H1 to High H1.

Here you go, it's a very good example

Документация по MQL5: Константы, перечисления и структуры / Константы объектов / Типы объектов / OBJ_TREND
Документация по MQL5: Константы, перечисления и структуры / Константы объектов / Типы объектов / OBJ_TREND
  • www.mql5.com
OBJ_TREND - Типы объектов - Константы объектов - Константы, перечисления и структуры - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
ifitstrue:

I know about that.

I need something else. I want to draw a trend on the minutes from Low H1 to High H1.

iHighest()
iLowest()
 

Hello to connoisseurs and pros!
Anyone want to help solve the problem stated in the post

https://www.mql5.com/ru/forum/160683/page1399#comment_21008955

thanks in advance....

Любые вопросы новичков по MQL4 и MQL5, помощь и обсуждение по алгоритмам и кодам
Любые вопросы новичков по MQL4 и MQL5, помощь и обсуждение по алгоритмам и кодам
  • 2021.02.27
  • www.mql5.com
В этой ветке я хочу начать свою помощь тем, кто действительно хочет разобраться и научиться программированию на новом MQL4 и желает легко перейти н...
 
Taras Slobodyanik:

Question on

iHighest()
iLowest()

What would be the index of the initial M1 bar if I were to draw a trend line on the past H1?

And by the start and end time of the line it is not clear how to find it.

Sorry, if I am not explaining it clearly.

It is difficult for me.

 
MakarFX:

If you want something different, formulate it properly...

Thank you. I'll do my best.
 
ifitstrue:

Question on

What would be the index of the initial M1 bar if I were to draw a trend line on the past H1?

And by the start and end time of the line it is not clear how to find it.

Sorry, if I am not explaining it clearly.

It is complicated for me.

It is probably like this:

//--- расчет максимального значения цены на 60 последовательных барах (1 час)
//--- начиная с 1 бара  период М1
int val_index=iHighest(NULL,PERIOD_M1,MODE_HIGH,60,1);
 
btc.mmd:

Hello to connoisseurs and pros!
Anyone willing to help solve the problem outlined in the post

To reverse FIBO, swap p1 and p2.

      ObjectCreate(nameObj,OBJ_FIBO,0,t1,p1,t2,p2);

I can't help with the alerts(

 
Alekseu Fedotov:

I guess so:

If the previous hour, it's like this

iHighest(NULL,PERIOD_M1,MODE_HIGH,60,i-TimeMinute(TimeCurrent()));
Reason: