公式网-网站导航


网站搜索:  

公式在线 发表于2009/11/9 8:29:21

鬼变脸宝塔线

 

C/C++ Code复制内容到剪贴板
  1. sensitivy:=o; towero:=o; towerc:=c; fc:=c;   
  2. i:=2;   
  3. while i<=datacount do begin   
  4.   towero[i]:=towerc[i-1];   
  5.   towerc[i]:=fc[i];   
  6.   sensitivy[i]:=towero[i-1];   
  7.   if (towerc[i-1]-towero[i-1])*(towerc[i-1]-sensitivy[i-1])<=0 then    
  8.     begin    
  9.       towero[i]:=towero[i-1];   
  10.       sensitivy[i]:=towerc[i-1];   
  11.     end    
  12.   else if between(sensitivy[i-1],towero[i-1],towerc[i-1]) then sensitivy[i]:=sensitivy[i-1];   
  13.   i:=i+1;   
  14. end;   
  15.   
  16. tj:=(sensitivy-towero)*(sensitivy-towerc)<=0 and sensitivy<>towerc;   
  17. stickline(tj,max(towero,towerc),sensitivy,7,1), colorred;   
  18. stickline(tj,min(towero,towerc),sensitivy,7,0), color006600;   
  19. stickline(sensitivy<=min(towero,towerc) and not(tj),towero,towerc,7,1), colorred;   
  20. stickline(sensitivy>=max(towero,towerc) and not(tj),towero,towerc,7,0), color006600;   
  21.   
  22. 今开盘:TOWERO,LINETHICK0;   
  23. 今收盘:TOWERC,LINETHICK0;   
  24. 今敏感:sensitivy,LINETHICK0;   
  25.   
  26. 三平底翻红: min(towero,towerc)=ref(min(towero,towerc),1) and min(towero,towerc)=ref(min(towero,towerc),2) and max(towero,towerc)>sensitivy,LINETHICK,COLORRED;   
  27. 三平顶翻绿: max(towero,towerc)=ref(max(towero,towerc),1) and max(towero,towerc)=ref(max(towero,towerc),2) and min(towero,towerc)<sensitivy,LINETHICK,COLOR006600;   
  28. if k=0 then exit;   
  29. DRAWICON(三平底翻红,min(towero,towerc)*0.98,4);DRAWICON(三平顶翻绿,max(towero,towerc)*1.02,5);   

 



网站搜索:  



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