Comment on Managing your Script
RD,
You can put the SL in terms of % in your alert preference window.By doing this what would happen is, whenever you click ok on a prompt to buy/sell based on your strategy, a stop loss order will automatically be placed based on the stoploss% you have mentioned.
While coding a strategy you cannot really put a stop loss..