log fit algo and strategy