Geneva Trading Interview Question

Basic probability questions, Pyhton Moving Average script