In addition, the Golden and Death Cross are also displayed.
- MA 7 - Orange Line
- MA 21 - Yellow Line
- MA 25 - Grey Line
- MA 99 - Blue Line
- MA 200 - Green Line
- EMA 200 - Grey Dotted Line
- EMA 222 - Pink Dotted Line
- Crossover MA25 + MA200
- Crossunder MA25 + MA200
What is a Moving Average (MA) ?
A moving average (MA) is a widely used indicator in that helps smooth out price action by filtering out the “noise” from random short-term price fluctuations.
Moving average is a trend-following, or lagging, indicator because it is based on past prices. The most common applications of moving averages are:
The two basic and commonly used moving averages are the ( ), which is the arithmetic average of a security over a defined number of time periods, and the ( ), which gives greater weight to more recent prices.
What is a Golden Cross?
The golden cross is a pattern that is a signal in which a relatively short-term moving average crosses above a long-term moving average. The golden cross is a breakout pattern formed from a crossover involving a security's short-term moving average (such as the 15-day moving average) breaking above its long-term moving average (such as the 50-day moving average) or . As long-term indicators carry more weight, the golden cross indicates a bull market on the horizon and is reinforced by high trading volumes.
What Is a Death Cross?
The death cross is a technical chart pattern indicating the potential for a major selloff. The death cross appears on a chart when a stock’s short-term moving average crosses below its long-term moving average.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
I wish you the best during Xmass and NewYear's time.
I would like to ask for your help.
I want to check the MA within the time period, I use for it as normally work with other scripts eg. OTT...
// === INPUT BACKTEST RANGE ===
FromMonth = input(defval = 1, title = "From Month", minval = 1, maxval = 12)
FromDay = input(defval = 1, title = "From Day", minval = 1, maxval = 31)
FromYear = input(defval = 2000, title = "From Year", minval = 1990)
ToMonth = input(defval = 1, title = "To Month", minval = 1, maxval = 12)
ToDay = input(defval = 1, title = "To Day", minval = 1, maxval = 31)
ToYear = input(defval = 9999, title = "To Year", minval = 1990)
I copied out your scrip, and put the backtest range, but nothing changed.
What can I do?