Topic: How To limit the Moving Average indicator

The regular Moving average

double[] adMA = MovingAverage(period, shift, maMethod, Price(price));

i need to limit the methods

Old : var maMethod = (MAMethod) IndParam.ListParam[1].Index;
New: var maMethod  = only simple & expo
                   
var price = (BasePrice) IndParam.ListParam[2].Index;
               = only O H L C