How can you automate it? OBV gives a Buy signal when the OBV value crosses up its moving average (default: ) and a Sell signal when it crosses down its moving average.
If you include analyses in your trading strategy, automating OBV will give buy signals whenever and price are rising altogether.
Start automating your trading in Cryptohopper.com
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.