[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 58

 

Excuse me.

If you are interested, email: maxifister@gmail.com

 
maxifi:
https://www.mql5.com/ru/job there will definitely be interested.
 
TheXpert:
https://www.mql5.com/ru/job there will definitely be interested.

Thank you
 
Good afternoon, could you please tell me if there is an indicator that builds candles with a period of 10 minutes, so that you can then build other indicators from these 10-minute candles?
 
Period Converter
 
Please help me. I don't understand why part of the code doesn't work correctly.
 else
      {
      //открытых ордеров нет
      Print("Открытых ордеров нет",GSR,GPG);
      if(GSR>0)//тренд медвежий
         {
         
         price=GSR;
         tprofit=GSR+takeprofit*Point;
         sloss=GSR-stoploss*Point;
         OrdSend(symbol,4,volume,price,slippage,sloss,tprofit,comment,magic,expiration,arrow_color);//устанавливаем OP_BUYSTOP
         }
      if(GPG>0)//тренд бычий
         {
         
         price=GPG;
         sloss=GPG+stoploss*Point;
         tprofit=GPG-takeprofit*Point;
         OrdSend(symbol,5,volume,price,slippage,sloss,tprofit,comment,magic,expiration,arrow_color);//устанавливаем OP_SELLSTOP
         }
      else
         {
         Alert("AHTUNG!!! НЕВЕДОМАЯ ХУЙНЯ!!! ТРЕНД НЕ ОПРЕДЕЛЕН");
         }
   
      }

2013.01.08 15:24:21 2012 08.17 21:30 trololo EURUSD,M30: loaded successfully

2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: GPG=0 GSR=1.2347 spg=1.2327 ssr=1.2307
2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: No open orders1.23470
2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: Alert: AHTUNG! UNKNOWN SHIT!!! TREND IS NOT DEFINED

How is this even possible? What's my mistake?

 
tpg_k156:
Please help. I don't understand why part of the code doesn't work correctly.

2013.01.08 15:24:21 2012.08.17 21:30 trololo EURUSD,M30: loaded successfully

2013.01.08 15:24:21 2012 08.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: GPG=0 GSR=1.2347 spg=1.2327 ssr=1.2307
2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: No open orders1.23470
2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: Alert: AHTUNG! UNKNOWN SHIT!!! TREND IS NOT DEFINED

How is it possible? What is my mistake?


It seems to work the way it's done.
 

The way I see it

2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: GPG=0 GSR=1.2347 spg=1.2327 ssr=1.2307

then Print triggers

013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: No open orders1.23470

Here I see that GSR=1.23470 and not equal to zero unlike GPG

So why is it not triggered?

if(GSR>0)//тренд медвежий
         {
         
         price=GSR;
         tprofit=GSR+takeprofit*Point;
         sloss=GSR-stoploss*Point;
         OrdSend(symbol,4,volume,price,slippage,sloss,tprofit,comment,magic,expiration,arrow_color);//устанавливаем OP_BUYSTOP
         }
GSR is not zero and >0 ?
 

Hello, could you tell me please? How do I know the maximum High Low of a given period of time?

For example the segment from Tuesday to Friday 3rd week of December.

And also need to draw horizontal lines from the high and low on the length of this segment. but the lines should start outlined from Tuesday to Friday,

It also needs to redraw the HIGH LOW if the segment is set from the beginning of the current week to the current time.

 
tpg_k156:

The way I see it

2013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: GPG=0 GSR=1.2347 spg=1.2327 ssr=1.2307

then Print triggers

013.01.08 15:24:21 2012.08.17 21:30 renkotrend_mart_fixtime_v1 EURUSD,M30: No open orders1.23470

Here I see that GSR=1.23470 and not equal to zero unlike GPG

So why is it not working?

GSR is not zero and >0 ?

And what does it say in the logs?