股票指标DKW更新:多空趋势行情指标
$Bitcoin (BTC.CC)$ $Eli Lilly and Co (LLY.US)$ $NVIDIA (NVDA.US)$ $ProShares UltraPro QQQ ETF (TQQQ.US)$ $Tesla (TSLA.US)$ $Apple (AAPL.US)$ $MicroStrategy (MSTR.US)$ $Coinbase (COIN.US)$
The initial version of the DKW code lags behind the nine-turn digital indicator. After the update, the accuracy of long and short trends will be higher. The DKW indicator needs to be viewed in conjunction with other indicators: CD CM SZT CKDJ CJR, for a total of the 6 core indicators described above.
The initial version of the DKW code lags behind the nine-turn digital indicator. After the update, the accuracy of long and short trends will be higher. The DKW indicator needs to be viewed in conjunction with other indicators: CD CM SZT CKDJ CJR, for a total of the 6 core indicators described above.
![股票指标DKW更新:多空趋势行情指标](https://ussnsimg.moomoo.com/sns_client_feed/103623318/20240815/1723694229176-random7788-103623318-android-compress.jpg/big?area=999&is_public=true)
![股票指标DKW更新:多空趋势行情指标](https://ussnsimg.moomoo.com/sns_client_feed/103623318/20240815/1723694234811-random5174-103623318-android-compress.jpg/big?area=999&is_public=true)
Friendly reminder: If you have received a free indicator code before, please study and learn how to use each indicator together. If you want to get a code later, you should see if you have a chance to meet an interested friend and share it with you for free.
Next copy the code
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 < DW OR C > UP);
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), COLOR80FF80;
B: DW, COLOR2896FF;
IF(COND1, 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;
UP: = EMA (H, TF); DW: = EMA (L, TF);
F1 := C > O AND (O > UP OR C < DW);
F2 := C < O AND (O < DW OR C > UP);
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), COLOR80FF80;
B: DW, COLOR2896FF;
IF(COND1, 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),COLORLIGRAY;
STICKLINE(J<20,L,H,0.2,0),COLORLIGRAY;
STICKLINE(CROSS(J,30),O,C,1,0),COLORLIBLUE;
STICKLINE(CROSS(J,30),L,H,0.2,0),COLORLIBLUE;
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),COLORLIGRAY;
STICKLINE(J<20,L,H,0.2,0),COLORLIGRAY;
STICKLINE(CROSS(J,30),O,C,1,0),COLORLIBLUE;
STICKLINE(CROSS(J,30),L,H,0.2,0),COLORLIBLUE;
TGN1:=9;
LC:= REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),TGN1,1)/SMA(ABS(CLOSE-LC),TGN1,1)*100;
STICKLINE((REF(RSI2,1)>=79 AND RSI2<80),LOW,HIGH,0.01,0),COLORLIGRAY;
DRAWICON((REF(RSI2,1)>=79 AND RSI2<80),H*1.03,2);
STICKLINE((REF(RSI2,1)>=79 AND RSI2<80),CLOSE,OPEN,0.85,0),COLORLIGRAY;
STICKLINE((REF(RSI2,1)<=22 AND RSI2>20),LOW,HIGH,0.01,0),COLORBLUE;
DRAWICON((REF(RSI2,1)<=22 AND RSI2>20),L*0.97,1);
STICKLINE((REF(RSI2,1)<=22 AND RSI2>20),CLOSE,OPEN,0.85,0),COLORBLUE;
LC:= REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),TGN1,1)/SMA(ABS(CLOSE-LC),TGN1,1)*100;
STICKLINE((REF(RSI2,1)>=79 AND RSI2<80),LOW,HIGH,0.01,0),COLORLIGRAY;
DRAWICON((REF(RSI2,1)>=79 AND RSI2<80),H*1.03,2);
STICKLINE((REF(RSI2,1)>=79 AND RSI2<80),CLOSE,OPEN,0.85,0),COLORLIGRAY;
STICKLINE((REF(RSI2,1)<=22 AND RSI2>20),LOW,HIGH,0.01,0),COLORBLUE;
DRAWICON((REF(RSI2,1)<=22 AND RSI2>20),L*0.97,1);
STICKLINE((REF(RSI2,1)<=22 AND RSI2>20),CLOSE,OPEN,0.85,0),COLORBLUE;
A1:=C>REF(C,4);
NT:=BARSLASTCOUNT(A1);
TJ11: =NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,0,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWNUMBER((AY > 0 AND AY < 9), H, AY, 0, N), COLORFF00FF;
DRAWNUMBER(NT = 9, H, 9, 0, N), COLORGREEN;
NT:=BARSLASTCOUNT(A1);
TJ11: =NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,0,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWNUMBER((AY > 0 AND AY < 9), H, AY, 0, N), COLORFF00FF;
DRAWNUMBER(NT = 9, H, 9, 0, N), 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*N), COLORGREEN;
DRAWNUMBER(NT0 = 9, L, 9, 0, -1*N), COLORFF00FF;
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*N), COLORGREEN;
DRAWNUMBER(NT0 = 9, L, 9, 0, -1*N), COLORFF00FF;
After copying and pasting the above code, click Apply, so that the MoomoOPC terminal and mobile phone can sync.
Friends who trade regularly can brag about it together. Expand our leek base camp and increase our winning rate together
![股票指标DKW更新:多空趋势行情指标](https://ussnsimg.moomoo.com/sns_client_feed/103623318/20240815/1723694061015-random9544-103623318-android-org.jpeg/big?area=999&is_public=true)
Disclaimer: Community is offered by Moomoo Technologies Inc. and is for educational purposes only.
Read more
Comment
Sign in to post a comment