0%

六脉神剑

抖音上这个指标突然火了起来,其实原理很简单,就是利用指标共振,比如MACD金叉,KDJ金叉,RSI金叉,BBI金叉等,现奉献给大家。

源码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DRAWICON(DIFF>DEA,1,1);
DRAWICON(DIFF<DEA,1,2);
MACD金叉:=DIFF>DEA;
DRAWTEXT(ISLASTBAR=1,5.9,'.MACD'),COLORFFFFFF;
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,1);
DRAWICON(K<D,2,2);
KDJ金叉:=K>D;
DRAWTEXT(ISLASTBAR=1,4.9,'.KDJ'),COLORFFFFFF;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100;
DRAWICON(RSI1>RSI2,3,1);
DRAWICON(RSI1<RSI2,3,2);
RSI金叉:=RSI1>RSI2;
DRAWTEXT(ISLASTBAR=1,3.9,'.RSI'),COLORFFFFFF;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1<LWR2,4,2);
LWR金叉:=LWR1>LWR2;
DRAWTEXT(ISLASTBAR=1,2.9,'.LWR'),COLORFFFFFF;
BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE<BBI,5,2);
BBI金叉:=CLOSE>BBI;
DRAWTEXT(ISLASTBAR=1,1.9,'.BBI'),COLORFFFFFF;
MTM:=CLOSE-REF(CLOSE,1);
MT:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3);
TM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12);
DRAWICON(MT>TM,6,1);
DRAWICON(MT<TM,6,2);
MTM金叉:=MT>TM;
DRAWTEXT(ISLASTBAR=1,0.9,'.MTM'),COLORFFFFFF;
六脉神剑:MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MTM金叉,COLORYELLOW,LINETHICK2;

指标仅供参考,不作投资依据。

-------------本文结束感谢您的阅读-------------
您的支持,是我创作的动力,感谢!
  • 本文作者: shuige
  • 本文链接: http://sgzbk.top/posts/14045/
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!