Chaps
I get myself into a position where I have a profit on a horse, and nothing on the rest. I want to divide the profit equally on all horses, including the selection.
I can't use green up since I'm already greened up, and I can't distribute profit equally because it doesn't include the original selection. So what trigger option do I use to spread the profit equally. I can obviously calculate what I need to lay on the horse, and just enter that as a bet, but I was wondering if there was another way.
Also, when I look for selections that have the back_matched = lay_matched, it sometimes doesn't pick it up because the values are not exact i.e. had one where the back matched was 99.999997 and the lay matched was 100, so it came up as a fail, when it should be a success. I think it is because betfair calcs go down to extreme decimals. Any ideas on how to solve that one? Maybe it s a programming issue?
Please help.
Thanks
Nick