failover between PPOE and Static WAN

Hi mikrotik users,
I have a problem related to failover between ppoe and static failover.I configured mikrotik 750 mouter for ppoe and static but I am only able to connect internet through ppoe and static is not working.For route I used the following script
/ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=WAN2 distance=2 check-gateway=ping

/ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade
so please help me with this scenario so that i can do failover between these two WAN connections.
Thanks

above configuration works for pppoe as master and wan as slave

Try
load balance

https://wiki.mikrotik.com/wiki/Improved_Load_Balancing_over_Multiple_Gateways

Thanks bro,I will configure it accordingly and see whether it works in my case or not.