Hi,
Your orders are pretty simple
Buying 100 shares with a limit order [ROUTE=SMRTL; is specific for IB, you can use ROUTE= LIMIT;]
Selling 25% of a open position (market order) and placing an stop order at average cost [ROUTE=SMRTM; is specific for IB, you can use ROUTE= MARKET;]
Selling 100% with a limit order
I mentioned a little bit about your above scripts, so you can get an idea about each script (or you already know that). As I mentioned in the beginning, the scripts are very simple. I can explain more details but I will suggest that you read the following post..
Since you are working on SIM, it is good to know that SIM doesn't depend on Brokers for route.
Best of luck..