Would this work for you? http://forum.mikrotik.com/t/solved-script-to-recreate-the-load-balance-mangle-rules/36203/1