Indicator of indicator help

Hi, I have the indicator tool VAD= volume advance decline and I apply a moving average to the VAD and I want the formula to show me when the vad is above the moving average, can anyone help with this formula, ta

Hi,

The following script shows when the default VAD is above a 50SMA of the VAD:

//Set VAD
V1 = VAD();
//Set MA of VAD
V2 = MA(V1, BARS=50) ;
//VAD > MA
V1 > V2

The blue shaded area is where the above script is triggering:

thanks for your help Matthew, ta