add dry run option, correct MA calculation