One bug that escaped from my eyes was a tmp str was defined too small.
it caused problem when you have more than 4 moving average on the plot.

it is fixed now.

Thanks for all of the people tried my program and gave me good feedback.
