Account Info
Log Out
English
Back
Log in to access Online Inquiry
Back to the Top

Moomoo indicator sharing | Short-term long and short indicator

avatar
港美股薅羊毛 wrote a column · Jun 20 21:22
Hello friends, this is the sunset. Today, I will continue to share with you an excellent and easy to use short-term indicator. It is also one of my commonly used indicators, the king of short and long term.
Indicator introduction: This indicator consists of three parts: short term long and short, five-color bars, and nine turns to speed up to the bottom. (Part of the code comes from the Internet. I have optimized and improved repeated tests, and some friends have good test feedback)
Moomoo indicator sharing | Short-term long and short indicator
Step 1: Download Futu Moomoo PC
Step 2. Click “Index Management” in the lower right corner
Moomoo indicator sharing | Short-term long and short indicator
Step 3. Click ➕ above to create a new indicator

Copy the following code into the code box
TF: = 13; {period is 13} UP: = EMA (H, TF); DW: = EMA (L, TF); F1: = C > O AND (O > UP OR C < DW); F2: = C < O AND (O UP); < DW OR C > COND: = F1 OR F2; COND1: = UP > REF (UP, 1) AND DW > REF (DW, 1); COND2 := UP < REF (UP, 1) AND DW < REF (DW, 1); COND3: = NOT (COND1 OR COND2); A: UP, COLOR2896FF; IF (COND1, A, DRAWNULL), COLORFF80C0; IF (COND2, A, DRAWNULL),; B: DW,; B: DW,; IF (COND1, COLOR80FF80 COLOR2896FF B, DRAWNULL), COLORFF80C0; IF (COND2, B, DRAWNULL), COLOR80FF80; STICKLINE (COND AND COND1, A, B, 0.2, 0), COLORFF80C0; STICKLINE (COND AND COND2, A, B, 0.2, 0), COLOR80FF80; STICKLINE (COND AND COND3, A, B, 0.2, 0), COLOR2896FF; RSV: = (CLOSE-LLV (LOW,14))/(HHV (HIGH,14) -LLV (LOW,14)) *100; K: =SMA (RSV,3,1); D: =SMA (K,3,1); J: =3*K-2*D; STICKLINE (J>100, O, C,0.9,0), COLORYELLOW; STICKLINE (J>100) , L, H,0.2,0), COLORYELLOW; STICKLINE (J<20, O, C,0.9,0), COLORWHITE; STICKLINE (J<20, L, H,0.2,0), COLORWHITE; STICKLINE (CROSS (J,30), O, C,1,0), COLORLIBLUE; STICKLINE (CROSS (J,30), L, H,0.2, 0), COLORLIBLUE; A1: =C>REF (C,4); NT: =BARSLASTCOUNT (A1); TJ11: =NT=9; TJ13: =ISLASTBAR AND BETWEEN (NT,5,8); AY: = (BACKSET (TJ11>0,9) OR BACKSET (TJ13>0, NT)) * NT; DRAWNUMBER ((AY > 0 AND AY < 9), H * 1.007, AY), COLORFF00FF; DRAWNUMBER (NT = 9, H*1.007, 9), COLORGREEN; B1: =C<REF (C,4); NT0: =BARSLASTCOUNT (B1); TJ21: =NT0=9; TJ23: =ISLASTBAR AND BETWEEN (NT0,0,8); AY1: =( BACKSET (TJ21>0,9) OR BACKSET (TJ23>0, NT0)) *NT0; DRAWNUMBER ((AY1 > 0 AND AY1 < 9), L, AY1, 0, -1*15), COLORGREEN; DRAWNUMBER (NT0 = 9, L, 9, 0, -1*15), COLORFF00FF; solid half: =ABS (O-C) /2+MIN (O, C); AA: =BARSLAST (NT0=9); Down notch: =H<REF (L,1); BB: = AA>=0 AND AA<=15 AND downward notch; STICKLINE (BB, REF (L,1), H,0.75,1), COLORWHITE; CC: =BARSLAST (BB); DD: =CC>=1 AND CC<=3 AND H>REF (L, CC+1) AND C>O; DRAWICON (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), L* 0.975,5); STICKLINE (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), O, C,0.75,0), COLORMAGENTA; DRAWTEXT (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), L, '-------------'), COLORLIGRAY;
OUTPUT:DKW
Full name: Short-term King of the Sky
The object is: main image
Then just click Test App.
Moomoo indicator sharing | Short-term long and short indicator
The same account is automatically synced to different terminals, that is, if you add indicators to the PC version and log in to the phone with the same account, you can see the newly added indicators, and just call them up directly.
If an error is reported, check if you have entered full-width punctuation, change all the codes to English input methods, and then re-enter them.
Next, I'll explain the principles of the code to you
This indicator consists of four parts:

