# Mov Avg 2 Lines

The Mov Avg 2 lines indicator calculates and plots two simple exponential moving averages of the prices specified in the fast and slow price inputs from the number of most recent bars specified in the fast and slow length inputs.

## Description

The indicator with default settings plots an exponential moving average of the closing prices of the last 9 bars and an exponential moving average of the closing prices of the last 18 bars. The average of shorter length (fast average) will be more sensitive to current price changes than the average of greater length (slow average).

A moving average may be used to identify the trend. The market trend may be defined by the direction in which the averages are moving and the relative position of prices and the averages. Rising moving average values and prices above the short moving average and the short moving average above the long moving average may indicate an uptrend. Declining moving average values and prices below the short moving average and the short moving average below the long moving average may indicate a downtrend.

Displaced moving averages plot the moving average values of a previous bar or later bar on the current bar. This indicator is not displaced by default. Changing the Displace input to a positive number displaces the plots to the left. Changing the Displace input to a negative number displaces the plots to the right

## Default Inputs

**FastPrice( close )** sets the price value used in calculation of the "fast" moving average.

**SlowPrice( close )** sets the price value used in calculation of the "slow" moving average.

**FastLength( 9 )** sets the number of bars included in calculation of the "fast" average.

**SlowLength( 18 )** sets the number of bars included in calculation of the "slow" average.

**Displace( 0 )** sets the number of bars to displace the plot of the moving average.

## Plots

**Plot1 (FastAvd, Cyan)** is the fast moving average value.

**Plot 2 (SlowAvg, Magenta)** is the slow moving average value.

The plots will be displayed in the same subchart as the price data when the indicator is applied to a chart.