Hi
I changed it a little to use conditions to stop/start the second trigger, so it will bet or not bet according to the constants. Please try in test mode.
You could probably use similar conditions if you wanted to use activate / deactivate instead.
Hope this helps