how to setup failover with a dynamic gateway?

how to setup failover with a dynamic gateway?

http://www.mikrotik.com/docs/ros/2.9/ip/vrrp