Part 1: Long and short trend lines
TF: = 13; {period is 13} UP: = EMA (H, TF); DW: = EMA (L, TF); F1: = C > O AND (O > UP OR C < DW); F2: = C < O AND (O UP); < DW OR C > COND: = F1 OR F2; COND1: = UP > REF (UP, 1) AND DW > REF (DW, 1); COND2 := UP < REF (UP, 1) AND DW < REF (DW, 1); COND3: = NOT (COND1 OR COND2); A: UP, COLOR2896FF; IF (COND1, A, DRAWNULL), COLORFF80C0; IF (COND2, A, DRAWNULL),; B: DW,; B: DW,; IF (COND1, COLOR80FF80 COLOR2896FF B, DRAWNULL), COLORFF80C0; IF (COND2, B, DRAWNULL), COLOR80FF80; STICKLINE (COND AND COND1, A, B, 0.2, 0), COLORFF80C0; STICKLINE (COND AND COND2, A, B, 0.2, 0), COLOR80FF80; STICKLINE (COND AND COND3, A, B, 0.2, 0), COLOR2896FF;
Define the time period for which the variable TF is used for the exponential moving average (EMA). (This indicator is a short-term indicator. The TF period is 13, and users can adjust it themselves according to their habits.)
The EMAs for the highest and lowest price of a stock, called UP and DW, are calculated separately, and calculated based on a specified time period.
Define conditions F1 and F2 to identify the candlestick patterns of bullish and bearish engulfing patterns.
COND combines these conditions to identify potential reversals.
COND1 and COND2 check if the EMA has rised/decreased compared to the previous cycle.
COND3 is the inverse of COND1 or COND2 and is used to identify periods when the EMA is flat.
These conditions are then used to draw colored lines (A and B) representing potential support and resistance levels based on the trend and the channel formed by the EMA. Pink is an upward trend and green is a downward trend.
Moomoo indicator sharing | Short-term long and short indicator
Part 2: Five-color Pillar
RSV: = (CLOSE-LLV (LOW,14))/(HHV (HIGH,14) -LLV (LOW,14)) *100; K: =SMA (RSV,3,1); D: =SMA (K,3,1); J: =3*K-2*D; STICKLINE (J>100, O, C,0.9,0), COLORYELLOW; STICKLINE (J>100, L, H,0.2, 0), COLORYELLOW; STICKLINE ( <20, L, H,0.2,0), COLORWHITE; STICKLINE (CROSS (J,30), O, C,1,0), COLORLIBLUE; STICKLINE (CROSS (J,30), L, H,0.2,0), COLORLIBLUE; A1: =C>J<20, O, C,0.9,0), COLORWHITE; STICKLINE (JREF (C,4); NT: =BARSLASTCOUNT (A1) ; TJ11: =NT=9; TJ13: =ISLASTBAR AND BETWEEN (NT,5,8); AY: = (BACKSET (TJ11>0,9) OR BACKSET (TJ13>0, NT)) * NT; DRAWNUMBER ((AY > 0 AND AY < 9), H*1.007, AY), COLORFF00FF; DRAWNUMBER (NT = 9, H * 1.007, 9), COLORGREEN;


The stochastic indicator values (RSV, K, D, and J) are calculated based on the highest, lowest, and closing prices of the stock.
Use the STICKLINE function to draw lines representing random indicator values and highlight overbought (J > 100) and oversold (J < 20) conditions.
A line is drawn to identify potential trend reversals by the potential J value crossing the level (50 in this case).
Unlike traditional red and green candle charts, white, blue and pink candle charts have been added to this indicator, which each represents different meanings.
Moomoo indicator sharing | Short-term long and short indicator
Part 3: Nine turns to speed up and catch up
B1: =C<REF (C,4); NT0: =BARSLASTCOUNT (B1); TJ21: =NT0=9; TJ23: =ISLASTBAR AND BETWEEN (NT0,0,8); AY1: = (BACKSET (TJ21>0,9) OR BACKSET (TJ23>0, NT0)) *NT0; DRAWNUMBER ((AY1 > 0 AND AY1 < 9), L, AY1, 0, -1*15 <REF (L,1); BB: =AA>), COLORGREEN; DRAWNUMBER (NT0 = 9, L, 9, 0, -1*15), COLORFF00FF; solid half: =ABS (O-C) /2+MIN (O, C); AA: =BARSLAST (NT0=9); DOWN NOTCH: =H=0 AND AA<=15 AND DOWN NOTCH; STICKLINE (BB, REF (L,1), H,0.75,1), COLORWHITE; CC: =BARSLAST (BB); DD: =CC>=1 AND CC<=3 AND H>REF (L, CC+1) AND C>O; DRAWICON (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), L*0.975,5); STICKLINE (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), O, C,0.75,0), COLORMAGENTA; DRAWTEXT (DD AND NOT (REF (DD,1)) AND NOT (REF (DD,2)), L, '-------------'), COLORLIGRAY;
Track the number of consecutive bars where the closing price is above (A1) or below (B1) the previous closing price.
Use the BACKSET function to check for specific patterns in the number of bars.
Draw numbers on the chart to indicate these patterns and highlight areas of potential reversals.
Use a downward gap (downward jump) to identify a downward jump (the current high price is lower than the lowest price of the previous bar).

