找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 7492|回复: 42

通达信软件导入AAA指标源码的方法(图解)

   火.. [复制链接]
发表于 2010-4-11 19:45 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
刚刚在看同学们回帖的时候,发现还有很多同学都不会导入指标,所以我为了方便大家,就在这里用图片的方式教大家如何导入指标,AAA指标的源码我已经在论坛公布了,下面我把源码在这里发一下:
大智慧L2:
  1. CV:=CLOSE;
  2. BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
  3. UPR:=BBIBOLL+6*STD(BBIBOLL,11);
  4. DWN:=BBIBOLL-6*STD(BBIBOLL,11);
  5. QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  6. XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
  7. HSL:=(XVL/20)/1.15;
  8. 攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
  9. LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
  10. B1:SUM(LLJX,1),COLORCYAN;
  11. B2:SUM(LLJX,2),COLORCYAN;
  12. B3:SUM(LLJX,3),COLORCYAN;
  13. B4:SUM(LLJX,4),COLORCYAN;
  14. B5:SUM(LLJX,5),COLORCYAN;
  15. B6:SUM(LLJX,6),COLORCYAN;
  16. B7:SUM(LLJX,7),COLORCYAN;
  17. B8:SUM(LLJX,8),COLORCYAN;
  18. B9:SUM(LLJX,9),COLORCYAN;
  19. B10:SUM(LLJX,10),COLORCYAN;
  20. partline(B1,B1>REF(B1,1),rgb(255,0,0));
  21. partline(B2,B2>REF(B2,1),rgb(255,0,0));
  22. partline(B3,B3>REF(B3,1),rgb(255,0,0));;
  23. partline(B4,B4>REF(B4,1),rgb(255,0,0));
  24. partline(B5,B5>REF(B5,1),rgb(255,0,0));
  25. partline(B6,B6>REF(B6,1),rgb(255,0,0));
  26. partline(B7,B7>REF(B7,1),rgb(255,0,0));
  27. partline(B8,B8>REF(B8,1),rgb(255,0,0));
  28. partline(B9,B9>REF(B9,1),rgb(255,0,0));
  29. partline(B10,B10>REF(B10,1),rgb(255,0,0));
复制代码

通达信:
  1. CV:=CLOSE;
  2. BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
  3. UPR:=BBIBOLL+6*STD(BBIBOLL,11);
  4. DWN:=BBIBOLL-6*STD(BBIBOLL,11);
  5. QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  6. XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
  7. HSL:=(XVL/20)/1.15;
  8. 攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
  9. LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
  10. B1:SUM(LLJX,1),COLORCYAN;
  11. B2:SUM(LLJX,2),COLORCYAN;
  12. B3:SUM(LLJX,3),COLORCYAN;
  13. B4:SUM(LLJX,4),COLORCYAN;
  14. B5:SUM(LLJX,5),COLORCYAN;
  15. B6:SUM(LLJX,6),COLORCYAN;
  16. B7:SUM(LLJX,7),COLORCYAN;
  17. B8:SUM(LLJX,8),COLORCYAN;
  18. B9:SUM(LLJX,9),COLORCYAN;
  19. B10:SUM(LLJX,10),COLORCYAN;
  20. A1:IF(B1>REF(B1,1),B1,DRAWNULL),COLORRED;
  21. A2:IF(B2>REF(B2,1),B2,DRAWNULL),COLORRED;
  22. A3:IF(B3>REF(B3,1),B3,DRAWNULL),COLORRED;
  23. A4:IF(B4>REF(B4,1),B4,DRAWNULL),COLORRED;
  24. A5:IF(B5>REF(B5,1),B5,DRAWNULL),COLORRED;
  25. A6:IF(B6>REF(B6,1),B6,DRAWNULL),COLORRED;
  26. A7:IF(B7>REF(B7,1),B7,DRAWNULL),COLORRED;
  27. A8:IF(B8>REF(B8,1),B8,DRAWNULL),COLORRED;
  28. A9:IF(B9>REF(B9,1),B9,DRAWNULL),COLORRED;
  29. A10:IF(B10>REF(B10,1),B10,DRAWNULL),COLORRED;
复制代码

同花顺:
  1. CV:=CLOSE;
  2. BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
  3. UPR:=BBIBOLL+6*STD(BBIBOLL,11);
  4. DWN:=BBIBOLL-6*STD(BBIBOLL,11);
  5. QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
  6. XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
  7. HSL:=(XVL/20)/1.15;
  8. 攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
  9. LLJX:=EMA(攻击,3);0,POINTDOT,colorwhite;
  10. B1:SUM(LLJX,1),colorcyan;
  11. B2:SUM(LLJX,2),colorcyan;
  12. B3:SUM(LLJX,3),colorcyan;
  13. B4:SUM(LLJX,4),colorcyan;
  14. B5:SUM(LLJX,5),colorcyan;
  15. B6:SUM(LLJX,6),colorcyan;
  16. B7:SUM(LLJX,7),colorcyan;
  17. B8:SUM(LLJX,8),colorcyan;
  18. B9:SUM(LLJX,9),colorcyan;
  19. B10:SUM(LLJX,10),colorcyan;
  20. A1:IF(B1>REF(B1,1),B1,NULL),colorred;
  21. A2:IF(B2>REF(B2,1),B2,NULL),colorred;
  22. A3:IF(B3>REF(B3,1),B3,NULL),colorred;
  23. A4:IF(B4>REF(B4,1),B4,NULL),colorred;
  24. A5:IF(B5>REF(B5,1),B5,NULL),colorred;
  25. A6:IF(B6>REF(B6,1),B6,NULL),colorred;
  26. A7:IF(B7>REF(B7,1),B7,NULL),colorred;
  27. A8:IF(B8>REF(B8,1),B8,NULL),colorred;
  28. A9:IF(B9>REF(B9,1),B9,NULL),colorred;
  29. A10:IF(B10>REF(B10,1),B10,NULL),colorred;
