Need coding for moving average crossover-VMA over TMA

I want Variable moving average and triangular moving average crossover

Variable moving average and triangular moving average can not be defined using tradescript as of now

does this indicator is on streak

Or can you help me out to write an afl for variable moving average