Find best MA that fits an index
<p>I would lke to find the best Moving average, one for buy and one for sale, that fits an index or a stock. Is it possible using the R package <code>Quantstrat</code>? 
Could someone give an example how this is done in R?</p>