Пример #1
0
 public static Decimal VolatilityPriceChanges(StockPosition sp, int n)
 {
     Decimal[] closings = new DataManipulator().GetListOfDailyClosingPrices(sp.GetTicker(), n);
     return(VolatilityPriceChanges(closings));
 }
Пример #2
0
 public static Decimal NDayVolatility(int n, StockPosition sp)
 {
     Decimal[] prices = new DataManipulator().GetListOfDailyClosingPrices(sp.GetTicker(), n);
     return(StandardDeviationPopulation(prices));
 }