# HELP ANY IDEA

hello I'm going to try to color-code this to make this easier to understand, hope this help. IF ANY IDEA PLEASE SHARE! THANK YOU

is there away to only have the  CheckTrailingStop  And NOT Ask-1000 or 0

OR

I'm running out of idea how to do this, there the CheckTrailingStop  code

Thank you

```if (signal =="buy" && PositionsTotal()<1)

Comment ("The signal is now: ",signal);

}

{

for(int i=PositionsTotal()-1; i>=0; i--)
{

string symbol=PositionGetSymbol(i);

if (_Symbol==symbol)

{
ulong PositionTicket=PositionGetInteger(POSITION_TICKET);

double CurrentStopLoss=PositionGetDouble(POSITION_SL);

if (CurrentStopLoss<SL)

{
}
}
}

}```

```if (signal =="buy" && PositionsTotal()<1)

Comment ("The signal is now: ",signal);

}

{

for(int i=PositionsTotal()-1; i>=0; i--)
{

string symbol=PositionGetSymbol(i);

if (_Symbol==symbol)

{
ulong PositionTicket=PositionGetInteger(POSITION_TICKET);

double CurrentStopLoss=PositionGetDouble(POSITION_SL);

if (CurrentStopLoss<SL)

{
}
}
}

}
```

Hi and good morning,

I took a quick look at your code. One Problem is you are not working with points.

```   double SL=NormalizeDouble(Ask - (150 * _Point), _Digits);
```

I hope, this helps you.

Best regards

Another problem is, you are using NormalizeDouble. It does not take into account the step size of the price value.
Reason: