股票公式指标网-网站导航


网站搜索:  

公式指标网 发表于2012/5/11 18:34:37

请老师在通达信指标出现“白柱”及“绿柱”各时做个预警?

问:请老师在通达信指标出现“白柱”及“绿柱”各时做个预警?

0;
0;
VAR1L:=(C+H+O+L)/4;
买入2:=XMA(VAR1L,30)*(1-100/1000);
AAP:=DRAWTEXT(CROSS(C,买入2) OR (L<买入2),LOW*0.95,'B');
C2P:=REF(C,1);
涨停:=IF((C-C2P)*100/C2P>=(10-0.05*100/C2P),1,0);
BBP:=STICKLINE(涨停,OPEN,CLOSE,2,0);
XG1:=COUNT(AAP,1)=1 AND COUNT(BBP,1)=1;
DRAWTEXT(XG1,0,'买错也要买')COLORYELLOW;
STICKLINE(买入2>LOW AND 买入2<HIGH,0,1,3,0),COLORWHITE;
STICKLINE(买入2>MIN(C,O) AND 买入2<MAX(C,O),0,1,3,0),COLORGREEN;
STICKLINE(买入2>HIGH,0,1,3,0),COLORGREEN;
 

{公式在线提供:www.gszx.com.cn}答案:

VAR1L:=(C+H+O+L)/4;
买入2:=XMA(VAR1L,30)*(1-100/1000);
买入2>LOW AND 买入2<HIGH AND 买入2>MIN(C,O) AND 买入2<MAX(C,O) AND 买入2>HIGH;


{自己测试一下}

 

 

 



网站搜索:  



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