同花顺生命拄副图源码
-
相关简介:生命线与柱型图的结合. VARTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=07,0,1); VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0); QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME; QW3:=EMA(QW1,10)*VARTIME; QW4:=STD(QW1,10)*VARTIME; QW5:=(QW1-QW3)*100/QW4*VARTIME; VAR12:=EMA(QW5
-
文章来源:股海网作者:股海网发布时间:2017-11-30浏览次数:
生命线与柱型图的结合.
VARTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
VARDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
QW1:=(HIGH+LOW+CLOSE*2)/4*VARTIME;
QW3:=EMA(QW1,10)*VARTIME;
QW4:=STD(QW1,10)*VARTIME;
QW5:=(QW1-QW3)*100/QW4*VARTIME;
VAR12:=EMA(QW5,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;