This script consolidates in a single indicator 6 selectable EMA or SMA with different lengths, the value used is by default the closing of the candle
SMA'S are moving averages of the price (in this case the closing of the candle), on the other hand EMA'S are moving weighted averages of the closing of the candle.