I am trying to create a rules file that backs and lays according to certain criteria. One of the conditions is that a bet is only to be placed if there are no open positions for that selection. Unfortunately I cannot find any condition in Guardian that is applicable.
In Excel, I can test for open positions in the matched bets section (AA10 = AD10, or Net Stake = 0), but I would very much prefer doing this in Guardian automation.
Any suggestions would be most welcome.
Testing for open positions
Linus, testing for unmatched bets would work the 1st time I put the order in. However, once that order gets matched, I want to manage the position till I close it out before I put in the next order. So for example, (1) back (or lay) £50 selection A at market price, (2) close out with profit or loss, (3) go to (1).
Within Guardian, (1) consists of an order with appropriate parameters, (2) is handled by defining an offset bet with a stop loss, and (3) is implemented by setting "Allow rule to trigger up to" to N times.
The problem is that I cannot test for the completion of (2), and therefore if N > 1, I will end up having more than £50 on selection A.
This is the only thing that I am missing, which is a shame because I am utilising some marvellous features in Guardian which would be a huge pain to program in Excel.
Within Guardian, (1) consists of an order with appropriate parameters, (2) is handled by defining an offset bet with a stop loss, and (3) is implemented by setting "Allow rule to trigger up to" to N times.
The problem is that I cannot test for the completion of (2), and therefore if N > 1, I will end up having more than £50 on selection A.
This is the only thing that I am missing, which is a shame because I am utilising some marvellous features in Guardian which would be a huge pain to program in Excel.