The explanation from Scott is correct, but, a more complete explanation is, every trade at the bid is a sell and every trade at the ask is a buy, I know, I know, many of you are saying that is not correct because for every sale, someone is buying and vice-versa, yes, that's truth, but, the bid and ask price we see, are the market makers buy and sell prices, not private investors or traders, so, when we see a trade at the ask, this is a buy because that is someone like us that is buying from a market maker, the same appeals to a trade at the bid, that is a sell because that is someone like us that is selling to a market maker.
So, trade at the bid = red = sell.
Trade at the ask = green = buy.
Hope this helps.