DOTLINEVAR4:=EMA(LOW,3);
VAR5:=EMA(LOW,10);
VAR6:=EMA(LOW,20);
VAR7:=EMA(LOW,30);
VAR8:=EMA((VAR5 + VAR6 + VAR7) * 0.28,18);
VAR9:=EMA(HIGH,10);
VAR10:=EMA(HIGH,20);
VAR11:=EMA(HIGH,30);
VAR12:=EMA((VAR9 + VAR10 + VAR11) * 0.382,18);
POWER:REF(EMA((2 * CLOSE + HIGH + LOW + OPEN)/5,5),1),COLORYELLOW;
VAR13:=EMA((VAR9 + VAR10 + VAR11) * 0.382,10);
VAR14:=EMA((VAR5 + VAR6 + VAR7) * 0.28,10);
LIFE:(VAR13 + VAR14)/2,COLORMAGENTA;
BU:=crOSS(POWER,LIFE);
STICKLINE(BU,OPEN,CLOSE,3.2,0),COLORYELLOW;
VIVIAN:DRAWICON(CROSS(POWER,LIFE),POWER,5);
FF:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,FF);
上:(1+7/100)*DD,DOTLINE,COLORMAGENTA;
下:(1-7/100)*DD,DOTLINE,COLORGREEN;
中:(上+下)/2,DOTLINE,COLORMAGENTA;
{ _最新股票指标公式}
DRAWTEXT("rsi.RSI1">85,H*1.01,'接近天宫'),COLORYELLOW;
DRAWTEXT("RSI.RSI1"<20,L*1.01,'依依不舍'),COLORRED;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
YQ:=EVERY(CCI<-100,4) AND CCI>REF(CCI,4) AND C<REF(O,4) AND CCI>-120;
DRAWTEXT(YQ,L*1.01,'VV仙女升天'),COLOR0099FF;