Input:N1(7,1,30);
VAR0:SMA(MAX(C-REF(C,1),0),N1,1)/SMA(ABS(C-REF(C,1)),N1,1)*100,COLORYELLOW;
VAR1:HHV(VAR0,N1),COLORGREEN;
VAR2:LLV(VAR0,N1),COLORRED;
FILLRGN(VAR0,VAR1,VAR0
stickline(VAR2=REF(VAR2,1) AND REF(VAR2,1)
stickline(VAR1=REF(VAR1,1) AND REF(VAR1,1)>REF(VAR1,2),VAR2,0,8,0),colorgreen;
RSV1:=SMA(VAR1,7,1);
RSV2:=SMA(VAR2,7,1);
STICKLINE(C>REF(C,1),RSV1,RSV2,1,0),COLORYELLOW;
STICKLINE(C
STICKLINE(C=REF(C,1),RSV1,RSV2,1,0),COLORMAGENTA;
加油站:BACKSET(L/REF(L,5)>=1.15,5) AND COUNT(BACKSET(L/REF(L,5)>=1.15,5),5)=1;
DRAWICON(加油站=1,VAR1+(VAR1-VAR2)/2,15);