Traditional Culture Encyclopedia - Traditional stories - How to write the code that the 60-day moving average goes flat or up in the newsletter?
How to write the code that the 60-day moving average goes flat or up in the newsletter?
C & gtMA 1 and
ma 1 & gt; REF(MA 1, 1) or REF(MA 1, 1)>REF(MA 1, 2) and REF(MA 1, 2) = ref (ma/kloc)
How to work out the formula for leveling or ascending the 60-day moving average? Tongda letter market:
Parameters:
N 1 100 60
Formula:
MA 1:=MA(CLOSE,N);
C & gtMA 1 and
ma 1 & gt; REF(MA 1, 1) or REF(MA 1, 1)>REF(MA 1, 2) and REF(MA 1, 2) = ref (ma/kloc)
Note: After the test, "Test passed!"
Tong Daxin's 5-day moving average upward formula A 1 How to write: =MA(C, 5);
a 1 & gt; REF(A 1, 1);
This is always an upward trend.
For 7 consecutive days, the 60-day moving average and the 120-day moving average are parallel or nearly parallel. Communication letter n: = 0.2; {Variable and modifiable, the percentage of deviation between the 60-day moving average and 120-day moving average, where 0.2 means the deviation is within 0.2%}
XG:COUNT(ABS(MA(C,60)-REF(MA(C,60), 1))/C * 100 & lt; N and ABS(MA(C, 120)-REF(MA(C, 120),1))/c *100 <; n,7)= 7;
Find the formula MA5:=MA(C, 5) for the simultaneous upward movement of the 5 10 moving average and the 5 10 moving average of Tongda letter;
MA 10:=MA(C, 10);
Golden fork: cross (MA5, ma10); {This is the stock selection of the five-day moving average. }
MA5:=MA(C,5);
MA 10:=MA(C, 10);
Golden fork upward: cross (MA5, MA 10) and MA5 & gtREF(MA5, 1) and ma10 > REF(MA 10, 1);
{This is a stock selection that crosses the 10 moving average in five days, and both the 5-day moving average and the 10 moving average are upward.}
I hope I can help you!
How to write the code of the golden fork on Tongda's moving average, such as the code of the first golden fork on the 5-day moving average, and the moving average above the 20-day moving average 10 A:=MA(C, 5);
B:=MA(C, 10);
D:=MA(C,20);
E:=CROSS(A, b) and MIN(A, b) > d;
XG:E and REF(COUNT(E, 50)=0, 1) and DYNAINFO( 17)>0;
The formula has passed the test!
I hope I can help you!
The stock selection formula HHV 1:=HHV(MA(C, 60), 20) when the 60-day moving average of Tongda New Company is leveled for not less than one month;
LLV 1:=LLV(MA(C,60),20);
(HHV 1-llv 1)/llv 1 * 100 & lt; 2;
Tong Daxin software stock selection formula: How to write dif: EMA (close, 12)-EMA (close, 26) for the formula that the stock price is within 5% of the 60-day moving average, the 60-day moving average is flat or upward, and there is a daily limit of 9 points or more;
DEA:EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK
You can write Write the formula according to the train of thought and modify the formula. Early warning, conditional stock selection. Decrypt the formula and remove the time limit. Click my name below to enter the programmable formula.
Tong Daxin's closing price crossed the 60-day moving average within 5 days. How to write the code count(cross(c,ma(c,60)),5);
- Previous article:A traditional bed for foreigners to sleep in.
- Next article:The most practical and vicious punches in traditional martial arts
- Related articles
- The practice of Mid-Autumn Festival lanterns
- Wuhan 2023 three major cherry blossom viewing line with cherry blossom viewing line map
- Can you think of the characteristics of yurts?
- Poems and famous sentences about Dragon Boat Festival
- Must-visit scenic spots in Weihai's tourism strategy
- What do you think are the top ten hits of The Voice of China?
- Some interesting things in Song Dynasty
- What's the difference between Yue Opera and Shanghai Opera?
- How many rolls-royce models are there?
- How does Tik Tok import its own songs 2022?