编写要求:
VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50; VAR2:=EMA(VAR1,9); VAR3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; VAR5:=SMA(VAR4,13,8); 走势:CEILING(SMA(VAR5,13,8)); VAR6:=SMA(VAR3,21,8); 买观注: STICKLINE(走势-VAR6<-65,0,5,15,1); 买进:=LONGCROSS(VAR1,VAR2*1.05,15) AND VAR1<40; 卖观注: STICKLINE(走势-VAR6>85,95,90,15,1); AA:=LONGCROSS(VAR2,VAR1*0.95,7) AND VAR1>0; 卖出:STICKLINE(LONGCROSS(VAR2,VAR1*0.95,7) AND VAR1>0,100,80,6,0); DRAWICON(AA>0,80,2); 90, POINTDOT; 0, POINTDOT; 45, POINTDOT,COLORMAGENTA; 排序:IF(买进>0,20,0) STICK,COLORCYAN; DRAWICON(排序>0,20,1 );
解答:
?VAR3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;?
VAR4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!