The ma_period variable isn't used in the trade rule.