SJ: (VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
SD: MA(SJ,2);
SK: MA(SJ,1);
VAR3:=CROSS(SK,SD) AND SK
VAR4:=CROSS(SK,0);
VAR5:=CROSS(SK,SD) AND SK
买一: VAR3, STICK;
STICKLINE(VAR3,1,3,0.8,0 ),COLORMAGENTA;
买二: VAR4 OR VAR5, STICK;
STICKLINE(VAR4 OR VAR5,1,3,0.8,0 ),COLORGREEN;
VAR6:=CROSS(SD,SK);
卖出: VAR6, STICK;
{副图二源码:}
{N: 1 20 6}
VAR7:=(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;
VAR8:=(EMA(VAR7,3)+EMA(VAR7,6)+EMA(VAR7,12)+EMA(VAR7,24))/4;
A1: EMA(VAR8,2),NODRAW;
A2: EMA(A1,2),NODRAW;
A3: EMA(A2,2),NODRAW;
A4: EMA(A3,2),NODRAW;
A5: EMA(A4,2),NODRAW;
强弱: 0, CIRCLEDOT;
买进: IF(CROSS(A1,A5),-1,-5);
卖出2: IF(CROSS(A5,A1),1,5);
A6: 3*A1-2*A2;