Analysis Techniques & Strategies
Name | Expression | Default | Description |
Price | Numeric | Close | Value to be used in calculating the moving average |
Length | Numeric | 9 | Number of bars to include in the calculation |
Displace | Numeric | 0 | Number of bars to displace the plot of the moving average |
The moving average may be the most widely used indicator. The Mov Avg 1 line indicator calculates and plots a simple arithmetic average of prices, specified by the input Price, from each of the most recent number of bars specified by the input Length.
A moving average is generally used for trend identification. Attention is given to the direction in which the average is moving and to the relative position of prices and the moving average. Rising moving average values (direction) and prices above the moving average (position) would indicate an uptrend. Declining moving average values and prices below the moving average would indicate a downtrend.
A displaced moving average plots the moving average value of a previous bar or later bar on the current bar. This indicator is not displaced by default. Changing the input Displace to positive number displaces the plot to the left. Changing the input Displace to a negative number displaces the plot to the right.
Number | Name | Default Color | Description |
Plot1 | Avg | Cyan | Plots the moving average value. |
When applied to a chart, this indicator displays one plot in the same subgraph as the price data.