Hey, I found this stoploss code, first off, what do you think of it? Secondly how would i integrate it into the code I already have which is 990 lines long? Thanks guys Nat if ((OrderMagicNumber()==MagicNumber1)) if (OrderType()==OP_SELL) { StopLoss= iHigh ( NULL , 0 , 1 );