Right I think I've done a auto file for a simple scalp on the favourite (though I set it up to do it 10 times), also to green up afterwards.
BUT I am stuck on this as some times the selections are all green (say after the 3 times) but it carries on with the other scalps without stopping then by the time the race starts the green is then red on all the horses apart from the favourite which is green and if I green up then I would make a loss on every horse.
I wanted to add a rule that would say as soon as a profit of ........... (this could be a % or a £) is made then cancel the remaining unmatched bets and green up all selections.
I know it sounds simple and it might be simple but for the life on me I can't seem to get my head round it.

Can anyone help?
Mark