a:=REF(CLOSE,1);b:=CLOSE;方向:=IF(BARPOS=0 and CLOSE>=OPEN,1,IF(BARPOS=0 and CLOSE
a,1,IF(b=a,REF(方向,1),-1)),linethick0;上:=(方向=-1 and REF(方向,1)=1);下拐点:=(方向=1 and REF(方向,1)=-1);t1:=BARSLAST(上拐点);t2:=BARSLAST(下拐点);:=IF(b>REF(a,t1),1,IF(b[0,趋势,REF(趋势,BARSLAST(A(趋势)))),linethick0;STICKLINE(趋势1,a,b,0,0),linethick1,coloryellow;STICKLINE(趋势1=-1,a,b,0,0),linethick1,colorblue;STICKLINE(趋势1=-1 and REF(趋势1,1)=1,a,REF(a,t2),0,1),linethick1,coloryellow;STICKLINE(趋势1=
]