%>
a:=(3*h+l+o+2*c)/7;
MA5:=(MA(a,1)+MA(a,2)+MA(a,4)+MA(a,8))/4;
MA45:=(MA(a,12)+MA(a,24)+MA(a,48)+MA(a,96))/4;
偏离度:=(ma5-ma45)/ma45*100;
创新高:=h=hhv(h,3) and c>=ref(c,1)*1;
ema13:ema(c,13),colorwhite,linethick1;
ema34:ema(c,34),coloryellow,linethick1;
ema55:ema(c,55),colorff00ff,linethick1;
ema120:ema(c,117),colorffcc66,linethick2;
ls1:=ABS((ema13-ema34)/ema13 and (ema13-ema55)/ema13 and (ema13-ema120)/ema13 and (ema55-ema34)/ema34 and (ema120-ema34)/ema34 and (ema55-ema120)/ema34)*100<2;
ls2:=CROSS(ema13,ema34) or CROSS(ema13,ema55) or CROSS(ema13,ema120);
ls3:=CROSS(ema34,ema55) or CROSS(ema34,ema120);
ls4:=CROSS(ema55,ema120) ;
ls5:=ls2 or ls3 or ls4;
ls6:=ema13>ref(ema13,1);
ls7:=c>ref(c,1)and c/ref(c,1)*100>3 ;
ls9:=ema120>ref(ema120,1);
粘合向上2:=if(ls1 and ls5 and ls6 and ls7 and ls9 and 创新高=1,1,0);
粘合向上:=if(ls1 and ls5 and ls6 and ls7 and ls9 and 偏离度<2.5 ,1,0);
drawtext(粘合向上2=1,l-0.05,'★'),COLORWHITE;
drawtext(粘合向上=1,l-0.05,'◆'),coloryellow;
VAR2C:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5);
VAR2F:=CROSS(VAR2C,5) ;
DRAWICON(VAR2F,LOW-LOW*1/100,1);
DRAWICON(VAR2F and CLOSE>ema120,LOW,1);
DRAWTEXT(VAR2F and CLOSE<ema120,LOW,'秘密买点'), COLORYELLOW ;
DRAWTEXT(VAR2F and CLOSE>ema120,LOW,'强势买点'), ,COLORRED ;
{股票教程网-股票公式网站 www.gwgz.net}
VAR3aa:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4aa:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3aa>0),91,0);
DRAWTEXT(FILTER((VAR4aa>90),34),(LOW)*(0.92),'◆'),ALIGN1,Colorcyan;
var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
var2:=REF(var1,1);
var3:=SMA(MAX(var1-var2,0),10,1)/SMA(ABS(var1-var2),10,1)*100;
HY3:=IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,(LOW)*(0.9),' ▲'),ALIGN1,COLORgreen;
{股票教程网-http://bkqg.net承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}