The most important rule in trading is to cut your losses short and let your profits run.
It is the user who should parameterize procedures, not their creators.