market Simulator/Techincal analysis in python