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

 找回密码
 立即/注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
上证指数 2679.11 +10.94 +0.41% 香港恒生 26183.529 +80.189 +0.31% 日经225 21684.59 -119.03 -0.55% 韩国综合 2092.40 +4.34 +0.21%
道琼斯 25413.22 +123.95 +0.49% 纳斯达克 7247.87 -11.16 -0.15% 英国富时 7029.29 -8.72 -0.12% 德国DAX 11354.68 +1.01 +0.01%
人民币 6.9380 -0.0012 -0.02% 原油 56.83 +0.6553% NYMEX原油 黄金 1222.0 +0.5761% COMEX黄金全球股市行情 2018年11月19日06时37分
查看: 5849|回复: 0

[同花顺] 同花顺波段高低主图指标公式

[复制链接]
发表于 2018-9-10 22:04:49 | 显示全部楼层 |阅读模式

  1. 做多线:REF(EMA(C,14),1), colorred,LINETHICK1;
  2. A1X:=(EMA(C,14)-做多线)/做多线*100,NODRAW;
  3. STICKLINE(CROSS(A1X,0),C,O,0,1),colorred;
  4. STICKLINE(CROSS(0,A1X),C,O,0,1) ,colorblue;
  5. 做空线:IF(A1X=0;
  6. CCC:=A1X= O)),H,L,0,1),colorred;
  7. STICKLINE(((CC11) AND (C >= O)),O,C,2,1),colorred;
  8. STICKLINE(((CC11) AND (C = O)),H,L,0,1),colorgreen;
  9. STICKLINE(((CCC) AND (C >= O)),O,C,2,1),colorgreen;
  10. STICKLINE(((CCC) AND (C =0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colormagenta,LINETHICK1;
  11. 逃顶卖出线:IF(A1XD11,H,L);
  12. STICKLINE(金钻趋势>LOW AND 金钻趋势MIN(C,O) AND 金钻趋势HIGH,OPEN,CLOSE,2,0),coloryellow;
  13. STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),coloryellow;
  14. X:=A1X>=0;
  15. 买线:=A1X;
  16. 卖线:=0;
  17. BU:=CROSS(买线,卖线);
  18. SEL:=CROSS(卖线,买线);
  19. STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,2,1),colormagenta;
  20. STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,2,0),colorgreen;
  21. NNN333:=30;
  22. AA:=REF(H,NNN333)=HHV(H,2*NNN333+1);  AA1:=REF(L,NNN333)=LLV(L,2*NNN333+1);
  23. QY:=BACKSET(AA,NNN333+1);  QY1:=BACKSET(AA1,NNN333+1);
  24. CC:=FILTER(QY,NNN333) AND H=HHV(H,NNN333+1);
  25. CC1:=FILTER(QY1,NNN333) AND L=LLV(L,NNN333+1);
  26. DDD:=BARSLAST(CC);  DD1:=BARSLAST(CC1);
  27. GDTS:=IF(CC,CURRBARSCOUNT,0);  DDTS:=IF(CC1,CURRBARSCOUNT,0);
  28. DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);  DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
  29. GDCS1:=CONST(DINGBUTS);  DDCS1:=CONST(DDTS1);
  30. GDCS13:=CONST(REF(HIGH,GDCS1-1));  DDCS13:=CONST(REF(L,DDCS1-1));
  31. DINGBUTS1:=REF(DINGBUTS,DDD+1);  DDTS2:=REF(DDTS1,DD1+1);
  32. GDCS2:=CONST(DINGBUTS1);  DDCS2:=CONST(DDTS2);
  33. GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));  DDCS23:=CONST(REF(L,DDTS2-1));
  34. XG1:=BACKSET(ISLASTBAR,GDCS1);  XD1:=BACKSET(ISLASTBAR,DDCS1);
  35. XG2:=BACKSET(ISLASTBAR,DINGBUTS1);  XD2:=BACKSET(ISLASTBAR,DDTS2);
  36. STICKLINE(XG2,GDCS23,GDCS23,1,1),colorred;
  37. STICKLINE(XG1,GDCS13,GDCS13,1,1),colorred;
  38. STICKLINE(XD2,DDCS23,DDCS23,1,1),colorred;
  39. STICKLINE(XD1,DDCS13,DDCS13,1,1),colorred;
  40. N:=20;
  41. A1:=REF(H,N)=HHV(H,2*N+1);
  42. B1:=FILTER(A1,N);
  43. C1:=BACKSET(B1,N+1);
  44. D1:=FILTER(C1,N);
  45. A2:=REF(L,N)=LLV(L,2*N+1);
  46. B2:=FILTER(A2,N);
  47. C2:=BACKSET(B2,N+1);
  48. D2:=FILTER(C2,N);
  49. E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;
  50. H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
  51. L1:=(D2 AND NOT(D1 AND E1=E2);
  52. X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS
  53. (IF(L1,L,10000),X1));
  54. G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);
  55. L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
  56. X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS
  57. (IF(H2,H,0),X2));
  58. G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);
  59. R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); S1:=R1>REF(R1,1);
  60. T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T1>REF(T1,1);
  61. R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1);
  62. T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1);
  63. T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1);
  64. T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=T4>REF(T4,1);
  65. R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2); S3:=R3>REF(R3,1);
  66. R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2); S4:=R4>REF(R4,1);
  67. 阶段高点:REF(H,BARSLAST(S2)),colorcyan,LINETHICK2;
  68. REF(H,BARSLAST(S3)),colorgreen,LINETHICK2;
  69. 高点2:REF(H,BARSLAST(S1)),colorgreen,LINETHICK1;
  70. 阶段1低:REF(L,BARSLAST(U1)),colormagenta,LINETHICK2;
  71. 阶段2低:REF(L,BARSLAST(U2)),colorlimagenta,LINETHICK1;
  72. 阶段3低:REF(L,BARSLAST(U4)),COLOR0000FF,LINETHICK2;
复制代码
回复

使用道具 举报

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

本版积分规则



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

GMT+8, 2018-11-19 06:43

Powered by 今日股市

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

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