Hello!
Your triggers are ready, please see the file attached.
In the constants you can set the initial maximum price and price gap, as well as the eventual price at which the bet must be triggered, and the minimum price gap that should condition the bet.
Make sure you have tested the triggers in Test Mode.