: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[大智慧指标] [转载]薛斯通道

[大智慧指标] [转载]薛斯通道

薛斯通道(XS)建立于薛斯的循环理论的基础上,属于短线指标。在薛斯通道中,股价实际上是被短期小通道包容着在长期大通道中上下运行,基本买卖策略是当短期小通道接近长期大通道时,预示着趋势的近期反转。在上沿接近时趋势向下反转,可捕捉短期卖点。在下沿接近时趋势向上反转,可捕捉短期买点。研究这个方法可以在每一波行情中成功地逃顶捉底,寻求最大限度1.长期大通道是反映该股票的长期趋势状态,趋势有一定惯性,延伸时间较长,反映股票大周期,可以反握股票整体趋势,适于中长线投资。
  2.短期小通道反映该股票的短期走势状态,包容股票的涨跌起伏,有效地滤除股票走势中的频繁振动,但保留了股票价格在大通道内的上下波动,反映股票小周期,适于中短线炒作。
  3.长期大通道向上,即大趋势总体向上,此时短期小通道触及或接近长期大通道底部时,表明股价已经超卖,有反弹的可能。而短期小通道触及长期大通道顶部,表明股价已经超买,形态上将出现回调或盘整,有向长期大通道靠近的趋势。如果K线走势与短期小通道走势亦吻合得很好,那么更为有效。
  4.长期大通道向上,而短期小通道触及长期大通道顶部,此时该股为强力拉长阶段,可适当观望,待短期转平或转头向下时,为较好出货点,但穿透区为风险区应密切注意反转信号,随时出货。
  5.长期大通道向下,即大趋势向下,此时短期小通道或股价触顶卖压增加,有再次下跌趋势。而触底形态即买压增大,有缓跌调整或止跌要求,同时价格运动将趋向靠近长期大通道上沿。回调宜慎重对待,待确认反转信号后方可买入。
  6.长期大通道向下,而短期小通道向下穿透长期大通道底线,此时多为暴跌过程,有反弹要求,但下跌过程会持续,不宜立即建仓,应慎重,待长期大通道走平且有向上趋势,短期小通道回头向上穿回时,是较好的低位建仓机会。
  7.当长期大通道长期横向走平时,为盘整行情,价格沿通道上下震荡,此时为调整、建仓、洗盘阶段,预示着下一轮行情的出现,短线炒家可逢高抛出,逢低买入。若以短期小通道强力上穿长期大通道,且长期大通道向上转向,表明强劲上涨行情开始。若以短期小通道向下穿透长期大通道,且长期大通道向下转向,表明下跌将继续。
  8.在大型平衡市中的股价在波段性谷底触及大通道下轨时买进,在波段性峰顶当股价触及大通道上轨时卖出。
