最佳买点(源码)_股票公式_顶尖财经网
  您的位置:首页 >> 股票公式 >> 大智慧公式 >> 文章正文

最佳买点(源码)

加入日期:2009-6-16 19:06:10
源码如下:

Var1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
Var2:=( MA((CLOSE-Var1)/Var1,1));
买点1: IF(CROSS(Var2,0) AND LOW/REF(HIGH,1)<1.012,20,0);
最佳点:IF(COUNT(Var2>REF(Var2,1),3)=3 AND COUNT(Var2<0,10)=10 AND REF(Var2,3)=LLV(Var2,10),60,0);
买点2: IF(REF(Var2,2)=LLV(Var2,20) AND REF(Var2,2)<0.071 AND REF(Var2,2)<REF(Var2,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),20,0);
MMa:=ema(Var2,12)*0.7;
MMb:=ema(Var2,3);
快到底:if(llv(MMb-MMa,12)>0,0,-30),LINETHICK2,colorlime;
底初选股:if( CROSS(0, llv(MMb-MMa,12)),10,0),LINETHICK0;
DIFF:( EMA(CLOSE,12) - EMA(CLOSE,26))*100,colorddeeaa;
DEA: EMA(DIFF,9),ColorFFFFFF,LINETHICK1;
MACD:= 2*(DIFF-DEA);
DRAWTEXT(DIFF>REF(DIFF,1),DIFF,●),Color0000FF,LINETHICK1;
DRAWTEXT(DIFF<=REF(DIFF,1),DIFF,●),Color00FF00,LINETHICK1;
抄底:if(快到底<0 and cross(macd,0),30,0);
DRAWICON( 抄底>0,35 ,1 );
STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,5,0),colorgreen;
STICKLINE(MACD<ref(MACD,1)and MACD<0,0,MACD,5,0),colorFFCC33;
STICKLINE(MACD>ref(MACD,1)and MACD,0,MACD,5,0),COLORyellow;
STICKLINE(MACD>ref(MACD,1)and MACD>0,0,MACD,5,0),COLORffddaa




以上信息为博客会员、合作方、加盟会员提供,本站不拥有版权,版权归原作者所有,所载文章、数据仅供参考,据此操作,风险自负。
顶 尖 财 经 -- 中 华 顶 尖 网 络 信 息 服 务 中 心
Copyright? 2000 - 2004 www.58188.com