公式网-网站导航


网站搜索:  

公式在线 发表于2009/11/21 10:31:48

顶部预判

顶部预判

 

C/C++ Code复制内容到剪贴板
  1. TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);   
  2. HD := HIGH-REF(HIGH,1);   
  3. LD := REF(LOW,1)-LOW;   
  4. DMP:= SUM(IF(HD>0 ,HD,0),N);   
  5. DMM:= SUM(IF(LD>0 ,LD,0),N);   
  6. PDI: DMP*100/TR,colorwhite;   
  7. MDI: DMM*100/TR,coloryellow;   
  8. 反转:=ref(MDI,1)=0 and ref(MDI,2)<3 and MDI>1 and close>ref(close,1) and PDI<ref(PDI,1) and ref(PDI,1)>ref(PDI,2) and PDI<60 and PDI>45;   
  9. 巨反转:=if(ref(MDI,1)=0 and ref(mdi,2)=0 AND MDI>3 AND PDI>60 and close>ref(close,1) and pdi<ref(pdi,1) and ref(close,1)>ref(close,2),1,0);   
  10. 小心:=if(ref(MDI,1)<2.5 and (MDI-ref(MDI,1))>2 and close>ref(close,1) and pdi<ref(pdi,1) and 40<PDI,1,0);   
  11. 背离:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(pdi,1)>ref(PDI,2) and ref(pdi,1)>60,1,0);   
  12. F:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(close,2)<ref(close,1),if((PDI-10)>0,PDI-10,0),0);   
  13. e:=if(ref(MDI,1)=0,10,0)+if(ref(MDI,1)<3,10,0)+if(ref(MDI,2)=0,10,0)+if(ref(MDI,2)<4,15,0)+if(ref(MDI,3)=0,15,0)+if(ref(MDI,3)<5,20,0)+if(MDI=0,5,0)+if(MDI<5,5,0)+F+if(F>0,ref(f,1),0);   
  14. 小心指数:IF(E>100,100,E);   
  15. DRAWTEXT(巨反转=1,20,'巨反转' ),colorred;   
  16. DRAWTEXT(巨反转=0 and 反转=1,20,'反转' ),colorred;   
  17. DRAWTEXT(反转=0 and 小心=1,20,'小心' ),colorred;   
  18. DRAWTEXT(背离=1,80,'背离'),colorred;   
  19. DRAWTEXT(背离=0 and close>ref(close,1) and pdi<ref(pdi,1) {and ref(pdi,1)>ref(PDI,2)} and ref(pdi,1)>50,70,'背'),colorred;   
  20. DRAWTEXT(ref(PDI,1)<2.5 and (PDI-ref(PDI,1))>1.5 and close<ref(close,1) and Mdi<ref(Mdi,1),20,'上' ),colorred;   
  21. DRAWTEXT(ref(PDI,1)<5 and ref(PDI,1)<ref(pdi,2) and (PDI-ref(PDI,1))>1.5 and close>ref(close,1) and Mdi<ref(Mdi,1),20,'?上' ),colorred;   
  22.   
  23. M N的参数都是6,不要忘记填上。  

 



网站搜索:  



Copyright © 2009-2010 gszb.com ™,All Rights Reserved. 
公式网-www.gszx.com.cn-股票指标公式网