hi
here is your trigger.
in the constants set
minimum price
maximum price
time to place the bet
maximum bet amount
PLEASE NOTE, due to you wanting the unsettled bets to be classed as a loss, you can only use this trigger for betting, no other trigger or manual betting at the same time, as i have had to use the balance as part of the calculations
i have made 2 triggers
one with commission added
one without commission added
enable the trigger that you need
use test mode until you are happy with your settings
mcbee
download the trigger below