Inverting indicators

 
Hi all I'm new to this but I saw someone invert a moving average with the trend mirror indicator. Does anyone know exactly what part of the code enables that to happen? Also can I do that with any indicator?