以下是同花顺布林宝塔线副图指标

同花顺布林宝塔线副图指标

源码

//布林+宝塔线MID :MA(CLOSE,20);UPPER: MID + 2*STD(CLOSE,20);LOWER: MID – 2*STD(CLOSE,20);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(CAND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2)AND REF(C,2)>REF(C,1),2,IF(CAND REF(C,2)SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,7,1),colorred;STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,7,0),colorgreen;STICKLINE(SS=2,B2,C,7,1),colorred;STICKLINE(SS=-2,B2,C,7,0),colorgreen;STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,7,1),colorred;STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,7,0),colorgreen;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。