股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 大智慧 六指标公式副图 源码 图


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-17 19:01:25
大智慧 六指标公式副图 源码 图介绍

大智慧 六指标公式副图 源码 图

大智慧


DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DRAWICON(DIFF>DEA,1,7);
DRAWICON(DIFF<DEA,1,8);
DRAWTEXTabs(0,70,'.MACD'),COLORFFFFFF;
A1:=DIFF>DEA;
MACDX:IF(A1,1,0),COLORRED;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,7);
DRAWICON(K<D,2,8);
DRAWTEXTabs(0,59,'.KDJ'),COLORFFFFFF;
A2:=K>D;
KDJX:IF(A2,2,0),COLORRED;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
DRAWICON(RSI1>RSI2,3,7);
DRAWICON(RSI1<RSI2,3,8);
DRAWTEXTabs(0,47,'.RSI'),COLORFFFFFF;
A3:=RSI1>RSI2;
RSIX:IF(A3,3,0),COLORRED;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,7);
DRAWICON(LWR1<LWR2,4,8);
DRAWTEXTabs(0,35,'.LWR'),COLORFFFFFF;
A4:=LWR1>LWR2;
LWRX:IF(A4,4,0),COLORRED;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE>BBI,5,7);
DRAWICON(CLOSE<BBI,5,8);
DRAWTEXTabs(0,23,'.BBI'),COLORFFFFFF;
A5:=CLOSE>BBI;
BBIX:IF(A5,5,0),COLORRED;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DRAWICON(MMS>MMM,6,7);
DRAWICON(MMS<MMM,6,8);
DRAWTEXTabs(0,11,'.MTM'),COLORFFFFFF;
A6:=MMS>MMM;
MTMX:IF(A6,6,0),COLORRED,LINETHICK2;
涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0),COLORYELLOW,LINETHICK1;
上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,7,0),COLORYELLOW,LINETHICK1;
晴天:last(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX=21),LINETHICK0;
雨天:last(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX>0 AND MACDX+KDJX+RSIX+LWRX+BBIX+MTMX<21 ),LINETHICK0;
雪天:last(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX=0),LINETHICK0;


同花顺
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DRAWICON(DIFF<DEA,0,'SELL');
DRAWICON(DIFF>DEA,1.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),1.5,'.MACD'),COLORFFFFFF;
A1:=DIFF>DEA;
MACDX:=IF(A1,1,0),colorred;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
DRAWICON(K<D,2,'SELL');
DRAWICON(K>D,3.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),3.5,'.KDJ'),COLORFFFFFF;
A2:=K>D;
KDJX:=IF(A2,2,0),colorred;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
DRAWICON(RSI1<RSI2,4,'SELL');
DRAWICON(RSI1>RSI2,5.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),5.5,'.RSI'),COLORFFFFFF;
A3:=RSI1>RSI2;
RSIX:=IF(A3,3,0),colorred;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1<LWR2,6,'SELL');
DRAWICON(LWR1>LWR2,7.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),7.5,'.LWR'),COLORFFFFFF;
A4:=LWR1>LWR2;
LWRX:=IF(A4,4,0),colorred;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE<BBI,8,'SELL');
DRAWICON(CLOSE>BBI,9.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),9.5,'.BBI'),COLORFFFFFF;
A5:=CLOSE>BBI;
BBIX:=IF(A5,5,0),colorred;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DRAWICON(MMS<MMM,10,'sell');
DRAWICON(MMS>MMM,11.5,'buy');
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),11.5,'.MTM'),COLORFFFFFF;
A6:=MMS>MMM;
MTMX:=IF(A6,6,0),colorred,LINETHICK2;
涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0),colorff00ff,LINETHICK2;
上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,11,0),color00ffff,LINETHICK1;
晴天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX)=21,COLORFFFFFF;//曲线属性--输出线性--不输出
雨天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX>0 AND MACDX+KDJX+RSIX+LWRX+BBIX+MTMX<21 ),COLOR99FF00;//曲线属性--输出线性--不输出
雪天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX)=0,COLOR00FF00;//曲线属性--输出线性--不输出
Ll:12;


 




 



gd26653

回复

举报

QQ|

GMT+8, 2024-11-17 00:01

快速回复 返回顶部 返回列表