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

几个东方财富好用的公式

几个东方财富好用的公式

  1. (一)长下影线选股 (该公式为长下影,下影线为实体线的4倍)

  2. (MIN(CLOSE,OPEN)-LOW)/( MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))>4;

  3. (二)红三兵选股(该公式为红三兵选股公式,参数N,1,100,5)


  4. A1:=C>O AND (C>REF(C,1) AND REF(C,1)>REF(C,2));
  5. A2:=V>REF(V,1) AND (REF(V,1)>REF(V,2));
  6. A3:=C>OPEN AND REF(C,1)>REF(OPEN,1) AND REF(C,2)>REF(OPEN,2);
  7. A4:=OPEN>REF(OPEN,1) AND OPEN
  8. A5:=REF(OPEN,1)>REF(OPEN,2) AND REF(OPEN,1)
  9. COUNT(A1 AND A2 AND A3 AND A4 AND A5,N)>=1;

  10. (三)锤头选股

  11. OUT:HIGH=MAX(OPEN,CLOSE)&&
  12. HIGH-LOW>5*(HIGH-MIN(OPEN,CLOSE))&&
  13. CLOSE

  14. (四)身怀六甲选股

  15. KSTAR:ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04&&
  16. ABS(CLOSE-OPEN)/CLOSE<0.005&&
  17. MAX(CLOSE,OPEN)
  18. MIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1));



  19. (五)均线粘合1  (参数N:1,2,1.01)

  20. M1:=MA(CLOSE,5);
  21. M2:=MA(CLOSE,10);
  22. M3:=MA(CLOSE,20);
  23. M4:=MA(CLOSE,30);
  24. Y1:=MAX(MAX(MAX(M1,M2),M3),M4);
  25. X1:=MIN(MIN(MIN(M1,M2),M3),M4);
  26. 黏合:Y1/X1

  27. (六)均线粘合2

  28. AA:=MA(CLOSE,10);
  29. BB:=MA(CLOSE,60);
  30. CC:=MA(CLOSE,125);
  31. T1:=AA>BB AND BB>CC;
  32. DD:=MA(VOL,10);
  33. EE:=MA(VOL,60);
  34. FF:=MA(VOL,125);
  35. T2:=DD>EE AND EE>FF;
  36. DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
  37. DEA:=EMA(DIF,7);
  38. MACD:=2*(DIF-DEA);
  39. 金叉:CROSS(DIF,DEA) AND DIF<0.05;

  40. (七)均线粘合3 ((参数N:1,2,1.1))

  41. M1:=MA(CLOSE,5);
  42. M2:=MA(CLOSE,30);
  43. M3:=MA(CLOSE,125);
  44. Y1:=MAX(MAX(M1,M2),M3);
  45. X1:=MIN(MIN(M1,M2),M3);
  46. 黏合:Y1/X1

  47. (八)均线粘合4

  48. AA:=MA(CLOSE,10);
  49. BB:=MA(CLOSE,60);
  50. CC:=MA(CLOSE,125);
  51. T1:=AA<1.1*BB AND BB<1.1*CC;
  52. DD:=MA(VOL,10);
  53. EE:=MA(VOL,60);
  54. FF:=MA(VOL,125);
  55. T2:=DD>EE AND EE>FF;
  56. DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
  57. DEA:=EMA(DIF,7);
  58. MACD:=2*(DIF-DEA);
  59. 金叉:CROSS(DIF,DEA) AND DIF<0.05;

  60. (九)三十日跌半

  61. XG:(HHV(C,30)-C)/HHV(C,30)>0.3;

  62. (十)九日跌两成

  63. XG:(HHV(C,9)-C)/HHV(C,9)>0.2;

  64. (十一)43天反弹

  65. XG:ABS(C-MA(C,43))/MA(C,43)<0.01;

  66. (十二)老鸭头

  67. MA5 := MA(CLOSE,5);
  68. MA10 := MA(CLOSE,10);
  69. MA60 := MA(CLOSE,60);

  70. PDAY1 := BARSLAST(CROSS(MA5,MA60));{5日均线上穿60日均线}
  71. PDAY2 := BARSLAST(CROSS(MA10,MA60));{10日均线上穿60日均线,至此形成鸭颈部}
  72. PDAY3 := BARSLAST(HIGH=HHV(HIGH,PDAY2));{形成头部,要下跌}
  73. PDAY4 := BARSLAST(CROSS(MA10,MA5));{下跌后,5日均线和10日均线死叉}
  74. PDAY5 := BARSLAST(CROSS(MA5,MA10));{回落不久,5日均线和10日均线形成金叉,形成嘴部}

  75. A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;

  76. A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;

  77. A1 AND A2;

  78. (十三)放量下跌

  79. XG:C0.04 AND V/REF(VOL,1)>=3;

  80. (十四)单日放量(M:1,100,15   N:1,10,2)

  81. A1:=MA(VOL,5);
  82. A2:=REF(A1,1);
  83. A2/VOL>N;

  84. (十五)单日放量2(M:1,100,2   N:1,10,4)

  85. A1:=MA(VOL,5);
  86. A2:=REF(A1,1);
  87. VOL/A2>N AND 100*VOL/CAPITAL>M;

  88. (十六)单日缩量(M:1,100,15   N:1,10,2)

  89. A1:=MA(VOL,5);

  90. (十七)三金叉

  91. {KDJ三金叉}
  92. MA5:=EMA(C,5);
  93. MA10:=EMA(C,10);
  94. MV5:=EMA(V,5);
  95. MV10:=EMA(V,10);
  96. K:="KDJ.K"(9,3,3);
  97. D:="KDJ.D"(9,3,3);
  98. V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;
  99. VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.12 ;
  100. KD1:=K>REF(K,1) AND D>=REF(D,1);
  101. VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND
  102. COUNT(CROSS(MV5,MV10),4)>=1;
  103. {MACD二次金叉}
  104. DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
  105. DEA:=EMA(DIF,9);
  106. MACD:=2*(DIF-DEA);
  107. A1:=CROSS(DIF,DEA);
  108. A2:=REF(A1,1);
  109. A3:=COUNT(A2,21);{今天之前3个星期以来曾经金叉}
  110. A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)
  111. AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250) ;{均线多头排列}

  112. 选股:IF(V1 AND VV1 AND KD1 AND VA,1,0) AND A1 AND A3 AND A4 ;
  113. A2:=REF(A1,1);
  114. A2/VOL>N;

  115. (十八)螺旋桨

  116. DOWN:=OPEN>CLOSE;
  117. X1:=COUNT(DOWN,5)=4;
  118. X2:=(HHV(C,20)-LLV(C,1))/ LLV(C,1)/50*100;
  119. X3:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667 AND (HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.333 AND (C-O)<0.1;
  120. X4:=V
  121. 选:X1 AND X2 AND X3 AND X4;

  122. (十九)回抽20均线

  123. XG:REF(C,1)>MA(C,20) AND CROSS(MA(C,20),C);

  124. ================================================================================

  125. 以上是选股指标,下面是用于主图或者副图的指标

  126. 主图指标:自己改编的,增加了一些东西

  127. 名称  HYJX

  128. 参数  (M1,M2,M3,M4,M5,M6=5,10,20,30,60,144),(M,N=4,11)



  129. MA1:MA(CLOSE,M1);

  130. MA2:MA(CLOSE,M2);

  131. MA3:MA(CLOSE,M3)COLORMAGENTA,LINETHICK2;

  132. MA4:MA(CLOSE,M4);

  133. MA5:MA(CLOSE,M5),COLORRED,LINETHICK1;

  134. MA6:MA(CLOSE,M6),COLORWHITE,LINETHICK1;

  135. AA1:=CROSS(C,MA5);

  136. DRAWTEXT(AA1,LOW*0.98,'★A8')COLORYELLOW;



  137. CV:=CLOSE;

  138. BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;

  139. UPR:BBIBOLL+M*STD(BBIBOLL,N),COLORLICYAN,DOTLINE;

  140. DWN:BBIBOLL-M*STD(BBIBOLL,N),COLORLICYAN,DOTLINE;





  141. DRAWTEXT_FIX(CLOSE>0,0.7,0.1,1,'   严守纪律不追涨,冲动是魔鬼,  不赚不走,不到买入点,再好的票不要' ),COLORRED;

  142. DRAWTEXT_FIX(CLOSE>0,0.7,10,1,'涨了错过就错过了,注意20均线,看凤凰财经资金流向'),COLORGREEN;

  143. DRAWTEXT_FIX(CLOSE>0,0.9,10,1,'注意顶部,注意放量位置,注意买入点'),COLORYELLOW;

  144. DRAWTEXT_FIX(CLOSE>0,0.9,0.1,1,'当日涨幅超过4%,不买' ),COLORRED;

  145. DRAWTEXT_FIX(CLOSE>0,0.3,1.1,1,'均线粘合指标不得亏,老鸭头选股也可以' ),COLORRED;

  146. C2:=REF(C,1);

  147. 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);

  148. STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;

  149. STICKLINE(涨停,H,L,0,0),COLORYELLOW;

  150. 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);

  151. STICKLINE(跌停,OPEN,CLOSE,1,0),COLORMAGENTA;

  152. STICKLINE(跌停,H,L,2,0),COLORMAGENTA;





  153. DRAWTEXT_FIX(1,0.7,0,0,'所属板块:'),COLORFF6000;

  154. DRAWTEXT_FIX(1,0.77,0,0,HYBLOCK),COLORRED;

  155. DRAWTEXT_FIX(1,0.835,0,0,DYBLOCK),COLORYELLOW;



  156. =============================================================


  157. 以下是一些副图指标,用于监控买卖点





  158. (A1)超大主力买入(还比较准)

  159. {流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;}
  160. N:=8;
  161. M:=13;
  162. P:=60;
  163. S:=3;
  164. V1:=(C*2+H+L)/4*10;
  165. V2:=EMA(V1,13)-EMA(V1,34);
  166. V3:=EMA(V2,5);
  167. V4:=2*(V2-V3)*5.5;
  168. 超大主力吃: IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK3;
  169. 超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2;
  170. V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
  171. V6:=EMA(3*V5-2*SMA(V5,18,1),5);
  172. V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
  173. V8:=(INDEXC*2+INDEXH+INDEXL)/4;
  174. V9:=EMA(V8,13)-EMA(V8,34);
  175. VA:=EMA(V9,3);
  176. VB:=(V9-VA)/2;
  177. 超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;

  178. (A2)  底部指标

  179. LC:=REF(CLOSE,1);
  180. RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
  181. TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
  182. HD:=(HIGH - REF(HIGH,1));
  183. LD:=(REF(LOW,1) - LOW);
  184. DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
  185. DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
  186. PDI:=((DMP * 100) / TR1);
  187. MDI:=((DMM * 100) / TR1);
  188. ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
  189. AV:=(RSI5 + ADX);
  190. DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
  191. WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
  192. NEWVOL:=(RSI5 - WR10);
  193. 天知买入:=(AV + NEWVOL);
  194. 最佳买入选股:=IF(CROSS(天知买入,0),1,0),STICK,COLORRED;
  195. VAR1:=SMA(最佳买入选股,3,1);
  196. VAR2:=SMA(VAR1,3,1),COLOR0000FF;
  197. VAR3:=SMA(VAR2,3,1),COLOR00FFFF;
  198. 天知买点:IF(CROSS(VAR2,VAR3) AND (VAR2<40),5,0* 10000),COLOR0000FF,LINETHICK1;
  199. STICKLINE(天知买点,0,2.5,8,0),COLORRED;
  200. STICKLINE(天知买点,0.45,4.0,2,0),COLORRED;
  201. RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);
  202. K:=SMA(RSV,3,1);
  203. D:=SMA(K,3,1);
  204. J:=3*K-2*D;
  205. X:=LLV(J,2)=LLV(J,8);
  206. 最佳买入时机: IF(CROSS(J,3),1,0),STICK,COLORFFFF00;
  207. STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;
  208. STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;
  209. STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;
  210. 天知建仓: IF(最佳买入选股<5,-0.2,0),STICK,COLOR00FF00,LINETHICK1;
  211. 天知建仓日:STICKLINE(天知建仓,0,-0.2,3,0),COLOR00FF00,LINETHICK3;


  212. DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
  213. DEA1:=EMA(DIF1,9);
  214. AAA1:=(DIF1-DEA1)*2*60;
  215. XP1:=10;
  216. XP2:=AAA1-REF(AAA1,1);
  217. 底部家族:CROSS(XP2,XP1);

  218. (A3)

  219. VAR1:=EMA(EMA(CLOSE,9),9);
  220. 控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
  221. STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE,LINETHICK4;
  222. A10:=CROSS(控盘,0);
  223. 无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
  224. 开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;
  225. STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED,LINETHICK4;
  226. 有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
  227. VAR2:=100*WINNER(CLOSE*0.95);
  228. STICKLINE(VAR2>50 AND COST(85)0,控盘,0,1,0),COLORFF00FF,LINETHICK4;
  229. 高度控盘:IF(VAR2>50 AND COST(85)0,控盘,0),COLORFF00FF,NODRAW;
  230. STICKLINE(控盘0,控盘,0,1,0),COLOR00FF00,LINETHICK4;
  231. 主力出货:IF(控盘0,控盘,0),COLOR00FF00,NODRAW;

  232. N3:=BARSLAST(CROSS(C,MA(C,20)));
  233. N4:=BARSLAST(CROSS(MA(C,20),C));
  234. 黑马跟踪:IF(N3

  235. 进攻:IF(开始控盘=5 AND 黑马跟踪=1,10,0),COLORFFFFFF,LINETHICK2;



  236. (A4)

  237. 参数  (short:2,200,2  long:2,200,26  mid:2,200,9)



  238. DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
  239. DEA:EMA(DIF,MID);
  240. MACD:(DIF-DEA)*2,COLORSTICK;

  241. 指标线1:=DIF;
  242. 指标线2:=DEA;
  243. 低位二次金叉:COUNT(CROSS(指标线1,指标线2) AND 指标线2<0,20)>=2 AND CROSS(指标线1,指标线2) AND 指标线2<0,NODRAW,COLORRED;
  244. DRAWTEXT(低位二次金叉,0.1,'★A8')COLORRED;


  245. A1:=DIF<-1;{DIF在底部上穿DIF买入信号,底部金叉,可以小量建仓,高位死叉减仓出局}
  246. A2:=DEA<-1;
  247. 底部金叉:CROSS(DIF,DEA) AND A1 AND A2,COLORGREEN;{DIF与DEA在0轴线发出信号是股价经过充分回调整理}

  248. {0轴线黄金叉}
  249. 中部金叉:CROSS(DIF,0),COLORYELLOW,NODRAW;{中部金叉,可以加仓,反之死叉出局}
  250. DRAWTEXT(中部金叉,0.1,'★A8')COLORYELLOW;

  251. N1:=DIF>=0;{轴线金叉,行情回调之后,建立顺势仓位。继续加码。反之死叉平仓}
  252. N2:=DEA>=0;
  253. N3:=DIF<=0.3;
  254. N4:=DEA<=0.3;
  255. 轴线金叉:CROSS(DIF,DEA) AND N1 AND N2 AND N3 AND N4,COLORMAGENTA,NODRAW;
  256. DRAWTEXT(轴线金叉,0.1,'★')COLORMAGENTA;

  257. (A5)


  258. DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;
  259. DEA1:=EMA(DIF1,9);
  260. MACD1:=(DIF1-DEA1)*100,COLORSTICK;
  261. STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;
  262. STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;
  263. STICKLINE(MACD1<0,0,MACD1,0,0),COLOR00FF00;
  264. STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;
  265. STICKLINE(C>0,0,0,50,1),COLORBLUE;
  266. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  267. K:SMA(RSV,5,1);
  268. D:SMA(K,3,1);
  269. J:3*K-2*D;
  270. VARB2:=(RSV/2+22)*1;
  271. 量:=EMA(VOL,13);
  272. 资金:=EMA(AMOUNT,13);
  273. 过滤:=((资金 /量) / 100);
  274. 提纯:=(((CLOSE -过滤) / 过滤) * 100);
  275. 黄金:=((提纯 < (0)) AND ZXNH),COLORRED;
  276. 低买:IF(黄金 AND RSV
  277. 高卖:IF(黄金 AND RSV>VARB2,80,120),COLORGREEN,LINETHICK2;
  278. 上涨分界:25;
  279. 底部:0,COLORF00FF0,LINETHICK2;
  280. DRAWICON(CROSS(J,底部),底部,1);
  281. VAR1:=REF(CLOSE,1);
  282. VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
  283. 特准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),0,25,1,0),LINETHICK2,COLOR00FF00;
  284. BIAS1:=(C-MA(C,6))/MA(C,6)*100;
  285. BIAS2:=(C-MA(C,12))/MA(C,12)*100;
  286. BIAS3:=(C-MA(C,24))/MA(C,24)*100;
  287. BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
  288. 乖离:=MA(BIAS,3);
  289. 红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,25,50,1,0),COLORRED;
  290. DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
  291. DEA:=EMA(DIFF,9),COLORFFFF00;
  292. MACD:=(DIFF-DEA)*2;
  293. A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
  294. A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
  295. MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),50,75,1,0),COLORYELLOW;
  296. VAR6:=LLV(LOW,10);
  297. VAR8:=HHV(HIGH,25);
  298. 减仓线:=3.2 ;
  299. 卖出线:=3.5;
  300. 动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);
  301. DRAWICON(CROSS(动力线,减仓线),80,2);
  302. DRAWICON(CROSS(卖出线,动力线),100,2);
  303. DRAWTEXT(CROSS(卖出线,动力线),120,'出局'),COLORRED;

  304. 编号(06) 指标名称:马克利指标公式  用于判断买入时机

  305. WY1001:=(2*CLOSE+HIGH+LOW)/4;
  306. WY1002:=EMA(WY1001,4);
  307. WY1003:=EMA(WY1002,4);
  308. WY1004:=EMA(WY1003,4);
  309. XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
  310. STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;
  311. STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
  312. PJGJ:=AMOUNT/VOL/100;
  313. SSRYDJX:=MA(PJGJ,13);
  314. SSRCJL:=EMA(VOL,13);
  315. SSRCJE:=EMA(AMOUNT,13);
  316. SSRCBJX:=SSRCJE/SSRCJL/100;
  317. CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
  318. XYSHSL:=EMA(VOL/CAPITAL*100,13);
  319. ZZX:0,COLORWHITE;
  320. STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2 ,0 ),COLORGREEN;
  321. STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW;
  322. STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2 ,0 ),COLORCYAN;
  323. STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2 ,0 ),COLORBLUE;
  324. XYS1:MA(XYS0,2),COLORYELLOW;
  325. XYS2:MA(XYS0,1),COLORMAGENTA;
  326. DRAWICON(CROSS(XYS2,XYS1),-0.25,1);

  327. 公式解释:

  328. WY1001赋值:(2*收盘价+最高价+最低价)/4
  329. WY1002赋值:WY1001的4日指数移动平均
  330. WY1003赋值:WY1002的4日指数移动平均
  331. WY1004赋值:WY1003的4日指数移动平均
  332. XYS0赋值:(WY1004-1日前的WY1004)/1日前的WY1004*100
  333. 当满足条件XYS0>=0时,在XYS0和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画红色
  334. 当满足条件XYS0<0时,在XYS0和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色
  335. PJGJ赋值:成交额(元)/成交量(手)/100
  336. SSRYDJX赋值:PJGJ的13日简单移动平均
  337. SSRCJL赋值:成交量(手)的13日指数移动平均
  338. SSRCJE赋值:成交额(元)的13日指数移动平均
  339. SSRCBJX赋值:SSRCJE/SSRCJL/100
  340. CYS13赋值:(收盘价-SSRCBJX)/SSRCBJX*100
  341. XYSHSL赋值:成交量(手)/当前流通股本(手)*100的13日指数移动平均
  342. ZZX赋值:0,画白色
  343. 当满足条件XYSHSL>6.1ANDCYS13>5时,在2和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色
  344. 当满足条件XYSHSL>3.8ANDCYS13>5时,在1.5和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
  345. 当满足条件XYSHSL>2.1ANDCYS13>5时,在1和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画青色
  346. 当满足条件XYSHSL>1.8ANDCYS13>5时,在0.5和0位置之间画柱状线,宽度为2,0不为0则画空心柱.,画蓝色
  347. XYS1赋值:XYS0的2日简单移动平均,画黄色
  348. XYS2赋值:XYS0的1日简单移动平均,画洋红色
  349. 当满足条件XYS2上穿XYS1时,在-0.25位置画1号图标


  350. (A7)

  351. DIFZ:=EMA(C,12)-EMA(C,26); DEAZ:=EMA(DIFZ,9); MACDZ:=2*(DIFZ-DEAZ); JJ:SUM(C*V,0)/SUM(V,0),COLOR00FFFF; RC:=DYNAINFO( 3);

  352. 量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933; 量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF; DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));

  353. {MACD P:1,20,4;} {RC:=DYNAINFO( 3);} S2:=SMA(C,2,1); S6:=SMA(C,6,1); DK:=2*(S2-S6); STICKLINE(DK>0,RC,RC+DK,0,1),COLORRED; STICKLINE(DK<0,RC,RC+DK,0,1),COLORCYAN; 分时顶:HHV(H,480),COLORGREEN,DOTLINE;
复制代码

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

返回列表