I am looking at developing some automated systems in tradeninja for the emini s&p. / The problem I have is with stop setting. Ideally I would prefer to use the previous swing pivot as the reference to the stop. But this is somewhat mathematically challanging for me. As I am unsure how to describe a swing pivot in mathematical language. It is easer to reference atr. But I may be losing something by using that. Although I normally trade on 10 minute charts, I am considering using 1.25 * 30minute atr trailing stops. But I would like to know if the swing pivot stop is easier than I imagine to program. The stops would be fixed on entry and changed to trailing once price movement has gone in direction I expect. Any advice or comments are welcome.Thanks What do other people do re: automated stops?