Sha256: 635b93128922fb8ac24c32ff188bfbdc98009ec0e797e258e7028231498dbe7e
Contents?: true
Size: 458 Bytes
Versions: 22
Compression:
Stored size: 458 Bytes
Contents
# Simple Moving Average (SMA) This method takes in an array of historical prices for a stock and a period (the number of days to calculate the moving average over). It uses the `each_cons` method to iterate over a sliding window of closing prices and calculate the moving average for each window. The method returns an array of the moving averages for each windo # Simple Moving Average Trend Up or down with angle to indicate how steep the movement is.
Version data entries
22 entries across 22 versions & 1 rubygems