Two MA Sys by Jchang274

The MA System is indicating historical cost on the market.
This script will help you observe the relationship among MA.

This script is inspired by LEI & LoneCapital.
Thanks to LEI.

Welcome to enjoy and test it!

Version 1.0
版本注释: MA+EMA System
版本注释: Add background to recognize time,editable.
版本注释: Fix some bugs
It can move with the Label now.
版本注释: Bug Fix:
When use period below 1D,the chart refresh rapidly. It shows more than one label or DKJ dot.
版本注释: Change Simple Moving Average to Dashed Line.

And force to show the first bar's SMA Line.
版本注释: Add Reference Book ,you can close any function as you wish.
版本注释: Change the label position due price.

Make the price label show two numbers after dot.
版本注释: Bug fix: Price Label get wrong data.
版本注释: Show gap that not fill until now.

In volatile markets, traders can benefit from large jumps in asset prices, if they can be turned into opportunities. Gaps are areas on a chart where the price of a stock (or another financial instrument) moves sharply up or down, with little or no trading in between. As a result, the asset's chart shows a gap in the normal price pattern. The enterprising trader can interpret and exploit these gaps for profit. This article will help you understand how and why gaps occur, and how you can use them to make profitable trades.
版本注释: The moving average (MA) is a simple technical analysis tool that smooths out price data by creating a constantly updated average price. The average is taken over a specific period of time, like 10 days, 20 minutes, 30 weeks or any time period the trader chooses. There are advantages to using a moving average in your trading, as well as options on what type of moving average to use. Moving average strategies are also popular and can be tailored to any time frame, suiting both long-term investors and short-term traders.
版本注释: With TradingView's if statements we execute code based on a condition. That way our script takes specific actions in certain situations. But not any action (function) can run inside an if statement. Some are excluded. Let's see which ones and what the solutions are.
版本注释: In statistics, a moving average is a calculation used to analyze data points by creating a series of averages of different subsets of the full data set. In finance, a moving average (MA) is a stock indicator that is commonly used in technical analysis. The reason for calculating the moving average of a stock is to help smooth out the price data by creating a constantly updated average price.
By calculating the moving average, the impacts of random, short-term fluctuations on the price of a stock over a specified time-frame are mitigated.