MA5:MA(C,5);
MA10:MA(C,10);
VAR1:=MA(C,5);
VAR2:=MA(C,10);
VAR3:=LAST(VAR1>VAR2);
VAR4:=LAST(VAR1<VAR2);
VAR5:=LAST(C<VAR1)=2;
VAR6:=LAST(C>VAR1)=2;
VAR7:=COUNT(VAR5 AND VAR3>1,VAR3)>=1 AND VAR5 AND VAR3>1;
VAR8:=COUNT(VAR6 AND VAR4>1,VAR4)>=1 AND VAR6 AND VAR4>1;
STICKLINE(VAR7,H,L,0,0),COLORYELLOW;
STICKLINE(VAR7,C,O,10,0),COLORYELLOW;
STICKLINE(VAR8,H,L,0,0),COLORRED;
STICKLINE(VAR8,C,O,10,0),COLORRED;
(来源:文华财经)