Class ExponentialMovingAverageService
java.lang.Object
com.bluebell.greenhouse.radicle.services.technical.ExponentialMovingAverageService
Service-layer wrapper for exponential moving average calculations and lookups.
- Version:
- 2.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildLookup(List<MarketPrice> marketPrices, int period) Builds a lookup of EMA values keyed by market-price date for the given period.
-
Constructor Details
-
ExponentialMovingAverageService
public ExponentialMovingAverageService()
-
-
Method Details
-
buildLookup
Builds a lookup of EMA values keyed by market-price date for the given period.- Parameters:
marketPrices-ListofMarketPriceperiod- EMA period- Returns:
Mapof date to ema value
-