{ 通达信短线起航指标公式源码 }
OSC:=100*(CLOSE-MA(CLOSE,20));
MaoSC:=EXPMEMA(OSC,6);
bias:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
BIASMA:=MA(BIAS,6);
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<ref(o,1) and="" f<0,1,0);<br="">
P2:=IF(C<ref(o,2) and="" f<0,1,0);<br="">
LIN:=IF(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,1,0);
E:=-100*(HHV(HIGH,84)-CLOSE)/(HHV(HIGH,84)-LLV(LOW,84));
DJ1:=crOSS(OSC,MAOSC) AND LIN AND REF(EVERY(C<o,3),1) and="" ref((e<-98)*50,1);<br="">
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DJ2:=CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND REF((E<-98)*50,1) AND REF(EVERY(C<o,3),1);
F1:=100*(C-REF(C,1))/REF(C,1);
KX:=IF(C<ref(o,1) and="" f1<0,1,0);<br="">
LH:=IF(C<ref(o,2) and="" f1<0,1,0);<br="">
BE:=KX=0 AND REF(KX,1)=1 AND LH=0 AND REF(LH,1)=1;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100;
SS1:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);
SM01:=MA((2*C+H+L)/4,5);
SM02:=SM01*(200-102)/100;
SM03:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));
SM04:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
SM05:=3*SMA(SM04,3,1)-2*SMA(SMA(SM04,3,1),3,1);
SM06:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
SM07:=SM02REF(SM05,1) AND REF(SM05,1)<ref(sm05,2) and="" sm06<-100<br="">
AND SM06>REF(SM06,1);
BZ:=SS1 AND SM07;
CC1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD1:=DMA(CLOSE,CC1);
EE:=(1-14/100)*DD1;
DI:=BETWEEN(C,EE*0.98,EE*1.01);
WZ:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
WZBP:=CROSS(-27,WZ) AND COUNT(H=L,5)<1;
QSX:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
KJ:=CROSS(-20,QSX);
短线起航:=(BE AND BZ AND DI) OR WZBP OR KJ OR DJ1 OR DJ2 ;
stICKLINE(短线起航,-8,15,1,0),COLORRED,LINETHICK2;
STICKLINE(短线起航,1,6,1,0),COLOR00FFFF,LINETHICK2;
DRAWICON(短线起航,13,13);
DRAWTEXT(短线起航,10,'短线起航'),COLORYELLOW;
标签:MA,起航,20,通达信,源码,CLOSE,100,REF From: https://www.cnblogs.com/zhibiao/p/18062231