编写要求:
卖出线:=98; 阶段卖:=96; 趋势:=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); 底部:=10; 买入警戒:STICKLINE(趋势<=10,HIGH,LOW,0.5,0),COLOR00FF00; STICKLINE(趋势<=10,OPEN,CLOSE,5,1),COLOR00FF00; 买入信号:DRAWICON(CROSS(趋势,底部),LOW,8); 卖出警戒:STICKLINE(趋势>=阶段卖,HIGH,LOW,0.5,0),COLORBLUE; STICKLINE(趋势>=阶段卖,OPEN,CLOSE,6,1),LINETHICK2,COLORBLUE; 卖出:DRAWICON(CROSS(卖出线,趋势),HIGH,9); MA(CLOSE,5); MA(CLOSE,12); DRAWICON(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.035,1); DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.02,'卖吧'); J:MA(CLOSE,20)+2*STD(CLOSE,20); Y:MA(CLOSE,20)-2*STD(CLOSE,20); DRAWICON(CROSS((REF(HIGH,1)+REF(LOW,1))/2,J),H*1.035,4); DRAWICON(CROSS(Y,(REF(HIGH,1)+REF(LOW,1))/2),L/1.035,5);
解答:
?趋势:=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);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!