公式网-网站导航


网站搜索:  

公式在线 发表于2009/11/13 7:18:38

最基本的低点公式

 

C/C++ Code复制内容到剪贴板
  1. {思路:从股价下穿5日均线到最低点5日均线上翘,回调不超过N%}   
  2. ma5:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);   
  3. m5up:=ma5>ref(ma5,1) and ref(ma5,1)<=ref(ma5,2);   
  4. m5down:=ma5<ref(ma5,1) and ref(ma5,1)>=ref(ma5,2);   
  5. t1:=barslast(m5down);//:从5日均线开始向下捌头时算到现在的天数;   
  6. t2:=llvbars(ma5,t1);//:5日均线下行以来的5日线的最低点到现在的天数;   
  7. ww:=if(ref(c,t2)>ref(o,t2),c>ref(c,t2)*0.98,c>(ref(c,t2)+ref(o,t2))/2);   
  8. gl:=filter(m5up,3);   
  9. ref(c,t1)/ref(c,t2)<1.12 and ww and m5up and gl   

 



网站搜索:  



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