的赢利。

  1. VAR2:=CLOSE*VOL;
  2. VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)
  3. +EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
  4. VAR4:=EMA(CLOSE,9);
  5. SUP:1.06*VAR3,PRECIS2;
  6. SDN:VAR3*0.94,PRECIS2;
  7. LUP:EMA(VAR4*1.14,5),PRECIS2;
  8. LDN:EMA(VAR4*0.86,5),PRECIS2;

  9. C3:=REF(C,1);
  10. 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
  11. STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
  12. DRAWTEXT(涨停,L-0.3,'涨'),colorYELLOW;
  13. 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
  14. STICKLINE(跌停,OPEN,CLOSE,3,0),COLORGREEN;
  15. DRAWTEXT(跌停,H+0.5,'跌 '),COLORGREEN;



  16. K1:=cyc(1);
  17. K2:=cost(90);

  18. cond1:=sum(vol,barslast(close=llv(c,30)))/capital*100>30;
  19. cond2:=FILTER(cond1,20);
  20. STICKLINE(C/REF(C,1)>=1.090,O,C,5,0),COLORYELLOW;
  21. STICKLINE(C/REF(C,1)>=1.090,O,C,5,0),COLORYELLOW;
  22. 攻击迫线:=OPEN>REF(HIGH,1) AND CLOSE>REF(HIGH,1) AND LOW>REF(HIGH,1)  AND HIGH>CLOSE AND REF(CLOSE,1)/REF(CLOSE,2)>=1.09 AND V>REF(V,1);
  23. 比翼双飞:=REF(C,2)/REF(C,3)>=1.0977 AND REF(O,1)>REF(H,2) AND REF(L,1)>REF(H,2) AND REF(C,1)>REF(O,1) AND C>REF(C,1) AND L>REF(L,1);
  24. 七伤拳:=REF((C-REF(C,1))/REF(C,1)>0.09,6) AND COUNT((C-REF(C,1))/REF(C,1)>0.09,6+1)=1 AND  (HHV(H,6)-REF(C,6))/REF(C,6)*100<25 AND (LLV(L,6)-REF(C,6))/REF(C,6)*100>(5*-1);
  25. 喜鹊闹梅:=REF((C-REF(C,1))/REF(C,1)>0.09,3) AND L>REF(C,1) AND ABS(HHV(H,3)-REF(C,3))/REF(C,3)<5 AND ABS(LLV(H,3)-REF(C,3))/REF(C,3)<5 AND LLV(LOW,3)>REF(C,3)*0.9;
  26. 牛熊不败:=CROSS(C,MA(C,250))  AND V>1.5*REF(MA(V,5),1) AND C/(REF(C,1)-1)>1.3 AND CLOSE/REF(CLOSE,1)>=1.9;
  27. 搓揉线:=REF(O,1)=REF(L,1) AND REF(H,1)/REF(C,1)>1.03 AND REF(C,1)>REF(C,2) AND H=C AND C/L>1.03 AND H>REF(C,1);
  28. 黑棒佳丽:=O>MA(C,20) AND (O-C)/O*100>0.01 AND VOL/CAPITAL*100 >=3 AND C>REF(C,1) AND REF(C,1)>REF(C,2) AND HIGH/LOW>=1.05;
  29. 绝地反击:=O<REF(L,1) AND C>O AND C<REF(C,1) AND  V>REF(V,1) AND REF(C,1)/REF(C,2)<0.95 AND REF(V,1)<REF(V,2);
  30. 吞并反转:=REF(CLOSE,2)/REF(CLOSE,1)>=1.05 AND CLOSE/REF(LOW,1)>=1.05 AND CLOSE>REF(HIGH,1);
  31. DRAWTEXT((攻击迫线 = 1),LOW-0.05,'攻'),LINETHICK5,COLORWHITE;
  32. DRAWTEXT((比翼双飞 = 1),LOW-0.05,'比'),LINETHICK5,COLORYELLOW;
  33. DRAWTEXT((七伤拳 = 1),LOW-0.05,'七伤拳'),LINETHICK5,ColorFFFF80;

  34. DRAWTEXT((喜鹊闹梅 = 1),LOW-0.05,'喜'),LINETHICK5,COLORRED;
  35. DRAWTEXT((牛熊不败 = 1),LOW-0.05,'牛'),LINETHICK5,COLORFF00CC;
  36. DRAWTEXT((搓揉线 = 1),LOW-0.05,'搓'),LINETHICK5,COLORGREEN;
  37. DRAWTEXT((黑棒佳丽 = 1),LOW-0.05,'黑'),LINETHICK5,COLOR9932CD;
  38. DRAWTEXT((绝地反击 = 1),LOW-0.05,'绝'),LINETHICK5,COLORDB9370;
  39. DRAWTEXT((吞并反转 = 1),LOW-0.05,'覆盖'),LINETHICK5,COLOR856363;
  40. A:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2;
  41. 盈损线:A,COLOR005BF5,LINETHICK2;


  42. C3:=REF(C,1);
  43. 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
  44. STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
  45. DRAWTEXT(涨停,L-0.3,'涨'),colorYELLOW;
  46. 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
  47. STICKLINE(跌停,OPEN,CLOSE,3,0),COLORGREEN;
  48. DRAWTEXT(跌停,H+0.5,'跌 '),COLORGREEN;
  49. 工作线:EMA(C,14),colorf78d15,linethick4;

  50. {单阳不破}
  51. 单阳:=C>O*1.03 AND VOL>REF(VOL,1)*1.5;
  52. 不破价:=REF(L,BARSLAST(单阳));
  53. DRAWTEXT(单阳,L-L*0.02,'阳'),COLOR00FFFF;
  54. LS0:=BARSLAST(单阳);
  55. LS11:=IF(1,LS0=1,单阳);
  56. LS21:=IF(1,LLV(L,1)>REF(L,1),1);
  57. 单阳不破:=LS11 AND LS21;
  58. STICKLINE(单阳不破,不破价-不破价*0.002,不破价,4,0),COLORRED;
  59. DRAWTEXT(单阳不破,不破价-不破价*0.02,'1'),COLORGREEN;
  60. n:=13;
  61. A3:=REF(H,N)=HHV(H,2*N+1);
  62. B3:=FILTER(A3,N);
  63. C3:=BACKSET(B3,N+1);
  64. D3:=FILTER(C3,N);{高点}
  65. A4:=REF(L,N)=LLV(L,2*N+1);
  66. B4:=FILTER(A4,N);
  67. C4:=BACKSET(B4,N+1);
  68. D4:=FILTER(C4,N);{低点}
  69. STICKLINE(D3 or (D3 AND C<O AND VOL>MA(VOL,5) AND VOL>MA(VOL,60)),H+0.3,H+0.7,2,0);
  70. STICKLINE(D4 or (D4 AND C>O  AND VOL>ref(LLV(VOL,60),1)),l-0.3,l-0.7,2,0);
  71. stickline(C>O,H,L,1,0),Color0000ff;
  72. stickline(C<O,H,L,1,0),Color00ff00;
  73. stickline(C>O,C,O,8,0),Color000055;
  74. stickline(C>O,C,O,7,0),Color000077;
  75. stickline(C>O,C,O,5,0),Color000099;
  76. stickline(C>O,C,O,4,0),Color0000bb;
  77. stickline(C>O,C,O,2,0),Color6500dd;
  78. stickline(C>O,C,O,1,0),Color9C00ff;
  79. stickline(C<O,C,O,8,0),Color005500;
  80. stickline(C<O,C,O,7,0),Color007700;
  81. stickline(C<O,C,O,5,0),Color009900;
  82. stickline(C<O,C,O,4,0),Color00bb00;
  83. stickline(C<O,C,O,2,0),Color65dd00;
  84. stickline(C<O,C,O,1,0),Color9Cff00;
  85. dd:=MA(H,10)*1.02;
  86. STICKLINE(cross(dd,c),CLOSE,OPEN,8,0),COLOR80FFFF;
  87. LS12:=IF(2,LS0=2,单阳);
  88. LS22:=IF(2,LLV(L,2)>REF(L,2),1);
  89. 单阳不破2:=LS12 AND LS22;
  90. STICKLINE(单阳不破2,不破价-不破价*0.002,不破价,4,0),COLORRED;
  91. DRAWTEXT(单阳不破2,不破价-不破价*0.02,'2'),COLORGREEN;
  92. LS13:=IF(3,LS0=3,单阳);
  93. LS23:=IF(3,LLV(L,3)>REF(L,3),1);
  94. 单阳不破3:=LS13 AND LS23;
  95. STICKLINE(单阳不破3,不破价-不破价*0.002,不破价,4,0),COLORRED;
  96. DRAWTEXT(单阳不破3,不破价-不破价*0.02,'3'),COLORGREEN;
  97. LS14:=IF(4,LS0=4,单阳);
  98. LS24:=IF(4,LLV(L,4)>REF(L,4),1);
  99. 单阳不破4:=LS14 AND LS24;
  100. STICKLINE(单阳不破4,不破价-不破价*0.002,不破价,4,0),COLORRED;
  101. DRAWTEXT(单阳不破4,不破价-不破价*0.02,'4'),COLORGREEN;
  102. LS15:=IF(5,LS0=5,单阳);
  103. LS25:=IF(5,LLV(L,5)>REF(L,5),1);
  104. 单阳不破5:=LS15 AND LS25;
  105. STICKLINE(单阳不破5,不破价-不破价*0.002,不破价,4,0),COLORRED;
  106. DRAWTEXT(单阳不破5,不破价-不破价*0.02,'5'),COLORGREEN;
  107. LS16:=IF(6,LS0=6,单阳);
  108. LS26:=IF(6,LLV(L,6)>REF(L,6),1);
  109. 单阳不破6:=LS16 AND LS26;
  110. STICKLINE(单阳不破6,不破价-不破价*0.002,不破价,4,0),COLORRED;
  111. DRAWTEXT(单阳不破6,不破价-不破价*0.02,'6'),COLORGREEN;
  112. LS17:=IF(7,LS0=7,单阳);
  113. LS27:=IF(7,LLV(L,7)>REF(L,7),1);
  114. 单阳不破7:=LS17 AND LS27;
  115. STICKLINE(单阳不破7,不破价-不破价*0.002,不破价,4,0),COLORRED;
  116. DRAWTEXT(单阳不破7,不破价-不破价*0.02,'7'),COLORGREEN;
  117. LS18:=IF(8,LS0=8,单阳);
  118. LS28:=IF(8,LLV(L,8)>REF(L,8),1);
  119. 单阳不破8:=LS18 AND LS28;
  120. STICKLINE(单阳不破8,不破价-不破价*0.002,不破价,4,0),COLORRED;
  121. DRAWTEXT(单阳不破8,不破价-不破价*0.02,'8'),COLORGREEN;
  122. LS19:=IF(9,LS0=9,单阳);
  123. LS29:=IF(9,LLV(L,9)>REF(L,9),1);
  124. 单阳不破9:=LS19 AND LS29;
  125. STICKLINE(单阳不破9,不破价-不破价*0.002,不破价,4,0),COLORRED;
  126. DRAWTEXT(单阳不破9,不破价-不破价*0.02,'9'),COLORGREEN;
  127. LS110:=IF(10,LS0=10,单阳);
  128. LS210:=IF(10,LLV(L,10)>REF(L,10),1);
  129. 单阳不破10:=LS110 AND LS210;
  130. STICKLINE(单阳不破10,不破价-不破价*0.002,不破价,4,0),COLORRED;
  131. DRAWTEXT(单阳不破10,不破价-不破价*0.02,'10'),COLORGREEN;
