How to applay Moving avrage % indicator

Can anyone give me code for :- When 5ma is grater 0.5% than 14ma and 1% than 34ma trigger buy And 5ma is smaller 0.5% than 14ma and 1% than 34ma trigger sell Thanks in advance

Moving averages based in percentages can not be written in tradescript language.