Yes, it uses a variety of sell logic statements depending on what type of signal is in play. Below is a link to a thread of posts I have made here, each one replies to the previous one, forming a chain of explanations/overviews of various aspects of the program.
Briefly put it has the following types of signals 1. original style buy (current signal) 2. rebuy 3. short sale 4. sell of original 5. sell of rebuy 6. cover of short 7. stop loss on short 8. stop loss on rebuy