#### Topic: forcing base price change the indicator calculations

Hello Pop

When trying to force MA indicator to use only close it gives me different calculations from the normal use of baseprice (close) !!!!!!

The original code :

```
IndParam.ListParam[2].Caption = "Base price";
IndParam.ListParam[2].ItemList = Enum.GetNames(typeof (BasePrice));
IndParam.ListParam[2].Index = (int) BasePrice.Close;
IndParam.ListParam[2].Text = IndParam.ListParam[2].ItemList[IndParam.ListParam[2].Index];
IndParam.ListParam[2].Enabled = true;
IndParam.ListParam[2].ToolTip = "The price Moving Average is based on.";
```

The modified code :

```
IndParam.ListParam[2].Caption = "Base price";
IndParam.ListParam[2].ItemList = new[] { "Close" };
IndParam.ListParam[2].Index = 0;
IndParam.ListParam[2].Text = IndParam.ListParam[2].ItemList[IndParam.ListParam[2].Index];
IndParam.ListParam[2].Enabled = true;
IndParam.ListParam[2].ToolTip = "The price the central Moving Average is based on.";
```

logically they should plot identical lines but it didnot happen !!!!