编写要求:
请老师把出现红箭头跟\N进,做个预警 N:=150; BU:=BARSLAST((CLOSE = HHV(CLOSE,N))); SE:=BARSLAST((CLOSE = LLV(CLOSE,N))); KK1:=SE; KK2:=BU; LM1:=SE; LM2:=BU; OK:=((KK1 > KK2) AND (LM1 > LM2)); OK1:=((KK1 > KK2) AND (LM1 < LM2)); NOK:=((KK2 > KK1) AND (LM2 > LM1)); NOK1:=((KK2 > KK1) AND (LM2 < LM1)); STICKLINE(OK1,CLOSE,OPEN,8,0),COLORFFFF00; STICKLINE(OK1,HIGH,LOW,0,0),COLORFFFF00; STICKLINE(OK,CLOSE,OPEN,8,0),COLORRED; STICKLINE(OK,HIGH,LOW,0,0),COLORRED; STICKLINE(NOK,CLOSE,OPEN,8,0),COLORFFFF00; STICKLINE(NOK,HIGH,LOW,0,0),COLORFFFF00; STICKLINE(NOK1,CLOSE,OPEN,8,0),COLORRED; STICKLINE(NOK1,HIGH,LOW,0,0),COLORRED; DRAWICON(CROSS(KK1,KK2),(OPEN * 0.9999),1); DRAWICON(CROSS(KK2,KK1),(OPEN * 1.0009),2); DRAWTEXT(CROSS(KK1,KK2),(OPEN * 0.99),'跟\N进'),COLORRED;
解答:
?BU:=BARSLAST((CLOSE = HHV(CLOSE,150)));
SE:=BARSLAST((CLOSE = LLV(CLOSE,150)));
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!