
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
短期趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK1;
长期趋势:EMA(Q3, 3),COLORRED,LINETHICK1;
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
DRAWTEXT_FIX(1,0.980,0,1,
'公众号:爱指标源码,应有尽有'),COLOR666666;
中期线:D+100,COLORMAGENTA,LINETHICK;
警戒线:22.5,DOTLINE,COLORGREEN;
分水岭:47.5,COLORYELLOW;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
DRAWTEXT_FIX(C>O,0.01,0.01,0,'公众号:爱指标源码,应有尽有'),COLORYELLOW;
DRAWTEXT(CROSS(长期趋势, 短期趋势) AND REF(短期趋势,1)>80, REF(短期趋势,3), '逢高派发'), COLOR00FF00,LINETHICK1;
逢低关注: DRAWTEXT(REF(CROSS(长期趋势,短期趋势),82) AND 长期趋势>1.3*短期趋势,短期趋势,'关注'), COLOR00FFFF, LINETHICK1;
抄底: DRAWTEXT(REF(CROSS(短期趋势,长期趋势),1) AND 短期趋势>1.3*长期趋势,长期趋势,'抄底'),COLORYELLOW,LINETHICK1;