Is there any way to predict if the market if it's going to fill an order based of the order book or previous transactions I was thinking an out using machine learning to figure this out, but that's a bit more complicated than I understand, is there a way to do this simpler?
Unfortunately this won't help you these days with the markets.
What you are doing is simply called Reading the Tape and with bots it has proven to be very difficult to predict any kind of speculation since there is a lot of order spoofing and iceberg orders.