Sorry Mcbee,
Completely my fault for the confusion here, and thank you for your patience.
I am looking to make a spread for example:
Horse A price is going sideways based on graph, and current lay price is 8.4 and back price is 8.6 I want to place bets at the same time if both sides get matched , I can then green up. Horse b price in the same race is also going sideways and the current lay price is 6 and back price is 6.2 I want to place bets at the same time if both sides get matched, I can then green up. If one side does not get matched then distribute loss 30 seconds before off.
It should repeat the process on any horse in the race that its price is going sideways.
Does that make sense?