Removed superfluous parameters and simplified dynamic trend trading logic