通达信指标——宝塔线加SAR(副图)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

V AR1:=SAR(10,2,20);

S:IF(V AR1> C,V AR1,DRAWNULL),COLORRED,CIRCLEDOT;

X:IF(VAR1< C,V AR1,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;

相关文档
最新文档