(来源:文华财经)
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,3,0),COLOR880000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,2.6,0),COLOR990000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,2.4,0),COLORAA0000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLORBB0000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,2.0,0),COLORCC0000;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.8,0),COLORDD0000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,1.5,0),COLOREE0000;
STICKLINE1((VAR2>VAR3),CLOSE,OPEN,1,0),COLORFF0000;
STICKLINE1((VAR2>VAR3),LOW,HIGH,0.0,0),COLORFF0000;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,3,0),COLOR008888;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,2.6,0),COLOR009999;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,2.4,0),COLOR00AAAA;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,2,2),COLOR00BBBB;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,2.0,0),COLOR00CCCC;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,1.8,0),COLOR00DDDD;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,1.5,0),COLOR00EEEE;
STICKLINE1((VAR3>VAR2),CLOSE,OPEN,1,0),COLOR00FFFF;
STICKLINE1((VAR3>VAR2),LOW,HIGH,0.0,0),COLOR00FFFF;
STICKLINE1((OPEN>CLOSE),CLOSE,OPEN,0,0),COLOR00FFFF;
STICKLINE1((OPEN<CLOSE),CLOSE,OPEN,0,0),COLORRED;
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
DRAWICON(C4,LOW-0.2,4),VALIGN0;
DRAWTEXT(C4,LOW-0.2,'B'),COLORYELLOW,ALIGN2,VALIGN0;
DRAWICON(C5,HIGH+0.2,5);
DRAWTEXT(C5,HIGH+0.2,'S'),COLORGREEN,ALIGN2;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),L,'小心变盘'),COLORFFFFFF,VALIGN0;
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;