Imagine that each individual selection and the market as a whole each have a stack of empty shelves. When you want to remember something about the selection or market you put a label on a shelf and store a number on it. Ie you create a signal name and give it a value. Later in your rules you can perform actions that are conditional on the values of the signals you have set previously.
Signals are only set or changed when the rule line's conditions are met.