Specifications required to code ATR trailing stop loss for a trending following EA

Hi,
I need help with specifications required to code ATR trailing stop for a trending following EA. I will be very grateful if someone list the requirements for me because I don’t have much idea about ATR trailing stop. Thanks