Check for a specific three-bar bullish pattern based on a downward jump and continuously higher closing prices.
Use STICKLINE and DRAWICON to intuitively mark these patterns on the chart.
There was a downward gap within 3 weeks after falling the 49 structure, and the gap was strongly filled within the next 3 days.
Purchases made on the same day the gap was filled up to the lowest price of the day, indicated by a pink bar, and the icon is 😀.
Moomoo indicator sharing | Short-term long and short indicator
The overall effect is as follows:
Moomoo indicator sharing | Short-term long and short indicator
The overall effect is pretty good, isn't it? The length is clear at a glance, and the key positions are also indicated by candlesticks in different colors. This indicator is suitable for trend trading. Next, we will show you how to use it in conjunction with the previous CM and RSI indicators.
Take China's peace as an example to read more at the bottom:
Moomoo indicator sharing | Short-term long and short indicator
Take Xiaopeng Motor shorting as an example:
Moomoo indicator sharing | Short-term long and short indicator
The two examples I selected are band trends with obvious trends. In fact, many ticket trends tend to end long and short. Retail capital and main capital enter each other. The trend is unclear, so they generally do not participate. For example, the following trend.
Moomoo indicator sharing | Short-term long and short indicator
This article does not constitute any investment advice; it only shares indicator techniques. Investment decisions should be based on individual independent thinking, don't blindly rely on indicators, and operationally, trade in conjunction with relevant individual stock fundamentals and financial sentiment.

Thank you all for reading and support. If you like this article, you can like and retweet it. Your support motivates me to update. If this article responds well, I will share accurate entry and exit indicators in the next issue, so stay tuned!
Disclaimer: Community is offered by Moomoo Technologies Inc. and is for educational purposes only. Read more
6
2
+0
1
See Original
Report
2766 Views
Comment
Sign in to post a comment
58Followers
17Following
218Visitors
Follow