公式网-网站导航


网站搜索:  

公式在线 发表于2009/11/21 10:44:23

分水岭主图公式

分水岭主图公式

 

C/C++ Code复制内容到剪贴板
  1. A11:=REF(c,10)=HHV(c,2*10+1);   
  2. B1:=FILTER(A11,10);   
  3. C1:=BACKSET(B1,10+1);   
  4. HD:=FILTER(C1,10);   
  5. A22:=REF(c,10)=LLV(c,2*10+1);   
  6. B2:=FILTER(A22,10);   
  7. C2:=BACKSET(B2,10+1);   
  8. LD:=FILTER(C2,10);   
  9. A:=REF(C,BARSLAST(HD));   
  10. B:=REF(C,BARSLAST(LD));   
  11. t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);   
  12. t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);   
  13. 波峰:IF(t1,A,A),POINTDOT,coloryellow;   
  14. STICKLINE(t1,A,A,4,0),coloryellow;   
  15. 波谷:IF(t2,B,B),POINTDOT,colorffc8ff;   
  16. STICKLINE(t2,B,B,4,0),colorffc8ff;   
  17. 工作线14:ema(c,14),colorffff00;   
  18. 二号线25:ema(c,25),colorred;   
  19. 分水岭55:ema(c,55),color00ff00,linethick1;   
  20. 九号线99:eMA(CLOSE,99),linethick1,color008fff;   
  21. m120:ma(c,120),colorwhite,linethick1;   
  22. DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));   
  23. DEA:=EMA(DIFF,9);   
  24. MACD:=0.90*(DIFF-DEA);   
  25. tj:=(diff>=dea);   
  26. tj1:=(diff>=0);   
  27. stickline(tj,h,l,0.5,0),COLORyellow;   
  28. stickline(tj,o,c,4,0),COLORyellow;   
  29. stickline(tj1 and tj and c>o,h,l,0.5,0),colorf00ff0;   
  30. stickline(tj1 and tj and c>o,o,c,4,0),colorf00ff0;   
  31. stickline(tj1 and tj and c<o,h,l,0.5,0),colorff9933;   
  32. stickline(tj1 and tj and c<o,o,c,4,0),colorff9933;   
  33. stickline(diff<dea,h,l,0.5,0),colorgreen;   
  34. stickline(diff<dea,o,c,4,0),colorgreen;{}   
  35. Var1:=(CLOSE*2+HIGH+LOW)/4;   
  36. SK:= EMA(Var1,13)-EMA(Var1,73);   
  37. SD:= EMA(SK,2);   
  38. drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )    
  39. or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,'短线'),colorRED;   
  40. stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )    
  41. or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;   
  42. stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )    
  43. or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;   
  44. Var4:=(LOW+HIGH+CLOSE+open)/4;   
  45. CB:=MA(Var4,5);   
  46. A2:=HHV(CB,60);   
  47. B11:=LLV(CB,20);   
  48. drawtext(filter((a2>ref(a2,1) and b11>ref(b11,1)),5),h+0.1,'卖'),color00ff00;  

 



网站搜索:  



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