趋势线下穿绿色线为风险信号,上穿灰色为买入信号;
攻击线大于趋势线底部红色,反之为青蓝色;
指标源码:
趋势线:LLV(MA(H,13),1),COLORGREEN,LINETHICK1;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
VARC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
攻击线:EMA(CLOSE,5),COLORYELLOW,LINETHICK1;
STICKLINE(((攻击线<趋势线)),攻击线,趋势线,5,0),COLORFFFF00;
STICKLINE(攻击线>趋势线,趋势线,攻击线,5,0),COLORRED;
LC := REF(CLOSE,1);
趋势:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
UP:=HHV(趋势,14);
DN:=MIN(LLV(趋势,14),30);
暴涨:HHV(UP,30);
底部:LLV(DN,30);