你好,以下是文华财经六脉神剑指标的源码。六脉神剑指标是一种结合了多种技术分析工具的复合指标,旨在提供更精准的买卖信号。这个指标通过综合使用MACD、KDJ、RSI、LWR、BBI和MTM等工具来生成买卖信号。
指标代码:
```plaintext
// 参数设置
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
// MACD金叉和死叉
STICKLINE(DIFF>DEA,1,1.8,3,0),COLORRED;
STICKLINE(DIFFMCDA金叉:=DIFF>DEA,NODRAW;
// KDJ金叉和死叉
RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
STICKLINE(K>D,2,2.8,3,0),COLORRED;
STICKLINE(KKDJ金叉:=K>D,NODRAW;
// RSI金叉和死叉
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;
STICKLINE(RSI1>RSI2,3,3.8,3,0),COLORRED;
STICKLINE(RSI1RSI金叉:=RSI1>RSI2,NODRAW;
// LWR金叉和死叉
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
STICKLINE(LWR1>LWR2,4,4.8,3,0),COLORRED;
STICKLINE(LWR1LWR金叉:=LWR1>LWR2,NODRAW;
// BBI金叉和死叉
BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
STICKLINE(CLOSE>BBI,5,5.8,3,0),COLORRED;
STICKLINE(CLOSEBBI金叉:=CLOSE>BBI,NODRAW;
,5,5.8,3,0),colorgreen;
,4,4.8,3,0),colorgreen;
,3,3.8,3,0),colorgreen;
,2,2.8,3,0),colorgreen;
,1,1.8,3,0),colorgreen;
注意,智能分析和提示期货行情走势的工具有很多,但并不是每款精度都高,如果你不会甄别,可以加我微信细聊,让你免费验证期货公司内部策略报告、智能量化分析工具,多空一目了然,盈亏比稳定,值得你尝试,加我微信聊就能免费领取。
发布于5小时前 北京