Corrections +using the Functions class for helper functions.
Stoploss will be fixed first and I'll go through all functions step by
step.