编写要求:
是否有高手把指标出现“低吸”时预警。 多方趋势:((7)*(SMA(((CLOSE-LLV (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1),2,1)),COLOR0000FF; 空方趋势:(EMA(MA(多方趋势,5),7)),COLORF0F000; STICKLINE((多方趋势>78) AND (多方趋势>=空方趋势),78,多方趋势,5,1),COLOR00FF00; STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,3,0),COLOR0000FF; STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,3,0),COLORF0F000; STICKLINE((空方趋势<14) AND (空方趋势>多方趋势),多方趋势,20,3,0),COLOR00FFFF; TJ:=FILTER((空方趋势<14) AND (空方趋势>多方趋势),6); DRAWTEXT(TJ,40,'低吸'),COLORFFFFFF; 探测金矿:(空方趋势<12) AND (空方趋势<=多方趋势),COLOR00FFFF; 选金股:CROSS(多方趋势,空方趋势) AND (空方趋势<22),COLOR0000FF; DRAWTEXT(CROSS(多方趋势,空方趋势) AND (空方趋势<22),30,'黑马'),COLOR00FFFF; 中间线:50,COLORFFFFFF,POINTDOT;
解答:
?多方趋势:=((7)*(SMA(((CLOSE-LLV (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1),2,1));
空方趋势:=(EMA(MA(多方趋势,5),7));
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!