I need help with writing Tradestation easy lang code to scale out of positions. For example if the system buys 4 contracts at 70, I would like to exit 1 contract with a $500 profit, second contract with $1000 profit and the remaining 2 contracts ride until the exit is hit. I have tried the following on 5 min charts and have run into problems: 1) Sell 1 contract at next bar entryprice + 500 limit; * ts documentation says that this order is only good for the next bar and is then cancelled. I would like a persistent limit order until the price is hit. 2) SetProfitTarget( ProfitTargetAmt ) ; * this function dumps the entire position & then triggers another signal if the condition is met again. I would like to only scale out of 1 or 2 contracts and then wait for the next 'sell' signal. Any help with sample code would be greatly appreciated.