I am looking for a code that calculates a moving average over volume bars. I need it in code so that I can use it in an indicator. If I plot over the volume bars a normal moving average from the library, I am unable to work it into a trading set up. For example I would like to build an indicator that says: green bar with volume above the 10 period moving average. (average over volume bars)