Stop Loss automatically set to previous bars close or low

Is there a way to set up a bracket trade so when the order is placed the stop loss pins to the previous bars close and or low?