I'm looking for some help as i'm quite new to automation.
I've been trying to create my own automation file in which i place 3 lay bets on a nominated selection horse and each lay bet will be offset by 12 ticks then green up if matched, here's the part i need help with....if lay bet bet 1 is matched and then drifts 12 ticks and greened up i'd i want the unmatched lays 2 and 3 to be cancelled. How can i achieve this?

Any help would be appreciated.
Thanks
Rob