I using a system that generates long and short positions, which does not exit these positions correctly when the trend moves against the position. I am trying to set a programatic stop loss (on both the long and short positions) to at least with a reasonable loss. Can anyone provide a simple example of code that generates Sell and Cover signals? Your help appreciated. -David
