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

大智慧集成资讯全线主图加四度空间解盘 预测明日买点卖点 经典K线形态[大智慧公式]

大智慧集成资讯全线主图加四度空间解盘 预测明日买点卖点 经典K线形态[大智慧公式]

  1. INPUT:M(10,3,250,3);均线:(MA(CLOSE,M) * 1),Colorred,LINETHICK2;早晨之星:=ref(CLOSE,2)/ref(OPEN,2)<0.95 AND ref(OPEN,1)<ref(CLOSE,2) AND ABS(ref(OPEN,1)-ref(CLOSE,1))/ref(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>ref(CLOSE,2);
  2. 黄昏之星:=ref(CLOSE,2)/ref(OPEN,2)>1.03 AND ref(OPEN,1)>ref(CLOSE,2) AND ABS(ref(OPEN,1)-ref(CLOSE,1))/ref(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<ref(CLOSE,2);
  3. 长十字:=CLOSE=OPEN AND HIGH/LOW >1.03;
  4. 垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;
  5. 早晨十字星:=ref(CLOSE,2)/ref(OPEN,2)<0.95 AND ref(OPEN,1)<ref(CLOSE,2) AND ref(OPEN,1)=ref(CLOSE,1) AND
  6. CLOSE/OPEN>1.05 AND CLOSE>ref(CLOSE,2);
  7. 黄昏十字星:=ref(CLOSE,2)/ref(OPEN,2)>1.05 AND ref(OPEN,1)>ref(CLOSE,2) AND ref(OPEN,1)=ref(CLOSE,1) AND
  8. CLOSE/OPEN<0.95 AND CLOSE<ref(CLOSE,2);
  9. 射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);
  10. 倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5);
  11. 锤头:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE<MA(CLOSE,5);
  12. 吊颈:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);
  13. 穿头破脚:=(ref(CLOSE,1)/ref(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<ref(OPEN,1) AND OPEN>ref(CLOSE,1))
  14. OR (ref(CLOSE,1)/ref(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>ref(OPEN,1) AND OPEN<ref(CLOSE,1));
  15. 乌云盖顶:=ref(CLOSE,1)/ref(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>ref(CLOSE,1) AND CLOSE<ref(CLOSE,1);
  16. 曙光初现:=ref(CLOSE,1)/ref(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<ref(CLOSE,1) AND CLOSE>ref(CLOSE,1);
  17. 身怀六甲:=ABS(ref(CLOSE,1)-ref(OPEN,1))/ref(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND
  18. MAX(CLOSE,OPEN)<MAX(ref(CLOSE,1),ref(OPEN,1)) AND MIN(CLOSE,OPEN)>MIN(ref(CLOSE,1),ref(OPEN,1));
  19. 十字胎:=ABS(ref(CLOSE,1)-ref(OPEN,1))/ref(CLOSE,1)>0.04 AND CLOSE=OPEN AND
  20. CLOSE < MAX(ref(CLOSE,1),ref(OPEN,1)) AND CLOSE > MIN(ref(CLOSE,1),ref(OPEN,1));
  21. 平顶:=ABS(HIGH-ref(HIGH,1))/HIGH<0.001;
  22. 平底:=(ABS(LOW-ref(LOW,1))/LOW<0.001 AND ABS(ref(LOW,1)-ref(LOW,2))/ref(LOW,1)<=0.001);
  23. 大阳烛:=CLOSE/OPEN>1.05 AND HIGH/LOW<CLOSE/OPEN+0.018;
  24. 三个白武士:=ref(CLOSE,2)>ref(OPEN,2) AND ref(CLOSE,1)>ref(OPEN,1) AND CLOSE>OPEN
  25. AND ref(CLOSE,1)>ref(CLOSE,2) AND CLOSE>ref(CLOSE,1);
  26. 双飞乌鸦:=ref(CLOSE,1)<ref(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98;
  27. 孕育线:=ref(CLOSE,2)>ref(OPEN,2) AND (ref(CLOSE,2)-ref(OPEN,2))/ref(OPEN,2)>=2/100 AND ref(OPEN,1)>=ref(CLOSE,1) AND
  28. (ref(OPEN,1)-ref(CLOSE,1))/ref(CLOSE,1)<=2/100 AND ref(OPEN,1)<=ref(CLOSE,2) AND ref(CLOSE,1)>=ref(OPEN,2) AND C>=OPEN AND
  29. (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=ref(OPEN,1) AND OPEN<=ref(CLOSE,1) AND (MAX(CLOSE,ref(C,2))-MIN(CLOSE,ref(CLOSE,2)))/MIN(CLOSE,ref(CLOSE,2))<=1/100;
  30. 多方炮:=ref(CLOSE,2)>ref(OPEN,2) AND ref(CLOSE,1)<ref(OPEN,1) AND CLOSE>OPEN;
  31. 出水芙蓉:=(OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))
  32. AND (V/MA(V,30)>1.2 AND C/ref(C,1)>1.049);
  33. 上升三部曲:=ref(CLOSE,4)/ref(OPEN,4)>1.03 AND ref(CLOSE,3)<ref(OPEN,3) AND ref(CLOSE,2)<ref(OPEN,2) AND ref(CLOSE,1)<ref(OPEN,1) AND
  34. ref(LOW,4)<ref(LOW,3) AND ref(LOW,4)<ref(LOW,2) AND ref(LOW,4)<ref(LOW,1) AND ref(HIGH,4)>ref(HIGH,3) AND ref(HIGH,4)>ref(HIGH,2) AND
  35. ref(HIGH,4)>ref(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>ref(CLOSE,4);
  36. 下跌三部曲:= ref(CLOSE,4)/ref(OPEN,4)<0.97 AND ref(CLOSE,3)>ref(OPEN,3) AND ref(CLOSE,2)>ref(OPEN,2) AND ref(CLOSE,1)>ref(OPEN,1) AND ref(LOW,4)<ref(LOW,3) AND
  37. ref(LOW,4)<ref(LOW,2) AND ref(LOW,4)<ref(LOW,1) AND ref(HIGH,4)>ref(HIGH,3) AND ref(HIGH,4)>ref(HIGH,2) AND ref(HIGH,4)>ref(HIGH,1) AND CLOSE/OPEN<0.97 AND
  38. CLOSE<ref(CLOSE,4);
  39. 跳空缺口:=HIGH<ref(LOW,1) OR LOW>ref(HIGH,1);
  40. 三只乌鸦:=ref(CLOSE,2)<ref(OPEN,2) AND ref(CLOSE,1)<ref(OPEN,1) AND CLOSE<OPEN AND ref(CLOSE,1)<ref(CLOSE,2) AND CLOSE<ref(CLOSE,1);
  41. 光脚阴线:=LOW=CLOSE AND HIGH<>LOW;
  42. 光头阳线:=HIGH=CLOSE AND HIGH<>LOW;
  43. 分离:=OPEN=ref(OPEN,1) AND (CLOSE-OPEN)*(ref(CLOSE,1)-ref(OPEN,1))<0;
  44. 长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
  45. 长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;
  46. 十字星:=CLOSE=OPEN AND HIGH<>LOW;
  47. 大阴烛:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;
  48. 好友反攻:=(ref(CLOSE,1)<ref(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-ref(CLOSE,1))/CLOSE<0.002)
  49. OR (ref(CLOSE,1)>ref(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-ref(CLOSE,1))/CLOSE<0.002);
  50. 倾盆大雨:=ref(C,1)/ref(O,1)>=1.03 AND O<ref(C,1) AND O>ref(O,1) AND C<ref(O,1);
  51. 解盘:='【解盘】'+
  52. IFs(倾盆大雨,'★倾盆大雨,见顶信号;','')+
  53. IFs(大阴烛,'★大阴烛,后市向淡,发生逆转;','')+
  54. IFs(好友反攻,'★好友反攻,底部反转;','')+
  55. IFs(跳空缺口,'★跳空缺口,注意向上还是向下跳空;','')+
  56. IFs(光脚阴线,'★光脚阴线,下跌信号;','')+
  57. IFs(光头阳线,'★光头阳线,后市看涨;','')+
  58. IFs(三只乌鸦,'★三只乌鸦,可能见顶回落;','')+
  59. IFs(分离,'★分离,注意看涨分离和看跌分离;','')+
  60. IFs(长下影,'★长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;','')+
  61. IFs(长上影,'★长上影,表明行情上档压力沉重,升势受阻;','')+
  62. IFs(下跌三部曲,'★下跌三部曲,下跌信号;','')+
  63. IFs(上升三部曲,'★上升三部曲,上涨信号;','')+
  64. IFs(早晨之星,'★早晨之星,见底回升;','')+
  65. IFs(黄昏之星,'★黄昏之星,见顶回落;','')+
  66. IFs(十字星,'★十字星,有转向意味,注意股价位置在顶部还是底部;','')+
  67. IFs(长十字,'★长十字,注意在顶部还是底部;','')+
  68. IFs(垂死十字,'★垂死十字,下跌信号;','')+
  69. IFs(早晨十字星,'★早晨十字星,上涨信号,见底回升;','')+
  70. IFs(黄昏十字星,'★黄昏十字星,下跌信号,见顶回落;','')+
  71. IFs(射击之星,'★射击之星,可能见顶回落,可靠性低;','')+
  72. IFs(倒转锤头,'★倒转锤头,可能见底回升;','')+
  73. IFs(锤头,'★锤头,可能见底回升,如有量配合,信号强烈;','')+
  74. IFs(吊颈,'★吊颈,上升行情中见顶回落,顶部出现,见顶信号;','')+
  75. IFs(平顶,'★平顶,温和的反转;','')+
  76. IFs(穿头破脚,'★穿头破脚,顶部出现,见顶回落信号;','')+
  77. IFs(乌云盖顶,'★乌云盖顶,见顶回落信号;','')+ {本文来至CXH99.COM}
  78. IFs(曙光初现,'★曙光初现,后市见底回升;','')+
  79. IFs(身怀六甲,'★身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;','')+
  80. IFs(十字胎,'★十字胎;','')+
  81. IFs(平底,'★平底,温和的反转;','')+
  82. IFs(大阳烛,'★大阳烛,看涨;','')+
  83. IFs(三个白武士,'★三个白武士,每日收盘价上移,表示可能见底回升;','')+
  84. IFs(双飞乌鸦,'★双飞乌鸦,行情将见顶回落;','')+
  85. IFs(孕育线,'★孕育线,注意股价位置;','')+
  86. IFs(多方炮,'★多方炮,在底部出现有上涨意味,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;','')+
  87. IFs(出水芙蓉,'★出水芙蓉,见底回升;','');
  88. DRAWTEXTABS(0,0,解盘);
  89. MA5:MA(C,5),COLORF00FF0;
  90. MA21:MA(C,21),COLORE66878;
  91. MA30:MA(C,30),COLORYELLOW; MA55:MA(CLOSE,55),LINETHICK1,ColorGREEN;
  92. 半年线:MA(C,120),COLOR399C7F,POINTDOT;
  93. 年线:MA(C,240),COLOR000999,POINTDOT;X1:=(C+L+H)/3;
  94. X2:=EMA(X1,6);
  95. X3:=EMA(X2,5);
  96. DRAWICON(CROSS(X2,X3),L*0.98,7);
  97. DRAWICON(CROSS(X3,X2),H*1.02,8);
  98. DRAWGBKLAST(C>0,STRIP(RGB(10,10,50),RGB(50,10,10),0));

  99. 均价:=(3*C+H+L+O)/6;
  100. VAR1:=(8*均价+7*ref(均价,1)+6*ref(均价,2)+5*ref(均价,3)+
  101. 4*ref(均价,4)+3*ref(均价,5)+2*ref(均价,6)+ref(均价,8))/36;
  102. VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
  103. SZ1:=ref(VAR1,1)=ref(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
  104. SZ2:=VAR1>VAR2 AND VAR1>ref(VAR1,1) AND VAR2>ref(VAR2,1)
  105. AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
  106. SZ3:=VAR1>VAR2 AND VAR1>ref(VAR1,1) AND VAR2>=ref(VAR2,1) AND H/VAR1>1.1;
  107. SZ4:=VAR1>VAR2 AND VAR1>ref(VAR1,1) AND VAR2>ref(VAR2,1)
  108. AND CLOSE>VAR2 AND CLOSE<VAR1;
  109. SZ5:=(VAR1>VAR2 AND VAR2>ref(VAR2,1) AND VAR1<>ref(VAR1,1)
  110. AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<ref(VAR1,1)
  111. AND VAR2<ref(VAR2,1) AND CLOSE<VAR2);;
  112. SZ6:=ref(VAR1,1)>ref(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;
  113. XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<ref(VAR1,1) AND VAR2<ref(VAR2,1)
  114. AND ref(VAR1,1)=ref(VAR2,1) AND CLOSE<VAR2);
  115. XD2:=VAR1=VAR2 AND CLOSE>VAR1;
  116. SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
  117. 量能饱和度:=IF(SAT>1,1,SAT)*100;
  118. IF BARSTATUS=2 AND SZ1 THEN BEGIN
  119. DRAWTEXTABS(390,25,'调整结束短线介入'),LINETHICK2,COLORRED;
  120. END
  121. ELSE
  122. IF BARSTATUS=2 AND SZ2 THEN BEGIN
  123. DRAWTEXTABS(390,25,'上升通道走势良好'),LINETHICK2,COLORRED;
  124. END
  125. ELSE
  126. IF BARSTATUS=2 AND SZ3 THEN BEGIN
  127. DRAWTEXTABS(390,25,'股价偏离注意调整'),LINETHICK2,COLORRED;
  128. END
  129. ELSE
  130. IF BARSTATUS=2 AND SZ4 THEN BEGIN
  131. DRAWTEXTABS(390,25,'上升通道调整洗盘'),LINETHICK2,COLORGREEN;
  132. END
  133. ELSE
  134. IF BARSTATUS=2 AND SZ5 THEN BEGIN
  135. DRAWTEXTABS(390,25,'转向特征注意离场'),LINETHICK2,COLORGREEN;
  136. END
  137. ELSE
  138. IF BARSTATUS=2 AND SZ6 THEN BEGIN
  139. DRAWTEXTABS(390,25,'通道改变坚决离场'),LINETHICK2,COLORGREEN;
  140. END
  141. ELSE
  142. IF BARSTATUS=2 AND XD1 THEN BEGIN
  143. DRAWTEXTABS(390,25,'下跌通道只宜观望'),LINETHICK2,COLORGREEN;
  144. END
  145. ELSE
  146. IF BARSTATUS=2 AND XD2 THEN BEGIN
  147. DRAWTEXTABS(390,25,'短期底部准备进入'),LINETHICK2,COLORYELLOW;
  148. END;
  149. ;a:="LTFunc5@FORLT2";
  150. s1:="LTFunc5@LT_S1";
  151. hs:="LTFunc5@LT_HS";
  152. ls:="LTFunc5@LT_LS";
  153. p1:="LTFunc5@LT_P1";
  154. upp:="LTFunc5@LT_UPP";
  155. udd:="LTFunc5@LT_UDD";

  156. {hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
  157. 买入:p1=1 and ref(p1,1)=0,LINETHICK0,Precis0,ColorRed;
  158. d1:=eMA(ABS("ddx.ddx"),60);
  159. d2:=MAx("ddx.ddx"/d1+7.5,7.5);
  160. d3:=min("ddx.ddx"/d1,10);
  161. fb:=if(s1=0,hs,ls);
  162. tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点\n','若明日收盘价>'+numtostrn(upp,2)+',出现B点\n');
  163. tr1:=ifs(s1=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价>'+numtostrn(hs,2)+'短线买入机会');
  164. tr2:=ifs(p1=1,ifs(cross(p1,0),'B点','持股'),ifs(cross(1,p1),'S点','持币'));
  165. tr3:=ifs(s1=0,'向下,','向上,');
  166. tr4:='3.能量级别:'+numtostrn(d3,1)+'级';

  167. bs:=''+datestr(date)+'买卖点决策系统提示\n'+'1.BS点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'\n'+tr4;
  168. drawflagtext(1,fb,bs);

  169. STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;
  170. STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;
  171. STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;
  172. STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;
  173. STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;
  174. STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;
  175. STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;
  176. STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;

  177. STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;
  178. STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54;
  179. STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;

  180. drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
  181. drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;

  182. drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
  183. drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;闪:EMA(c+(h-l)*0.618,3),Color0099FF,LINETHICK0;进:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;

  184. 预测明日买点:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4;
  185. DRAWTEXTREL(800,950,'测今日低点:'+NUMTOSTRN(ref(预测明日买点,1),2 )),ColorGREEN;
  186. 预测明日卖点:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-进)*0.618;
  187. DRAWTEXTREL(580,950,'测今日高点:'+NUMTOSTRN(ref(预测明日卖点,1),2 )),Colorred;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
  188. 明日阻力:=l+(gj-l)+(c-l);
复制代码

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   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

返回列表