<?xml version="1.0" encoding="UTF-8"?>
<root>
  <Index>
    <IndexItem name="MACD" description="平滑异同平均" panellocation="1">
      <Content>SHORTEMA:=EMA(CLOSE,SHORT);
LONGEMA:=EMA(CLOSE,LONG);
DIF:SHORTEMA-LONGEMA;
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2;</Content>
      <Param>
        <Item name="SHORT" default="12" />
        <Item name="LONG" default="26" />
        <Item name="MID" default="9" />
      </Param>
    </IndexItem>
    <IndexItem name="KDJ" description="经典版KDJ" panellocation="1">
      <Content>LLVN:=LLV(LOW,N);
HIGHN:=HHV(HIGH,N);
RSV:=(CLOSE-LLVN)/(HIGHN-LLVN)*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;</Content>
      <Param>
        <Item name="N" default="9" />
        <Item name="M1" default="3" />
        <Item name="M2" default="3" />
      </Param>
    </IndexItem>
    <IndexItem name="RSI" description="相对强弱指标" panellocation="1">
      <Content>LC:=REF(CLOSE,1);
SMA1:=SMA(MAX(CLOSE-LC,0),N1,1);
SMAABS1:=SMA(ABS(CLOSE-LC),N1,1);
SMA2:=SMA(MAX(CLOSE-LC,0),N2,1);
SMAABS2:=SMA(ABS(CLOSE-LC),N2,1);
SMA3:=SMA(MAX(CLOSE-LC,0),N3,1);
SMAABS3:=SMA(ABS(CLOSE-LC),N3,1);
RSI1:SMA1/SMAABS1*100;
RSI2:SMA2/SMAABS2*100;
RSI3:SMA3/SMAABS3*100;</Content>
      <Param>
        <Item name="N1" default="6" />
        <Item name="N2" default="12" />
        <Item name="N3" default="24" />
      </Param>
    </IndexItem>
    <IndexItem name="BOLL" description="布林线" panellocation="0">
      <Content>STDN:=STD(CLOSE,N);
BOLL:MA(CLOSE,N);
UPPER:BOLL+M*STDN;
LOWER:BOLL-M*STDN;</Content>
      <Param>
        <Item name="N" default="20" />
        <Item name="M" default="2" />
      </Param>
    </IndexItem>
    <IndexItem name="DMI" description="趋向指标" panellocation="1">
      <Content>MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD&gt;0&amp;&amp;HD&gt;LD,HD,0),N);
DMM:=EXPMEMA(IF(LD&gt;0&amp;&amp;LD&gt;HD,LD,0),N);
PDI: DMP*100/MTR;
MDI: DMM*100/MTR;
ADXEXP:=ABS(MDI-PDI)/(MDI+PDI)*100;
ADX:EXPMEMA(ADXEXP,MM);ADXR:EXPMEMA(ADX,MM);</Content>
      <Param>
        <Item name="N" default="14" />
        <Item name="MM" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="BIAS" description="乖离率" panellocation="1">
      <Content>MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
