通达信sar指标源码,也叫抛物线指标
sar指标,也叫抛物线指标,此贴也是基本的分析指标,希望给股友一些基本知识的分享,谢谢支持~~
本人亲情奉献,不需要你花一个币,不需要你花一分钱,为了所有没钱的散户们,我希望帮助你们~~
如果觉得我的帮助有用,就给我点赞,谢谢大家~~
很多朋友不知道怎么点赞,其实就是关注我就可以了,同时点击右下角的评分,认为好的,就给一分,一分就够,就是对我的认可,谢谢喜欢的朋友,谢谢关注~~~~
希望真的帮助大家,我的口号是“快乐炒股,天天靠谱”~~
正题如下:
源码:
VAR1:=SAR(10,2,20);
S:IF(VAR1>C,VAR1,DRAWNULL),COLORRED,CIRCLEDOT;
X:IF(VAR1<C,VAR1,DRAWNULL),COLORGREEN,CIRCLEDOT;
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))));
SM:=IF(REF(SS,1)>0 OR REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)>0 OR REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)>0 OR REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)>0 OR REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)>0 OR REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)>0 OR REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)>0 OR REF(SS,7)<0,REF(SS,7),0)))))));
MC:IF(REF(SS,1)>0 OR REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,0.8,1),COLORRED;
STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,0.8,0),COLORFF9000;
STICKLINE(SS=2,B2,C,0.8,1),COLORRED;
STICKLINE(SS=-2,B2,C,0.8,0),COLORFF9000;
STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,0.8,1),COLORRED;
STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,0.8,0),COLORFF9000;
- 上一篇公式:通达信主图BOLL叠加指标,加入了“板块、概念、浮动涨幅换手等”
- 下一篇公式:绝地反击选股预警(选股指标,通用源码)