编写要求:
{MA5:MA(C,5),COLORYELLOW; MA10:MA(C,10),COLORFF00FF; MA15:MA(C,15),COLOR00FF00; MA30:MA(C,30),COLORFFCCCC;} R1:=MA(CLOSE,1); R2:=MA(CLOSE,3); R3:=(MA(R2,1)*1); R4:=(MA(R2,3)*1); DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B; X1:=(C+L+H)/3; A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN; 双线持币:HHV(MA(HIGH,(3)),2),COLOR00FF00; 单线持股:LLV(MA(HIGH,(3)),1),COLOR0000FF; B1:=REF(C,1);B2:=REF(C,2); SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(CREF(C,2) AND REF(C,2)>REF(C,1),2,IF(C=1 AND SS=0,B1,C,3,0),COLORRED; STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,3,0),COLORFFCC66; STICKLINE(SS=2,B2,C,3,0),COLORRED; STICKLINE(SS=-2,B2,C,3,0),COLORFFCC66; STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,3,0),COLORRED; STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,3,0),COLORFFCC66; AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)=REF(CLOSE,5)),IF(REF(CLOSE,5)REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7)))); DRAWICON(AA AND CLOSE>REF(OPEN,2),0.99*LOW,1); DRAWICON(BB AND CLOSEREF(OPEN,2),LOW*0.98,'三平底翻红'),COLORYELLOW; DRAWTEXT(BB AND CLOSELOW+0.04,4,0); VAR110:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR120:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR130:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR140:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR150:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR160:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR170:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR180:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR190:=EMA(CLOSE,2)-EMA(CLOSE,150); 买1:=VAR100; 买2:=(VAR110+VAR130+VAR150+VAR170); 卖1:=(VAR120+VAR140+VAR160+VAR180); DRAWTEXT(买1>0 OR 买2>0,LOW*0.95,'←买入'),COLORRED; DRAWTEXT(卖1>0,HIGH*1.05,'←卖出'),COLORGREEN; 当出现三平底翻红的时候选出来
解答:
?AA:=C>REF(C,1) AND REF(C,1)>REF(C,2) AND REF(C,1)=REF(C,5)),IF(REF(C,5)
AA AND C>REF(O,2);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!