Pregunta de entrevista de GTS

Write an order execution algo (i.e. buy low sell high)