DI:EMA(CLOSE,4)-EMA(CLOSE,13),COLORMAGENTA,LINETHICK2;
D1:EMA(DI,5),COLORGRAY;
D2:EMA(DI,10),COLORGRAY;
D3:EMA(DI,20),COLORGRAY;
D4:EMA(DI,30),COLORGRAY;
D5:EMA(DI,60),COLORGRAY;
D6:EMA(DI,90),COLORGRAY;
D7:EMA(DI,120),COLORGRAY;
D8:EMA(DI,250),COLORGRAY;
AA:STICKLINE(DI>=REF(DI,1) AND D1>=REF(D1,1) AND D2>=REF(D2,1) AND D3>=REF(D3,1) AND
D4>=REF(D4,1) AND D5>=REF(D5,1) AND D6>=REF(D6,1) AND D7>=REF(D7,1) AND
D8>=REF(D8,1) AND C>EMA(C,11) AND DI>-0.8,DI,0,2,0),COLORRED;
0,LINETHICK2;
VAV1:=(CLOSE+HIGH+LOW)/3;
VAV2:=EMA(VAV1,10);
VAV3:=REF(VAV2,1);
绿探底震仓:IF(VAV2,0,DRAWNULL),COLORYELLOW,LINETHICK3;
红买: IF(YEAR<2011 AND VAV2>VAV3,0,DRAWNULL), COLORRED,LINETHICK3;
白卖: IF(YEAR<2011 AND VAV2<VAV3,0,DRAWNULL),COLORFFFF00,LINETHICK3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
DRAWICON(crOSS(DI,0),-0.1,1);