This is clever! Altho, i dont personally like to automate certain things, many years ago we worked very hard to auto-mate some money losing activities.
I think you might start simpler, see : beeswap.dcity.io and uswap.app
Both give bonuses to hive > swap.hive and swap.hive > hive under certain conditions (start with beeswap, their "rules" are more clear on the website)
You might look into auto grabbing that bonus juice if the conditions are met.