If there was a way to directly formulate every parameter of the black Scholes formula you would be correct. The problem that you run into is how to calculate volatility itself? Without the volatility value, your algorithm cannot trade on it.
Using history of volatility is insufficient, because volatility is a forward looking measure. Just because the stock was volatile in the past does not mean it will be in the future, and vice versa. There are even more nuances with this, as volatility is a smile (or a surface), not a singular number https://en.wikipedia.org/wiki/Volatility_smile.
TLDR Trading in volatility is a very complicated topic. However, volatility is a useful parameter, and black Scholes is typically used to deduce the forward looking volatility from option price, in addition to volatility -> option price.