MovingAvgCrossover

Description

Moving Average Crossover is a study which helps you find crossovers of moving averages of different types and lengths. The following moving averages can be used: simple, exponential, weighted, Wilder's, or Hull.

The general idea of moving average-based analysis is combining two moving averages with different lengths: short and long. It is considered a Buy signal when the short average crosses above the long one; Sell signal, if the long average surpasses the short one.

 

Input Parameters

Parameter Description
price The price used in calculation.
length1 The number of bars used in calculation of the first moving average.
length2 The number of bars used in calculation of the second moving average.
average type1 The type of the first moving average: simple, exponential, weighted, Wilder's, or Hull.
average type2 The type of the second moving average: simple, exponential, weighted, Wilder's, or Hull.
crossing type Defines whether to display a signal when the first moving average crosses above or below the second one.

Plots

Plot Description
signal The Moving Average Crossover signals.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

You may also like
MomentumPercentDiff
The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...
SlowRSI
The Slow Relative Strength Index is a version of the classic Relative Strength Index (RSI), ...
FourDayBreakoutLE
The Four-Day Breakout LE strategy is designed by Ken Calhoun. The strategy adds a buy to ...