编写要求:
要求是黄金买点等于5的选股. LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 卖点:CROSS(85,RSI1)*10,COLOR00FF00,LINETHICK2; 卖:IF(卖点,5,0),STICK,COLORGREEN,LINETHICK4; 洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; 量1:=EMA(洗钱A,3); 量2:=EMA(洗钱A,5); 量3:=EMA(洗钱A,7); STICKLINE(量1>量2,量3,量1,3,1),COLORRED; STICKLINE(量1<量2,量3,量1,2,0),COLORCYAN; T1:=量2>量3 AND 量1REF(量1,1); STICKLINE(T1,量1,量3,2,0),COLORYELLOW; STICKLINE(T2,量1,量3,3,1),COLORFF00FF; 洗钱B:=SMA(洗钱A,13,1); 分水岭:SMA(洗钱B,2.5,1.5),LINETHICK2,COLORWHITE; 牛线:3*洗钱B-2*分水岭,LINETHICK2,COLORFF00FF ; 熊线:4*分水岭-3*洗钱B,LINETHICK2,COLORFF6633; TT:=CROSS(分水岭 ,熊线); TY:=CROSS(牛线 ,分水岭); 黄金买点:IF((TT AND TY),5,0),coloryellow,LINETHICK2; AA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1); GG:=ALL(AA>=-0.03,5); SS:=ALL(AA<=0.03,5); QQ:=IF((GG AND SS),1,0); 暴涨买点:IF((黄金买点 AND QQ),10,0),colorred,LINETHICK4; VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,38); VAR6:=HHV(VAR4,38); VAR7:=IF(LLV(LOW,90),1,0); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; STICKLINE(VAR8,0,VAR8,10,15),color000999; 主力入货:(VAR8),color000999;
解答:
?洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
洗钱B:=SMA(洗钱A,13,1);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!