Those moving averages are calculated from the Day candlesticks, regardless of whether the chart is using 5min, 45min, 2H... So your 200MA is always the 200-day moving average.
Script can show up to 4 SMA and 4 EMA all in one indicator in TV. By default the SMAs and EMAs are 50d, 100d and 200d. A fourth is available in the preferences if you enable it.