Hw to add average volume of last ten days to chart in Pi?

Hw to add average volume of last ten days to chart in Pi?

for the average volume of 10 you can use below syntax

SMA(VOLUME, 10)

hw do i add that to pi chart ?