Keyword Description
Simple moving average
Class
Function
Where Legal
Resources
|
Entry Logic
|
Exit Logic
|
Initial Size
|
Resize
(Pre-Category)
|
Resize
(Category-Level)
|
l
|
l
|
l
|
|
|
|
Syntax
SMA[p,n]
Where p is the price (O,H,L,C) and n is the number of days in the average.
Example
Sample code
COL2 = SMA[COL1, 45]
|
A simple moving average returns the average value over a selected number of periods. Each day, the oldest data point is removed in favor of the newest data point. The larger the number of periods in a moving average, the less sensitive it will be, and vice-versa.
|
|