Help out anyone who cares! - page 2

[Deleted]  
You just have to write it with a separate loop, like in the indicator itself...
 
I don't know.
sllawa3 >>:
нет.. всё это лажа.. не работает...ни один из предложенных вариантов.. работает ток через icustom, а как раз от него и необходимо избавиться...
I don't know, it works fine for me.
 
sllawa3 >>:
просто надо прописывать с щтдельным циклом как и в самом индюке..
Do you need to put all the data (I mean values) of the indicator in the buffer or what?
[Deleted]  
it can't work properly on m1 for example... with data taken from n4
 
sanyooooook >>:
это будет для текущего ТФ
it says only for the current TF
[Deleted]  
sanyooooook >>:
тебе все данные индикатора нужно загнать в буфер или как?

you just need the value of an indicator on n4 on every tick and on any timeframe
 
sllawa3 >>:

надо просто значение индюка на н4 на каждом тике и на любом тф
Take an array over this https://www.mql5.com/ru/code/9350
 
   double Fn(int N,int bar)
  {
     double upPrice,downPrice;
     upPrice=iHigh(NULL,PERIOD_H4,iHighest(NULL,PERIOD_H4,MODE_HIGH,N,bar));//максимум за N баров 
     downPrice=iLow(NULL,PERIOD_H4,iLowest(NULL,PERIOD_H4,MODE_LOW,N,bar)); //минимум за N баров 
     return((upPrice-downPrice)/Point);
  }

it will only be for H4
[Deleted]  
Andrei01 >>:
Возми перебрось массив через это https://www.mql5.com/ru/code/9350

it may as well be a lot easier to just leave the icustom ...
 
sllawa3 >>:
нет.. всё это лажа.. не работает...ни один из предложенных вариантов.. работает ток через icustom, а как раз от него и необходимо избавиться...

      upPrice=iHigh(Symbol(),PERIOD_H4,iHighest(Symbol(),PERIOD_H4,MODE_HIGH,N,0));//максимум за N баров 
      downPrice=iLow(Symbol(),PERIOD_H4,iLowest(Symbol(),PERIOD_H4,MODE_LOW,N,0)); //минимум за N баров 
      ExtMapBuffer1[i]=(upPrice-downPrice)/Point;