# Indicators: Ehlers Fisher transform

145392

Ehleres Fisher transform

81

@Mladen Rakic Hi bro, what are those means?

? and :

```         val[i]  = (i>0) ? 0.5*MathLog((1.0+work[i])/(1.0-work[i]))+0.5*val[i-1] : 0;
valc[i] = (i>0) ? (val[i]>val[i-1]) ? 1 : (val[i]<val[i-1]) ? 2 : 0 : 0;```

and I am curious about the iCustom(... , ...)

I mean

I have an EA at MT4 and I control the condition like that "bool Long()"

How to convert your indicator for iCustom from MQL4 to MQL5?

My EA's some part for Fisher condition:

```bool Long()
{
bool   flag=false;
double Fisher[4], Trigger[4];
ArrayInitialize(Fisher,EMPTY_VALUE);
ArrayInitialize(Trigger,EMPTY_VALUE);
int    i, limit=ArraySize(Fisher);

for(i=0; i<limit; i++)
{
Fisher[i]=iCustom(NULL,0,"FTI",Periyot,0,i);
Trigger[i]=iCustom(NULL,0,"FTI",Periyot,1,i);
}

if (  Fisher[1]  <= (Level*(-1)) &&
Trigger[1] <= (Level*(-1)) &&
Fisher[1]  >  Trigger[1]   &&
Fisher[2]  <  Trigger[2]    )
{
flag=true;
}
return(flag);
}```

I think, like that, right?

```            val[i]=iCustom(NULL,0,"FTI",inpPeriod,0,i);
valc[i]=iCustom(NULL,0,"FTI",inpPeriod,1,i);```