当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:宝塔线加上SAR(同花顺公式 副图 源码 测试图)
软件名称:[B]宝塔线加上SAR(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-05-17 00:09:51
软件简介:
宝塔线加上SAR
VAR1:=SAR(10,2,20);
S:IF(VAR1>C,VAR1,DRAWNULL),colorgreen,CIRCLEDOT;
X:IF(VAR1<C,VAR1,DRAWNULL),colorred,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,LINETHICK4;
MC:=IF(REF(SS,1)>0 OR REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));
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;
zhuidi=LLV(MC,14);
动态底部线:zhuidi+0.01,colorliblue;
TNT=HHV(MC,14);
动态顶部线:TNT+0.01,coloryellow;//colorgreen;
ZHONG=(zhuidi + TNT )/2;
//动态中线:ZHONG+0.01,coloryellow;
VAR11:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
多方:=SMA(VAR3,13,8);
空方:=SMA(VAR11,21,8);
a:=LLV(LOW,240);
年最大收益:=100*(CLOSE-a)/a;
a1:=HHV(HIGH,240);
年最大亏损:=100*(a1-CLOSE)/CLOSE;
地府&:年最大亏损/(年最大亏损+年最大收益)*100,colormagenta,LINETHICK1,NODRAW;
短底&:空方/(多方+空方)*100,colormagenta,LINETHICK1,,NODRAW;//colorred
天庭&:年最大收益/(年最大亏损+年最大收益)*100,coloryellow,LINETHICK1,NODRAW;
短顶&:多方/(多方+空方)*100,coloryellow,LINETHICK1,NODRAW;//colorgreen
[url=http://www.70822.com/soft/sort013/sort036/down-155890.html]宝塔线加上SAR(同花顺公式 副图 源码 测试图)[/url]