add some functions such as flush series of trade and reset scaned.