一直在寻觅宝塔线三平底翻红和三平顶翻绿选股,受论坛上股友的指标启发,终算弄了一个,勉强凑合,有些地方还不尽人意,希望高手帮忙优化完善。谢谢! 指标源码:
{宝塔线选股} AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7)))); BB:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7)))); fh:=AA AND CLOSE>REF(OPEN,2); fl:=BB AND CLOSE<REF(CLOSE,2); 翻红:IF(fh,50,0),colorred; 翻绿:IF(fl,50,100),colorgreen; {点击看本软件截图: 58股票 公式网 http://www. 58gu. com 整理} |