misc: introduce debug module

Debug module helps control displaying the debugging messages.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regress:regression: add method to parse attributes for strategies

Add parseAttributes() as uniform call to parse attributes for strategies.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regress:regression: remove turtle from supported strategy for regression

Turtle does not contain any meaningful actions, so remove it from supported
strategy for regression.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regress:regression: add debug support and code cleanup

1) Add debug support using Debug module.
2) Cleanup code for better sustaining.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy: fix the bug that can not calculate max/min profit for RunStat

Earlier than this patch, the max/min profit were only calculated when orders
were being closed, but obviously they should vary everyday. Fix it.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:turtle: fix exception that occurred while running regression

An exception occurred because moveToNextTick() had been modified, fix it.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>