What does mining diff mean
The diff line represents the difference between the short-term and long-term smooth moving average of the closing price. It is usually used with DEA line and MACD line
Usage:1. Diff breaks through DEA to buy signal
Diff fell below DEA and sold the signal3, DEA line deviates from K line, market reversal signal
Analysis of MACD columnar line, from red to green (positive to negative), sell signal; From green to red, buy signal Generally speaking, when the diff line deviates from the stock price, the market is likely to be reversed. The deviation between diff line and stock price can be divided into top deviation and bottom deviation1, top deviation
Top deviation means that when the stock price reaches a new high, the diff index fails to reach a new high simultaneously. The emergence of top deviation often indicates that the trend of stock price is about to weaken. When the top deviation appears, investors need to combine with other technical indicators such as K-line shape, and be ready to sell their stocks at any time
2, bottom deviation
bottom deviation means that when the stock price reaches a new low, diff goes up instead. When the bottom deviation appears, it often indicates that the stock price trend is about to strengthen. When the bottom deviation appears, investors can combine other technical indicators such as the K-line shape to grasp the right time to buy< br />
command compares text files. It can compare the contents of a single file or directory
note:
diff
command is valid only when the input is a text file
If
directory1
and
directory2
parameters are specified, diff
compares text files with the same name in two directories. Lists different binaries, common subdirectories, and files that appear in only one directory
when the
diff
command runs in a regular file, and when different text files are compared ring directory comparison, the diff
command displays which lines in the file must be changed to keep them consistent. If the
file1
and
File2
parameters are not directories, one of them may be given a negative sign "-" to adopt standard input. If the
file1
parameter is a directory, the file in the directory that is consistent with the file name specified by the
File2
parameter is used.
The diff line represents the difference between the short-term and long-term smooth moving average of the closing price. It is usually used with DEA line and MACD line
usage:
1. Diff breaks through DEA upward to buy signal
Diff fell below DEA and sold the signal The deviation between DEA line and K line is the signal of market reversal Analysis of MACD columnar line, from red to green (positive to negative), sell signal; From green to red, buy signal Generally speaking, when the diff line deviates from the stock price, the market is likely to be reversed. The deviation between diff line and stock price can be divided into top deviation and bottom deviation1, top deviation
Top deviation means that when the stock price reaches a new high, the diff index fails to reach a new high simultaneously. The emergence of top deviation often indicates that the trend of stock price is about to weaken. When the top deviation appears, investors need to combine with other technical indicators such as K-line shape, and be ready to sell their stocks at any time
2, bottom deviation
bottom deviation means that when the stock price reaches a new low, diff goes up instead. When the bottom deviation appears, it often indicates that the stock price trend is about to strengthen. When the bottom deviation appears, investors can combine other technical indicators such as the K-line shape to grasp the right time to buy< br />
DIF and diff do not mean the same thing in stock
DIF, also known as difference value, is the core part of MACD index Diff is the difference between the short-term and long-term smooth moving average of the closing pricehttp://..com/question/33757235.html?fr=qrl3
1. MACD is called the moving average of similarities and differences, which is developed from the double index moving average. The fast line dif is obtained by subtracting the slow index moving average (ema26) from the fast index moving average (ema12), and then 2 × Fast line dif-dif's 9-day weighted moving average (DEA) obtained MACD column
The diff command is used to compare text files. It can compare the contents of a single file or directory. The diff command is valid only if the input is a text file. If the directory1 and directory2 parameters are specified, the diff command compares text files with the same name in two directories. Lists different binaries, common subdirectories, and files that appear in only one directory Data envelopment analysis (DEA) is a method of operational research and economic proction boundary research. This method is generally used to measure the proction efficiency of some decision-making departments
extended data:
usage:
1. Diff breaks through DEA upward to buy signal
Diff fell below DEA and sold the signal3, DEA line deviates from K line, market reversal signal
Analysis of MACD columnar line, from red to green (positive to negative), sell signal; From green to red, buy signalthis index should be combined with the K-line system and the trading volume system. Even if it is viewed independently, it is also very particular. The golden fork and dead fork can be divided into above zero and below zero, and there is deviation before and after, the relationship between the red pillar and the yellow white line, the relationship between the green pillar and the yellow white line, and the operation of the yellow white line inside and outside the pillar pile are also learned
MACD () was proposed by geral Appel in 1979. It is a technical index to study and judge the timing of buying and selling by using the aggregation and separation between short-term (usually 12 day) moving average and long-term (usually 26 day) moving average
formula algorithm
dif line (difference) short-term moving average and long-term moving average deviation
DEA line (difference empirical average) dif line M-day exponential smooth moving average
MACD line dif line and DEA line difference, color columnar line
parameters: short (short term), long (long term), m days, generally 12, 26 9
the formula is as follows:
weighted average index (DI) = (the highest index of the day + the closing index of the day + 2 times the lowest index of the day)
12 day smoothing coefficient (S12) = 2 / (12 + 1) = 0.1538
26 day smoothing coefficient (L26) = 2 / (26 + 1) = 0.0741
12 day average index (12 day EMA) = S12 × Closing index of the day + 11 / (12 + 1) × Yesterday's 12 day EMA
26 day index average (26 day EMA) = L26 × Closing index of the day + 25 / (26 + 1) × Yesterday's 26 EMA
EMA (exponential moving average), index average index. Also known as expma index, it is also a trend index. The index average index is a moving average weighted by exponential decreasing. The weighting of each value decreases exponentially with time. The more recent the data is, the heavier the weighting is. However, the older the data are also given a certain weighting
dif = 12 day ema-26 day EMA
9 day dif smooth moving average (DEA) = day dif × 0.2 + yesterday's DEA × 0.8
on the analysis software, there is another index called bar:
MACD: bar = 2 × In the existing technical analysis software, the common parameters of MACD are 12 for fast smooth moving average and 26 for slow smooth moving average. In addition, MACD has an auxiliary index bar. In most futures technical analysis software, the columnar line is colored, below the 0 axis is green, above the 0 axis is red, the former represents a weak trend, the latter represents a strong trend
let's talk about the basic principles that should be followed when using MACD index in the stock market:
1. When DIF and DEA are above the 0 axis, they belong to the bull market, and the dif line is a buying signal when it crosses the DEA line from bottom to top. When the dif line crosses the DEA line from top to bottom, if the two line values are still running above the 0 axis, it can only be regarded as a short-term decline, and can not determine the trend turning point. At this time, whether to sell or not needs to rely on other indicators to make a comprehensive judgment
When DIF and DEA are below 0 axis, they belong to short market. When dif line crosses the DEA line from top to bottom, it is a sell signal. When dif line crosses the DEA line from bottom to top, if the two line values are still running below the 0 axis, it can only be regarded as a short-term rebound, and can not determine the trend turning point. At this time, whether to buy or not needs to be comprehensively judged by other indicators (3) contraction and amplification of columnar line. Generally speaking, the continuous shrinkage of the columnar line indicates that the intensity of the trend is graally weakening. When the color of the columnar line changes, the trend will turn. However, in the process of using some MACD indicators with a short period of time, this view is not fully tenable (4) morphology and deviation. MACD also emphasizes the phenomenon of form and deviation. When the dif line and MACD line of MACD index form a high bearish pattern, such as head shoulder top, double head, etc., we should be vigilant; When the form of MACD index dif line and MACD line form a low bullish form, we should consider buying. DIF line is the main line and MACD line is the auxiliary line. When the price continues to rise and MACD index goes out of a wave of lower trend, it means that the top deviation appears, indicating that the price may turn downward in the near future. When the price continues to fall, but MACD index goes out of a wave of higher trend, it means that the bottom deviation appears, indicating that the price will soon end the decline and turn upward5. The index in the bull market will be distorted. When the price does not move from top to bottom or from bottom to top, but keeps moving in the horizontal direction, we call it cowhide Market Road. At this time, the false signal will be generated in the MACD index. The intersection of dif line and MACD line will be very frequent. At the same time, the column line will also appear frequently, and the color will often turn from green to red or from red to green, At this time, the MACD index is in the state of distortion, and the use value decreases accordingly
the curve shape of dif was used to analyze, mainly using the principle of index deviation. Specifically: if the direction of dif deviates from the trend of stock price, it is the time to take specific actions. However, according to the above principles to guide the actual operation, the accuracy is not satisfactory. After practice, exploration and summary, comprehensive use of 5-day, 10 day average price line, 5-day, 10 day average volume line and MACD, its accuracy is greatly improved
DEA line diff line M-day index smooth moving average
MACD line diff line and DEA line difference, color columnar line
parameters: short (short), long (long), m days, generally 12, 26, 9