以下是通达信小二上菜公式 道道美味 快进快出 以速取胜
通达信小二上菜公式 道道美味 快进快出 以速取胜
源码
TYP:=(HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5)),COLORFF00FF;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
A1:=(MAX(C,O)-MIN(C,O))/REF(C,1)<0.004;
LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
A2:=(H-(MAX(C,O)))/C<0.04;
MA15:=EMA(CLOSE,21);
VAR1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
AA3:=C>REF(C,1);
GH:C<REF(C,1) AND COUNT(AA3,7)=6;