{VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4; VAR3:=EMA(VAR2,13); VAR4:=LLV(LOW,34); VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3); VAR5>REF(VAR5,1);} Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; Q3:=SMA(Q2, 9, 1); Q4:=SMA(Q3, 3, 1); 長(zhǎng)趨勢(shì):3*Q3-2*Q4,colorwhite,LINETHICK2; 趨勢(shì)線:EMA(Q3, 3),colorred,LINETHICK2; DRAWTEXT(CROSS(趨勢(shì)線, 長(zhǎng)趨勢(shì)) AND REF(長(zhǎng)趨勢(shì),1)>80, REF(長(zhǎng)趨勢(shì),3), '頂'),colorred,LINETHICK5; 逢低買: DRAWTEXT(REF(CROSS(趨勢(shì)線,長(zhǎng)趨勢(shì)),82) AND 趨勢(shì)線>1.3*長(zhǎng)趨勢(shì),長(zhǎng)趨勢(shì),'逢低買'),LINETHICK1; 買: DRAWTEXT(REF(CROSS(長(zhǎng)趨勢(shì),趨勢(shì)線),1) AND 長(zhǎng)趨勢(shì)>1.3*趨勢(shì)線,趨勢(shì)線,'買'),colorred,LINETHICK1; VAR3:=PEAKBARS(3,15,1)<10; VAR5:=IF(VAR3=1,2,0); 頂:= IF(VAR5=2,2,0); 頂A:IF(頂>REF(頂,1),50,0),colorgreen; DRAWTEXT(頂A=50,45,'快逃'),COLOR00FF00; 金叉: CROSS(長(zhǎng)趨勢(shì),趨勢(shì)線); DRAWTEXT(金叉,趨勢(shì)線,'★'),colorred;
|
|