通达信软件里面指标被加密。这个码在网上找的
sar指标,也叫抛物线指标,基本的分析指标源码:
VAR1:=SAR(10,2,20);
S:IF(VAR1>C,VAR1,DRAWNULL),COLORRED,CIRCLEDOT;
X:IF(VAR1
SS:=IF(C>REF(C,1)ANDREF(C,1)>=REF(C,2),1,IF(CREF(C,2)ANDREF(C,2)>REF(C,1),2,IF(CSM:=IF(REF(SS,1)>0ORREF(SS,1)<0,REF(SS,1),IF(REF(SS,2)>0ORREF(SS,2)<0,REF(SS,2),IF(REF(SS,3)>0ORREF(SS,3)<0,REF(SS,3),IF(REF(SS,4)>0ORREF(SS,4)<0,REF(SS,4),IF(REF(SS,5)>0ORREF(SS,5)<0,REF(SS,5),IF(REF(SS,6)>0ORREF(SS,6)<0,REF(SS,6),IF(REF(SS,7)>0ORREF(SS,7)<0,REF(SS,7),0)))))));
MC:IF(REF(SS,1)>0ORREF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
STICKLINE(SS=1ORSM>=1ANDSS=0,B1,C,0.8,1),COLORRED;
STICKLINE(SS=-1ORSM<=-1ANDSS=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=-1ORSS=-2)ANDSM>0,B2,B1,0.8,1),COLORRED;
STICKLINE((SS=1ORSS=2)ANDSM<0,B2,B1,0.8,0),COLORFF9000;
(来源:文华财经)