beyond202104 发表于 2023-8-28 16:46:53

通达信宝塔线+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;   


zii_jaaaane 发表于 2023-8-28 23:27:16

好人一生平安!

缇罗沸 发表于 2023-8-31 08:54:51

不错不错,楼主您辛苦了。。。

123457025 发表于 2023-11-21 00:45:56

多谢分享下载收藏了

天地有情人茁 发表于 2023-12-17 17:35:34

谢谢楼主,共同发展

三叉路来的锌 发表于 2023-12-19 05:04:35

我都想要,怎么办?

废话1 发表于 2024-1-26 16:55:01

thanks for the sharing!

柠檬影子劫 发表于 2024-3-21 03:25:07

谢谢了呀,辛苦了呀,支持呀!
页: [1]
查看完整版本: 通达信宝塔线+SAR副图指标源码