This indicator is a Responsive Moving Average, and it was made easily by using the Swtich function without using the if function, and it was released as an open source so that traders can freely CUSTOM.
If you select the Moving Average type from the Input menu and input the desired period value of MA for each time frame, the period value of the MA you set in INPUT will be plotted whenever the time frame is changed.