An agreement has been reached to allow wagering on Maryland Jockey Club racing by three leading advance deposit wagering companies, ending a standoff with horsemen that threatened to shut off related signals.