I am trying to find what is the best combination of the EMA length for the ECO indicator and I am using the OPTIMIZE function. There are 3 optimization variables:

```
ave1=optimize("First",23,1,50,1);
ave2=Optimize("Second",1,2,50,1);
ave3=optimize("Third",50,2,50,1);
```

I have found out two of them can switch position and the result would be the same (ave1 =3 and ave2= 4 has the same result as ave1=4 and ave2=3). I am trying to make the second variable always be equal or larger than the first one but I don't know how to do that.

I tried

```
ave1=optimize("First",23,1,50,1);
ave2=Optimize("Second",1,ave1,50,1);
```

and in this situation ave2 was always 50.

Does anybody knows how to do this?

Thanks,

Erkan