Change lines 198 & 199 from this

Code: Select all

```
if (DIp[i]>DIm[i] && ADX[i]>Level) value[i] = 1;
if (DIp[i]<DIm[i] && ADX[i]>Level) value[i] = -1;
```

Code: Select all

```
if (ADX[i]>Level) value[i] = 1;
if (ADX[i]<Level) value[i] = -1;
```

Code: Select all

```
if (value[whichBar] == 1) doAlert(" up");
if (value[whichBar] ==-1) doAlert(" down");
```

Code: Select all

```
if (value[whichBar] == 1) doAlert(" trending");
if (value[whichBar] ==-1) doAlert(" not trending");
```