This script gives you up to 5 EMAs and 5 SMAs with custom length, close and color parameters.
Also, you can set up to 3 SMA with fixed, static timeframe input nondependent of the chart timeframe. So, for example, you can set your chart to 5 min timeframe and see where 1D, 30D, 200W MA is.