Figure 2: Full-implementation model of PSO. It does not include its own implementations of the problem to solve, since these are implemented in the automatic trader. It shows generic implementations of the neighborhood function (Local and Global Best) and the stopping criterion.