Computers are used to automatically run a technical analysis at set increments of time to determine the optimal points in time to buy and sell a security . In algorithmic trading , buy and sell signals are automatically generated by the mathematical models commonly used in technical analysis .