大智慧布林+宝塔线主图指标公式

[复制链接]
查看160 | 回复0 | 2021-8-21 13:47:27 | 显示全部楼层 |阅读模式

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(C<REF(C,1)
AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2)
AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2)
AND REF(C,2)<REF(C,1),-2,0))));
{www.gupang.com 股旁网_大智慧股票指标公式}
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;

202108211233.jpg

202108211233.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则