回归线:EMA(SLOPE(C,10)*20+C,42),LINETHICK2,COLORYELLOW;
H3HH:=HHV(H,3);
H3H:=HHV(C,2);
L3L:=LLV(L,2);
HLZ:=(H3H+L3L)/2;
B:=C H3H AND C
STICKLINE(B,HLZ*1.002,HLZ*0.998,10,1),COLORYELLOW;
STICKLINE(B AND C 回归线,HLZ*1.002,HLZ*0.998,10,1),COLORGREEN;
IF(回归线 =REF(回归线,1),回归线,DRAWNULL),LINETHICK3,COLORGREEN;
HH:=HHV(H,20);
LL:=LLV(L,20);
上涨:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW;
下跌:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW;
STICKLINE(下跌=0,HH*0.998,HH,100,0),COLORGREEN;
STICKLINE(上涨=0,LL*0.998,LL,100,0),COLORRED;