DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);
多空力度: (VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
短期趋势: MA(多空力度,1);
中期趋势: MA(短期趋势,3);
DRAWTEXT(CROSS(中期趋势, 短期趋势) AND REF(短期趋势,1)>1, REF(短期趋势,3), '▼逢高派发'), COLOR00FF00,LINETHICK5;
▲逢低买入: DRAWTEXT(REF(CROSS(中期趋势,短期趋势),1) AND 中期趋势>1.8*短期趋势,短期趋势,'▲逢低买入'), COLOR00FFFF, LINETHICK1;
▲低买: DRAWTEXT(REF(CROSS(短期趋势,中期趋势),1) AND 短期趋势>1.3*中期趋势,中期趋势,'▲低买'),colorblue,LINETHICK1;
VAR3:=PEAKBARS(3,5,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),1,0),colorgreen, LINETHICK2;
DRAWTEXT(顶A=1,0.8,'顶 部'),COLOR00FF00;