通达信黄金趋势源码

2017-03-31 09:54:00来源:本站整理浏览:256

通达信黄金趋势源码

X_1:=IF(DATE<=1151231,1,1);
X_2:=IF(DATE<=1151231,1,1);
涨停:REF(CLOSE,1)*1.1*X_1,NODRAW,COLORRED;
跌停:REF(CLOSE,1)*0.9*X_1,NODRAW,COLORGREEN;
X_3:=REF((HIGH+LOW+CLOSE)/3,1)*X_1;
要塞:X_3*X_1,NODRAW,COLORMAGENTA;
空头前沿防线:X_2*(2*X_3-REF(LOW,1))*X_1,NODRAW,COLORCYAN;
空头大本营:X_2*(X_3+REF(HIGH,1)-REF(LOW,1))*X_1,NODRAW,COLORGREEN;
空头基地:X_2*(2*X_3+REF(HIGH,1)-2*REF(LOW,1))*X_1,NODRAW,COLORYELLOW;
多头前沿防线:X_2*(2*X_3-REF(HIGH,1))*X_1,NODRAW,COLORRED;
多头大本营:X_2*(X_3+REF(LOW,1)-REF(HIGH,1))*X_1,NODRAW,COLORMAGENTA;
多头根据地:X_2*(2*X_3+REF(LOW,1)-2*REF(HIGH,1))*X_1,NODRAW,COLORWHITE;
黄金趋势:EMA(SLOPE(CLOSE,22)*20+CLOSE,55)*X_1,COLORYELLOW,LINETHICK3;
X_4:=X_2*(CLOSE+0.618*REF(CLOSE,1)+0.382*REF(CLOSE,2)+0.236*REF(CLOSE,3)+0.146*REF(CLOSE,4))/2.382;
X_5:=HHV(CLOSE,60)-LLV(CLOSE,60)*X_1;
X_6:=SMA(MAX(X_4-REF(X_4,1),0),5,1)/SMA(ABS(X_4-REF(X_4,1)),5,1)*X_1;
波段:X_1*(X_4+X_5*(X_6-0.5))*X_1,COLORMAGENTA,LINETHICK2;
ME:EMA(波段,2)*X_1,COLORYELLOW;
升:IF(波段>=ME,波段,DRAWNULL)*X_1,COLORMAGENTA,LINETHICK2;
降:IF(波段<ME,波段,DRAWNULL)*X_1,COLORGREEN,LINETHICK2;



通达信黄金趋势源码

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式