复制代码



微信截图_20181019113906.png

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

[转载]薛斯通道2
  1. UPPERL: MA(HIGH,30)*1.15,colorwhite,linethick2;

  2. UPPERS: MA(HIGH,3)*1.03,LINETHICK2,COLOR00FFFF;

  3. LOWERS: MA(LOW,3)*0.97,linethick4,colorMagenta;

  4. LOWERL: MA(LOW,30)*0.85,colorred,linethick3;


  5. a:="STSFunc@CALSTSL";
  6. R1:="STSFunc@STS_RISK1";
  7. R2:="STSFunc@STS_RISK2";
  8. S1:="STSFunc@STS_STS1";
  9. S2:="STSFunc@STS_STS2";
  10. TBS:="STSFunc@STS_STSBS";
  11. DN:="STSFunc@STS_STSDN";
  12. UP:="STSFunc@STS_STSUP";
  13. 压力位:UP,linethick0,color0000ff,PRECIS2;
  14. 支撑位:DN,linethick0,color00ff00,PRECIS2;
  15. 警示位:IF(R1<>0,ABS(R1),IF(R2<>0,ABS(R2),0)),linethick0,colorff00ff,PRECIS2;

  16. DRAWLINE(UP>0,UP,UP<>REF(UP,1) OR C=DYNAINFO(7),REF(ABS(UP),1),0),dotline,color0000ff,LINETHICK1;
  17. DRAWLINE(DN>0,DN,DN<>REF(DN,1) OR C=DYNAINFO(7),REF(ABS(DN),1),0),dotline,color00ff00,LINETHICK1;
  18. DRAWLINE(UP<0,-UP,UP<>REF(UP,1) OR C=DYNAINFO(7),REF(ABS(UP),1),0),color0000ff;
  19. DRAWLINE(DN<0,-DN,DN<>REF(DN,1) OR C=DYNAINFO(7),REF(ABS(DN),1),0),color00ff00;
  20. DRAWLINE(R1>0,R1,R1<>REF(R1,1) OR C=DYNAINFO(7),REF(ABS(R1),1),0),dotline,colorEE88ff;
  21. DRAWLINE(R2>0,R2,R2<>REF(R2,1) OR C=DYNAINFO(7),REF(ABS(R2),1),0),dotline,colorEE88ff;
  22. DRAWLINE(R1<0,-R1,R1<>REF(R1,1) OR C=DYNAINFO(7),REF(ABS(R1),1),0),colorEE88ff;
  23. DRAWLINE(R2<0,-R2,R2<>REF(R2,1) OR C=DYNAINFO(7),REF(ABS(R2),1),0),colorEE88ff;

  24. drawbmp(TBS=1,l*0.96,'STSbuy1.bmp'),align1,valign0;
  25. drawbmp(TBS=-1,h*1.07,'STSsell1.bmp'),align1,valign0;
  26. drawbmp(S2=14,l*0.94,'STSbuy.bmp'),align1,valign0;
  27. drawbmp(S2=-14,h*1.09,'STSsell.bmp'),align1,valign0;

  28. drawtext(S1>0,L,STR(S1)),color00FF00,LINETHICK1,align1,valign0;
  29. drawtext(S1<0,H*1.03,STR(-S1)),color00FF00,LINETHICK1,align1,valign0;
  30. drawtext(S2>0 and S2<13,l*0.97,STR(S2)),color0000FF,LINETHICK1,align1,valign0;
  31. drawtext(S2<0 and S2>-13,H*1.06,STR(-S2)),color0000FF,LINETHICK1,align1,valign0;
  32. drawtext(S2=13,l*0.97,'+'),color0000FF,LINETHICK1,align1,valign0;
  33. drawtext(S2=14,l*0.97,'13'),color0000FF,LINETHICK1,align1,valign0;
  34. drawtext(S2=-13,h*1.06,'+'),color0000FF,LINETHICK1,align1,valign0;
  35. drawtext(S2=-14,h*1.06,'13'),color0000FF,LINETHICK1,align1,valign0;

  36. SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
  37. DRAWTEXTREL(12,5,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK3,Color8000FF;
  38. AA10:MA(CLOSE,8),color0000FF;
  39. AA12:MA(CLOSE,12),color0000FF;
  40. BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
  41. BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
  42. MA13:=MA(CLOSE,13);
  43. FILLRGN(AA10,AA12,(((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1))),Color0098FF;
  44. FILLRGN(AA10,AA12,(((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1))),color00FF00;
  45. x1:=(C+L+H)/3;
  46. bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
  47. ema8:=ema(c,8);
  48. DRAWTEXT(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
  49. ema8,'∠45上升'),colorwhite;
  50. 压力:MA(REF(HHV(C,30),1),2),Color9DFFFF;
  51. 支撑:MA(REF(LLV(C,30),1),2),ColorABFF46;
  52. AA1:=AMOUNT/V;
  53. BB1:=L<AA1*0.9;
  54. CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
  55. DD1:=L<MA(C,5)*0.921;
  56. EE1:=V<MA(V,5)*1.5;
  57. FF1:=BB1 AND CC1 AND DD1 AND EE1;
  58. DRAWTEXT(ff1,(LOW* 0.99),'老鼠仓'),Color4080FF;
  59. A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
  60. 黑码线:=EMA(A51,5);
  61. A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
  62. 趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));
  63. DRAWTEXT(CROSS(趋势线,0)AND 黑码线<40,(HIGH* 0.97),'▲大黑码'),COLORYELLOW;
  64. LC:=REF(CLOSE,1);
  65. RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
  66. FF:=EMA(CLOSE,3);
  67. MA15:=EMA(CLOSE,21);
  68. DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),ColorA6E500;
  69. DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),Color1880FF;
  70. VAR2:=LLV(LOW,27);
  71. VAR3:=HHV(HIGH,34);
  72. VAR4:=EMA((CLOSE-Var2)/(Var3-Var2)*4,4)*25;
  73. 注意买:=IF((Var4<10),80,100);
  74. RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
  75. K:=SMA(RSV,3,1);
  76. D:=SMA(K,3,1);
  77. J:=3*K-2*D;
  78. 超跌:=IF(J<0,10,0);
  79. BDDD:=LLV(J,2)=LLV(J,8);
  80. 买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);
  81. DRAWTEXT(买入 AND 注意买=100 AND 超跌=0,low,'短线'),Color8000FF;
  82. MTM:=C-REF(C,1);
  83. DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
  84. 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
  85. DRAWTEXT(filter(买=1,5),LOW-0.03,'拉升'),ColorFFDE00;
  86. STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
  87. STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
  88. STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;
  89. STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;
  90. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;
  91. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;
  92. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;
  93. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
  94. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
  95. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;
  96. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
  97. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;
  98. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;
  99. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
  100. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
  101. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;
  102. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
  103. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;
  104. var9Q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
  105.      stickline(var9Q,c,(o+c)/2,7,0),color000055;
  106.      stickline(var9Q,c,(o+c)/2,6,0),color000066;
  107.      stickline(var9Q,c,(o+c)/2,5,0),color000077;
  108.      stickline(var9Q,c,(o+c)/2,4,0),color000099;
  109.      stickline(var9Q,c,(o+c)/2,3,0),color0000bb;
  110.      stickline(var9Q,c,(o+c)/2,2,0),color0000dd;
  111.      stickline(var9Q,c,(o+c)/2,1,0),color0000ff;
  112. varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);
  113.      stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;
  114.      stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;
  115.      stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;
  116.      stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;
  117.      stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;
  118.      stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
  119.      stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
  120. varbQ:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
  121.      stickline(varbQ,c,(o+c)/2,7,0),color333333;
  122.      stickline(varbQ,c,(o+c)/2,6,0),color555555;
  123.      stickline(varbQ,c,(o+c)/2,5,0),color777777;
  124.      stickline(varbQ,c,(o+c)/2,4,0),color999999;
  125.      stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;
  126.      stickline(varbQ,c,(o+c)/2,2,0),colordddddd;
  127.      stickline(varbQ,c,(o+c)/2,1,0),colorffffff;
  128. varcQ:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
复制代码



微信截图_20181019114010.png
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

返回列表