Hello there, Greeting from India!
Sure this can be done with OBV. but for MACD, three averages are required. I understand that you have decided on the two inputs. But what about the third one? Do you not require the signal line?
Is it that you need only the MACD line without the signal line and the histogram?
Let me know your interest. Thanks