Посмотрите в коде индикатора 88_signal_2_1.mq4 эти строки и Вы все поймете:
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
double up, dn;
int indexUp=0, indexDn=0;
bool condRL=false;
//int digitHi, digitLo;
string kruglash = "";
//double mult = 1;
bool inZone = false;
int limit, counted_bars = IndicatorCounted();
if(counted_bars < 0)
return(-1);
//if(Digits == 5 || Digits == 4) mult = 100;
//if(Digits == 3 || Digits == 2) mult = 1;
limit = HistoryBars;
//Print(" limit = ", limit);
if(Bars < HistoryBars + Len)
{
Print(" Мало баров. Bars = ", Bars);
return(0);
}
for(int i = limit; i >=0; i--)
{
IndBufUp[i] = iCustom(NULL,0, «89_filter», Len, HistoryBars, SignalLevel, 0,i);
IndBufDn[i] = iCustom(NULL,0, «89_filter», Len, HistoryBars, SignalLevel, 1,i);
}
for(int i = limit; i >=0; i--)
{
up = IndBufUp[i];
dn = IndBufDn[i];
Думаю сейчас Вы поняли принцип работы индюка. А 89_filter у Вас уже есть!!! Или 88_filter, их по разному обзывают!
А может нет! Сейчас уже 40000!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
nonych