决策主力股票论坛|今日股市行情大盘分析查询

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2486.42 -75.20 -2.94% 香港恒生 25454.551 -7.709 -0.03% 日经225 22656.42 -184.70 -0.81% 韩国综合 2148.67 -18.84 -0.87%
道琼斯 25706.68 -91.74 -0.36% 纳斯达克 7642.70 -2.79 -0.04% 英国富时 7046.90 -7.70 -0.11% 德国DAX 11747.58 +32.55 +0.28%
人民币 6.9384 +0.0109 +0.16% 原油 69.03 -1.0323% NYMEX原油 黄金 1226.7 -0.0570% COMEX黄金全球股市行情 2018年10月18日19时14分
查看: 3863|回复: 0

[通达信] 通达信AI金融机构主图指标公式

[复制链接]
发表于 2018-9-27 14:03:03 | 显示全部楼层 |阅读模式

  1. C2:=REF(C,1);
  2. 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
  3. STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
  4. STICKLINE(涨停,H,L,0,0),COLORRED;
  5. 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
  6. STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
  7. STICKLINE(跌停,H,L,0,1),COLORGREEN;
  8. 圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
  9. 灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
  10. 石:=SMA(灵,13,8);
  11. 仙:=CEILING(SMA(石,13,8));
  12. 编著:=SMA(圣,21,8);
  13. AABB:=IF(L,CONST(L),DRAWNULL);
  14. 启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF;
  15. {VARZT:=BARSLAST(平台启动);}
  16. {DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;}
  17. AAA:=(3*C+H+L+O)/6;
  18. VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
  19. VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
  20. VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
  21. VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
  22. VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
  23. VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
  24. DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
  25. 短线:VAR1,COLORWHITE;
  26. 中线:VAR6,COLORYELLOW;
  27. 下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;
  28. TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
  29. 立桩量:=FILTER(TJ1,5);
  30. TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
  31. 突破:=TJ2=1;
  32. STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;
  33. STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;
  34. TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
  35. 三天法则:=TJ3=1;
  36. 成立:=三天法则 AND 突破;
  37. 条件成立:=FILTER(成立,3);
  38. DRAWTEXT(条件成立,L*0.99,'成立'),COLORYELLOW;
  39. STICKLINE(C>=O,C,O,3,0),COLOR000045;
  40. STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
  41. STICKLINE(C>=O,C,O,2,0),COLOR000085;
  42. STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
  43. STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
  44. STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
  45. STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
  46. STICKLINE(CGDCS2,0,1);
  47. 上轨:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORBLUE,LINETHICK1;
  48. DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
  49. DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
  50. AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
  51. QY1:=BACKSET(AA1,LOWN+1);
  52. CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
  53. DRAWICON(CC1,L*0.98,1);
  54. DD1:=BARSLAST(CC1);
  55. DDTS:=IF(CC1,CURRBARSCOUNT,0);
  56. YDB:=IF(DD1,REF(L,DD1),L);
  57. DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
  58. DDCS1:=CONST(DDTS1);
  59. ZDB:=REF(YDB,DD1+1);
  60. DDTS2:=REF(DDTS1,DD1+1);
  61. DDCS2:=CONST(DDTS2);
  62. 下轨:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK1;
  63. ZGSTAR:=(上轨+下轨)/2;
  64. ZGEND:=CONST((上轨+下轨)/2);
  65. STARDAY:=IF(DDCS2LOW+0.04,4,0);
  66. VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
  67. VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
  68. VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
  69. VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
  70. VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
  71. 买1:=VAR10;
  72. 买2:=(VAR11+VAR13+VAR15+VAR17);
  73. 卖1:=(VAR12+VAR14+VAR16+VAR18);
  74. B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
  75. DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;
  76. S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
  77. DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;
  78. DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
  79. ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
  80. VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
  81. K:=EMA(VAR7,5)*2, , COLORFF00FF;
  82. D:=EMA(K,5), , COLORWHITE;
  83. J:=K*3-D*2, ,COLORYELLOW;
  84. VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
  85. HS:=VOL/CAPITAL*100, , COLORGREEN;
  86. VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
  87. VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
  88. DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;
  89. VAR1A:=IF(VARE>0,VARE,0);
  90. VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR1448 AND VAR1B>60 AND VAR19=REF(C,1) AND C>O,L*0.98,''),COLORMAGENTA;
  91. 下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;
  92. STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;
  93. DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));
复制代码
回复

使用道具 举报

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

本版积分规则




手机版|今日股市行情|决策主力股票论坛 ( 鄂ICP备15023833号-1)点击这里给我发消息 鄂公网安备 42062502000040号

GMT+8, 2018-10-18 19:14

Powered by 今日股市

© 2001-2017 http://jue-ce.com/

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