The Moving Average Two Lines strategy is based upon crossovers of fast and slow averages of price. The fast average's length is significantly less than that of the slow one. By default, crossovers are found for Exponential Moving Averages (EMAs), however, you are free to use other average types: simple, weighted, Wilder's, or Hull. A simulated Buy order is added when the fast average crosses above the slow one, while the simulated Sell order is shown when it crosses below.

Input Parameters

Parameter Description
price The price used in calculation of averages.
fast length The number of bars used in calculation of the fast average.
slow length The number of bars used in calculation of the slow average.
average type The type of moving average to be used in calculations: simple, exponential, weighted, Wilder's, or Hull.



 The fast moving average plot.


The slow moving average plot.

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