Local db

Mike 

3 seperate commits
Change to EMA - pass price not candle
Add MACD method
Enhance logging to log to file (useful on windows where we don't have tee & also adds the ability to log (eg) trades to a specific file.