Simple Moving Average (SMA)
Namespace: OpenQuant.API.Indicators
Assembly: OpenQuant.API (in OpenQuant.API.dll)
Syntax
Remarks
Moving averages are one of the oldest and most popular technical analysis tools, smoothing price fluctuations by averaging over some period. They are used to reveal trends, their drawback is delay of average value against price. Moving averages differ by averaging method applied:
- Simple Moving Average (SMA).
- Weighted Moving Average (WMA).
- Exponential Moving Average(SMA).
- Modified Exponential Moving Average (MSMA).
A moving average is the average price of a security at a given time. When calculating a moving average, you specify the time span to calculate the average price (e.g., 15 days).
This indicator is described in more details in the Steve Achelis' book "Technical Analysis from A to Z".
Formula: 