How to set 14 day moving average and 14 candles moving average in zerodha pi?

i guess, you need to write an algo for it…