编写要求:
要求:如果下面指标出现标示★的能够跳出预警,谢谢各位班长帮忙! TYP := (HIGH + LOW + CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); 买入线:=IF(CROSS(CCI,-160),100,0); DRAWTEXT(买入线,L,'←CCI底'),COLOR0099FF ; 买出线:=IF(CROSS(CCI,200),100,0); DRAWTEXT(买出线,H,'←CCI顶'),coloryellow ; Var3:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04; Var4:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; Var5:=Var3 AND Var4; DRAWTEXT(Var5,LOW,'★ '),coloryellow ; 极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,50,0),colorwhite,LINETHICK0; DRAWTEXT(极品底=50,LOW,'★ ');
解答:
?VAR3:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR4:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!