You need to look at it logically, I used to have a sheet that sent bets with a fill/kill and just monitored the profit/loss column to decide which bet to place.
If the pnl column was >=0 no bets had been placed so it'd fire of a lay with fill/kill and offsets attached. If the bet was unmatched and fill/kill came into place the column showed as cancelled so an if statement would send in a clear request so further bets could be submitted. If the column was showing a negative figure a bet had been matched and the offset would take care of that, if that was matched the pnl column would now show as >=0 allowing further bets to be placed.
The reason I mentioned Garys sheet is that if you're trading more than one runner that pnl column isn't reliable whereas Garys coding will show you the current situtation for bets placed on each runner individually so you can see if they've generated a profit so you can then send extra bets, you can use your vlookup to look solely for unmatched bets on that runner to avoid placing further bets until that unmatched bet has either been cancelled by fill/kill or matched in which case it would send an unmatched offset which would prevent further bets being placed.
Not too sure why you needed to look for filled bets rather than unmatched bets.
If the pnl column was >=0 no bets had been placed so it'd fire of a lay with fill/kill and offsets attached. If the bet was unmatched and fill/kill came into place the column showed as cancelled so an if statement would send in a clear request so further bets could be submitted. If the column was showing a negative figure a bet had been matched and the offset would take care of that, if that was matched the pnl column would now show as >=0 allowing further bets to be placed.
The reason I mentioned Garys sheet is that if you're trading more than one runner that pnl column isn't reliable whereas Garys coding will show you the current situtation for bets placed on each runner individually so you can see if they've generated a profit so you can then send extra bets, you can use your vlookup to look solely for unmatched bets on that runner to avoid placing further bets until that unmatched bet has either been cancelled by fill/kill or matched in which case it would send an unmatched offset which would prevent further bets being placed.
Not too sure why you needed to look for filled bets rather than unmatched bets.
Comment