复制代码

XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);
VAR1:0,POINTDOT,colorwhite;
B1:=SUM(LLJX,1),colorcyan;
B2:=SUM(LLJX,2),colorcyan;
B3:=SUM(LLJX,3),colorcyan;
B4:=SUM(LLJX,4),colorcyan;
B5:=SUM(LLJX,5),colorcyan;
B6:=SUM(LLJX,6),colorcyan;
B7:=SUM(LLJX,7),colorcyan;
B8:=SUM(LLJX,8),colorcyan;
B9:=SUM(LLJX,9),colorcyan;
B10:=SUM(LLJX,10),colorcyan;
PARTLINE(b1,b1>REF(b1,1),RGB(250,20,20),b1<=REF(b1,1),RGB(30,250,30));
PARTLINE(b2,b2>REF(b2,1),RGB(250,20,20),b2<=REF(b2,1),RGB(30,250,30));
PARTLINE(b3,b3>REF(b3,1),RGB(250,20,20),b3<=REF(b3,1),RGB(30,250,30));
PARTLINE(b4,b4>REF(b4,1),RGB(250,20,20),b4<=REF(b4,1),RGB(30,250,30));
PARTLINE(b5,b5>REF(b5,1),RGB(250,20,20),b5<=REF(b5,1),RGB(30,250,30));
PARTLINE(b6,b6>REF(b6,1),RGB(250,20,20),b6<=REF(b6,1),RGB(30,250,30));
PARTLINE(b7,b7>REF(b7,1),RGB(250,20,20),b7<=REF(b7,1),RGB(30,250,30));
PARTLINE(b8,b8>REF(b8,1),RGB(250,20,20),b8<=REF(b8,1),RGB(30,250,30));
PARTLINE(b9,b9>REF(b9,1),RGB(250,20,20),b9<=REF(b9,1),RGB(30,250,30));
PARTLINE(b10,b10>REF(b10,1),RGB(250,20,20),b10<=REF(b10,1),RGB(30,250,30));
[/code]
下面是导入的方法,请看图片

1.jpg
2.jpg
3.jpg

评分

1

查看全部评分

发表于 2014-7-5 13:36 | 显示全部楼层
学习一下,谢谢分享

回复

使用道具 举报

发表于 2020-11-4 10:11 | 显示全部楼层
谢谢分享,多多学习。
回复

使用道具 举报

 楼主| 发表于 2010-4-11 19:47 | 显示全部楼层
沙发我坐
回复

使用道具 举报

发表于 2010-4-11 20:02 | 显示全部楼层
相当感谢楼主
回复

使用道具 举报

发表于 2010-4-11 20:03 | 显示全部楼层
多谢楼主分享,学习。
回复

使用道具 举报

发表于 2010-4-11 20:15 | 显示全部楼层
先谢格格,再谢楼主啊!!!!!!!!!!!!
回复

使用道具 举报

发表于 2010-4-11 20:28 | 显示全部楼层
感谢格格。。。。。。。
回复

使用道具 举报

发表于 2010-4-11 21:04 | 显示全部楼层
学习一下,谢谢分享
回复

使用道具 举报

发表于 2010-4-11 21:06 | 显示全部楼层
先谢格格,再谢楼主啊!!!!!!!!!!!!
回复

使用道具 举报

发表于 2010-4-11 21:06 | 显示全部楼层
先谢格格,再谢楼主
回复

使用道具 举报

发表于 2010-4-11 21:21 | 显示全部楼层
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
A1:IF(B1>REF(B1,1),B1,DRAWNULL),COLORRED;
A2:IF(B2>REF(B2,1),B2,DRAWNULL),COLORRED;
A3:IF(B3>REF(B3,1),B3,DRAWNULL),COLORRED;
A4:IF(B4>REF(B4,1),B4,DRAWNULL),COLORRED;
A5:IF(B5>REF(B5,1),B5,DRAWNULL),COLORRED;
A6:IF(B6>REF(B6,1),B6,DRAWNULL),COLORRED;
A7:IF(B7>REF(B7,1),B7,DRAWNULL),COLORRED;
A8:IF(B8>REF(B8,1),B8,DRAWNULL),COLORRED;
A9:IF(B9>REF(B9,1),B9,DRAWNULL),COLORRED;
A10:IF(B10>REF(B10,1),B10,DRAWNULL),COLORRED;
回复

使用道具 举报

发表于 2010-4-11 21:22 | 显示全部楼层
导入后不能用,提示需要设置参数。
回复

使用道具 举报

发表于 2010-4-11 21:28 | 显示全部楼层
太有心了!!!!!!!
回复

使用道具 举报

发表于 2010-4-11 21:46 | 显示全部楼层
搬个沙发偶看看
回复

使用道具 举报

发表于 2010-4-11 21:57 | 显示全部楼层
多谢楼主分享,学习。
回复

使用道具 举报

发表于 2010-4-11 22:11 | 显示全部楼层
楼主好人一生平安发财
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-23 15:40 , Processed in 0.130146 second(s), Total 18, Slave 17 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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