One thing I have worked out with Automation is "timing is everything" - certainly everything if I want to minimise those nasty red numbers.
Here's my attempt at trying to understand how the timing of transactions of BetAngel trading on Betfair.
Please correct me if I'm wrong or if I have missed anything.
1. Rules run every refresh
2. The "wait X seconds before rearming" option - means the rules will only run on the first refresh after X seconds since the last run of the rules
3. When BetAngel submits a bet this occurs between 0ms and the refresh time. (it could be immediately or up to the refresh interval).
4. All bets in play are subject to a delay. This delay appears to be less than a second inplay on horse races and several seconds on soccer ? Can it be more ? Is there anyway of determining the absolute time delay, betfair as far as I can see does not publish this.
5. BetAngel can only detect an unmatched bet in a market at the next refresh. If the market is inplay it will be the refresh after following the the delay.
6. For the condition time since unmatched bets (U) needs to be greater than Refresh rate (R)
times 2, plus the inplay delay (D) (of course inplay delay = 0 if not inplay)
i.e. U>2R+D must be true to avoid the rule firing when a bet may be either unmatched or being posted to betfair
7. If the market is only in Guardian then the refresh rate must be multiplied by the number of markets Guardian is servicing.
The number of markets Guardian services can be reduced by use of Advance Setting > Restrict Refresh thereby reducing the time to refresh.
Feedback welcome



