clos" />

Fortune Telling Collection - Comprehensive fortune-telling - Great wisdom seeks the stock selection formula of RSI, CCI, KDJ and MACD.

Great wisdom seeks the stock selection formula of RSI, CCI, KDJ and MACD.

The formula is as follows:

n:= 60;

K value: ="KDJ. k”;

DD:=C=LLV(C,N);

DDSJ:=BARSLAST(REF(DD, 1));

DDGJ:=REF(CLOSE, DDSJ+ 1) > close;

KDZB:=REF(K value, ddsj+1) < K value;

K basic deviation: =DDGJ and KDZB

GD:=C=HHV(C,N);

GDSJ:=BARSLAST(REF(GD, 1));

GDGJ:=REF(CLOSE,GDSJ+ 1)& lt; Close;

KGZB:=REF(K value, GDSJ+ 1)>k value;

K top deviation: =GDGJ and KGZB

MACD:=“MACD。 MACD”;

MDZB:=REF(MACD,DDSJ+ 1)& lt; MACD;

M bottom deviation: =DDGJ and MDZB

MGZB:=REF(MACD,GDSJ+ 1)>MACD;

M top difference: =GDGJ and MGZB

RSI:="RSI。 RSI 1 ";

RDZB:=REF(RSI,DDSJ+ 1)& lt; RSI

R basic deviation: =DDGJ and RDZB

RGZB:=REF(RSI,GDSJ+ 1)>RSI

R top difference: =GDGJ and RGZB

TYP:= (high+low+near)/3;

CCI:=(TYP- Ma (TYP, N))/(0.0 15*AVEDEV(TYP, n));

CDZB:=REF(CCI,DDSJ+ 1)& lt; CCI;

C bottom deviation: =DDGJ and CDZB

CGZB:=REF(CCI,GDSJ+ 1)>CCI;

C top difference: =GDGJ and CGZB

DRAWTEXT(K-top deviation, if (bar number (c), 27.5, 29),' (×)', line thickness 2, colored;

DRAWTEXT(M-top deviation, if (number (c), 24.5, 26),' (×)', line thickness 2, color mage.

Drawtext (deviation on R, if (bar count (c), 20.5, 22. 1),' (×)', line thickness 2, color blue;

DRAWTEXT(C- top deviation, if (bar count (c), 16.6, 18. 1),' (×)', line thickness 2, green color;

DRAWTEXT(C-base deviation, if (bar count (c), 12, 14.2),' (√)', line thickness 2, color green;

DRAWTEXT(R-base deviation, if(bar count(c), 8.5, 10),' (√)', line thickness 2, color blue;

DRAWTEXT(M- base deviation, if (number (c), 4.5,6),' (√)', line thickness 2, color mage.

DRAWTEXT(K-base deviation, if (bar count (c),1.5,3),' (√)', line thickness 2, color.

Common indicators for online disk viewing

1) ratio index

Volume ratio = current total turnover /(5-day average total turnover /240)* How many minutes before this time?

If the ratio is greater than 1, it means that the total transaction volume is enlarged at this time; Magnification.

If the ratio is less than 1, it indicates the total commission ratio of the transaction at this time.

2) Commission ratio index

Commission ratio = (a-b)/(a+b) * 100%

A = the sum of the next three hands of the stocks currently entrusted for purchase.

B = the sum of the last three hands of the stock currently entrusted for sale.

When the consignment ratio value is positive, it means that the number of consigned buying hands is greater than the number of consigned selling hands. In other words, buying more than selling, the stock price is more likely to rise.

When the entrustment ratio is negative, it means that the number of entrusted selling hands is greater than the number of entrusted buying hands. In other words, selling is greater than buying, and the stock price is more likely to fall.

Hand atrophy; The number is shrinking.

Common indicators of K-line analysis

1)KDJ stochastics

This index is suitable for the technical analysis of short-term stocks, also known as overbought index, so it is often used to capture the rebound and make the difference. Random indicators use %K and %D lines in the chart. In the design, it combines the advantages of momentum concept, strength index and moving average. In the calculation process, we mainly study the relationship between the price and the closing price, reflecting the strength of the price trend and the phenomenon of overbought and oversold.

Its main theoretical basis is: when the price rises, the closing price tends to be close to the upper end of the price range of the day; On the contrary, in the downward trend, the closing price tends to be close to the lower end of the price range of the day. In the stock market and futures market, before the market trend turns, most of them will close at high prices every day, and when they fall, the closing price will often close at low levels. Stochastics fully considers the random amplitude of price fluctuation and the calculation of short-term fluctuation in its design, which makes its short-term market measurement function more accurate and effective than the moving average, and more sensitive than the power index in short-term overbought and oversold market prediction. Therefore, the index is widely used by investors.

2) Relative strength index

According to the theory of relative strength index, in a normal stock market, the stock price can be stable only if the strength of both sides is balanced. In the long-term development of the stock market, the relative strength index changes between 30 and 70 most of the time, of which 40 and 60 have the most chances, and the chances of exceeding 80 or below 20 are less. The smallest probability is higher than 90 and lower than 10.

3)OBV energy tidal index

The energy tide is to quantify the trading volume and make it a trend line. With the trend line of stock price, we can infer the market atmosphere from the relationship between price change and volume increase and decrease. Its main theoretical basis is that the change of market price must be coordinated with trading volume, and the fluctuation of stock price is closely related to the expansion or contraction of trading volume. Under normal circumstances, the trading volume required for stock price rise is always large; When it goes down, the turnover is always small. If the price rises and falls without the corresponding rise and fall of trading volume, the change of market price is unsustainable.

4)MACD smoothes the average index of similarity and difference.

Smma with similarities and differences is called MACD. MACD developed according to the principle of moving average overcomes the defect of frequent false signals of moving average and ensures the greatest success of moving average. It is very effective to use the moving average to judge the timing of buying and selling when the trend is obvious, but if there is a cowhide consolidation market, the signal will be frequent and inaccurate.

5) Deviation rate index

If the stock price is above the moving average, the deviation rate is positive, and vice versa; When the stock price is the same as the average value, the deviation rate is zero. The deviation rate shuttles back and forth above or below zero. When the positive deviation rate is above a certain percentage, it is the time to sell, and when the negative deviation rate is below a certain percentage, it is the time to buy. The skyrocketing bull market and the plunging bear market will make the good high rate reach an unexpected percentage, but it appears very rarely and for a short time.