Following the example here, you can set the limit and stop prices for your orders as such:
limit
stop
Inputs, calcs, etc... longExitPrice = strat