You do not need to rewrite your trader for Monte Carlo mode. If your file already exposes a normal Trader.run(state) method, it should run.