If the substraction is negative then the value is decreasing, which means I should make a correction the other way to stop it from decreasing. If the substraction is null then I make no correction at all. In conclusion, the derivative correction tries to avoid change and keep the line https://en.gravatar.com/timandduwh