Hi alfaman,
yes it is the same problem, unfortunately betfair API has different calls for market refresh and list of bets refresh, and the trigger execution logic depends on market refresh. (IMHO this is better than sync trigger with list of bets ). As it is possible to retrieve lists of bets at different rate as market refreshes, which is a very useful setting, it will happen occasionally that a trigger fires because of old list of bets.
With the suggested trigger variables, it will be possible to block trigger action because the trigger can check if list of bets is not up to date. I will block all triggers which depends on P/L and bets, i.e. where profit_loss, bu_laynum, bu_backnum,..... until list of bets is refreshed.
What do you set your Update List of Bets Every x secs. set to ?
I always update list of bets together with markets. Update of markets is 30s for trading and 90s for greenup. Market refresh is 20s.