以下是通达信把大底坑画的清清楚楚指标公式(无源码的请下载附件导入)
VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
好公式1:=(HIGH+LOW+CLOSE*2)/4*VARTIME;
好公式3:=EMA(好公式1,10)*VARTIME;
好公式4:=STD(好公式1,10)*VARTIME;
好公式5:=(好公式1-好公式3)*100/好公式4*VARTIME;
VAR12:=EMA(好公式5,5)*VARTIME;
VAR13:=EMA(VAR12,10)+100/2-5*VARTIME;
生命线:EMA(VAR13,2), coloryellow;
STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),colorred;
STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;
STICKLINE(VAR12>0,VAR13,8,0),colorred;
STICKLINE(VAR12<-100,VAR13,5,5),colorwhite;
STICKLINE(VAR12<-150,VAR13,5,5), colorred;
533400879.png
|