BIAS1 :(CLOSE-MA1)/MA1*100;
BIAS2 :(CLOSE-MA2)/MA2*100;
BIAS3 :(CLOSE-MA3)/MA3*100;</Content>
      <Param>
        <Item name="N1" default="6" />
        <Item name="N2" default="12" />
        <Item name="N3" default="24" />
      </Param>
    </IndexItem>
    <IndexItem name="ASI" description="振动升降指标" panellocation="1">
      <Content>LC:=REF(CLOSE,1);AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA&gt;BB AND AA&gt;CC,AA+BB/2+DD/4,IF(BB&gt;CC AND BB&gt;AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=16*X/R*MAX(AA,BB);
ASI:SUM(SI,0);
MASI:MA(ASI,M);</Content>
      <Param>
        <Item name="M" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="OBV" description="累积能量线" panellocation="1">
      <Content>VA:=IF(CLOSE&gt;REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:MA(OBV,M);</Content>
      <Param>
        <Item name="M" default="30" />
      </Param>
    </IndexItem>
    <IndexItem name="WAD" description="威廉多空力度线" panellocation="1">
      <Content>MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);
MIDB:=IF(CLOSE&lt;REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0);
WAD:SUM(IF(CLOSE&gt;REF(CLOSE,1),MIDA,MIDB),0);
MAWAD:MA(WAD,M);</Content>
      <Param>
        <Item name="M" default="30" />
      </Param>
    </IndexItem>
    <IndexItem name="PSY" description="心理线" panellocation="1">
      <Content>CLOSEREF:=CLOSE&gt;REF(CLOSE,1);
COUNTN:=COUNT(CLOSEREF,N);
PSY:COUNTN/N*100;
PSYMA:MA(PSY,M);</Content>
      <Param>
        <Item name="N" default="12" />
        <Item name="M" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="ATR" description="真实波幅" panellocation="1">
      <Content>MTR:MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:MA(MTR,N);</Content>
      <Param>
        <Item name="N" default="14" />
      </Param>
    </IndexItem>
    <IndexItem name="PVI" description="正成交量" panellocation="1">
      <Content>MULAR0:=MULAR(IF(V&gt;REF(V,1),C/REF(C,1),1),0);
NVI:100*MULAR0;
MANVI:MA(NVI,N);</Content>
      <Param>
        <Item name="N" default="72" />
      </Param>
    </IndexItem>
    <IndexItem name="SAR" description="抛物转向" panellocation="0">
      <Content>SAR1:SAR(P,STEP,MAXP);</Content>
      <Param>
        <Item name="P" default="10" />
        <Item name="STEP" default="2" />
        <Item name="MAXP" default="20" />
      </Param>
    </IndexItem>
    <IndexItem name="TRIX" description="三重指数平均线" panellocation="1">
      <Content>MTR:=EMA(EMA(EMA(CLOSE,N),N),N);
TRIX:(MTR-REF(MTR,1))/REF(MTR,1)*100;
TRMA:MA(TRIX,M);</Content>
      <Param>
        <Item name="N" default="12" />
        <Item name="M" default="9" />
      </Param>
    </IndexItem>
    <IndexItem name="ARBR" description=" 情绪指标" panellocation="1">
      <Content>AR:SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100;
BR:SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100;</Content>
      <Param>
        <Item name="N" default="26" />
      </Param>
    </IndexItem>
    <IndexItem name="VR" description="成交量变异率" panellocation="1">
      <Content>TH:=SUM(IF(CLOSE&gt;REF(CLOSE,1),VOL,0),N);
TL:=SUM(IF(CLOSE&lt;REF(CLOSE,1),VOL,0),N);
TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);
VR:100*(TH*2+TQ)/(TL*2+TQ);</Content>
      <Param>
        <Item name="N" default="26" />
      </Param>
    </IndexItem>
    <IndexItem name="DPO" description="区间震荡线" panellocation="1">
      <Content>DPO:CLOSE-REF(MA(CLOSE,N),N/2+1);
MADPO:MA(DPO,M);</Content>
      <Param>
        <Item name="N" default="20" />
        <Item name="M" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="DMA" description="平均差" panellocation="1">
      <Content>DDD:MA(CLOSE,N1)-MA(CLOSE,N2);
AMA:MA(DDD,M);</Content>
      <Param>
        <Item name="N1" default="10" />
        <Item name="N2" default="50" />
        <Item name="M" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="BBI" description="多空指标" panellocation="1">
      <Content>BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;
A:CLOSE;</Content>
      <Param>
        <Item name="M1" default="3" />
        <Item name="M2" default="6" />
        <Item name="M3" default="12" />
        <Item name="M4" default="24" />
      </Param>
    </IndexItem>
    <IndexItem name="MTM" description="动量线" panellocation="1">
      <Content>MTM:CLOSE-REF(CLOSE,N);
MAMTM:MA(MTM,M);</Content>
      <Param>
        <Item name="N" default="12" />
        <Item name="M" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="MA" description="均线" panellocation="0">
      <Content>MA5:MA(CLOSE, M1);
MA10:MA(CLOSE, M2);
MA20:MA(CLOSE, M3);
MA30:MA(CLOSE, M4);
MA60:MA(CLOSE, M5);
MA120:MA(CLOSE, M6);</Content>
      <Param>
        <Item name="M1" default="5" />
        <Item name="M2" default="10" />
        <Item name="M3" default="20" />
        <Item name="M4" default="30" />
        <Item name="M5" default="60" />
        <Item name="M6" default="120" />
      </Param>
    </IndexItem>
    <IndexItem name="WR" description="威廉指标" panellocation="1">
      <Content>WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));
WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));</Content>
      <Param>
        <Item name="N" default="10" />
        <Item name="N1" default="6" />
      </Param>
    </IndexItem>
	<IndexItem name="DKX" description="多空线" readonly="false" panellocation="0">
      <Content>MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:MA(DKX,M);</Content>
      <Param>
        <Item name="M" default="10" />
      </Param>
    </IndexItem>
    <IndexItem name="ENE" description="轨道线" readonly="false" panellocation="0">
      <Content>UPPER:(1+M1/100)*MA(CLOSE,N);
LOWER:(1-M2/100)*MA(CLOSE,N);
ENE:(UPPER+LOWER)/2;</Content>
      <Param>
        <Item name="N" default="25" />
        <Item name="M1" default="6" />
        <Item name="M2" default="6" />
      </Param>
    </IndexItem>
    <IndexItem name="EXPMA" description="指数平均线" readonly="false" panellocation="0">
      <Content>EXP1:EMA(CLOSE,M1);
EXP2:EMA(CLOSE,M2);</Content>
      <Param>
        <Item name="M1" default="12" />
        <Item name="M2" default="50" />
      </Param>
    </IndexItem>
  </Index>
</root>