| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617 |
- <?xml version="1.0" encoding="utf-8"?>
- <Namespace xmlns:Formula="http://finance.easychart.net" Name="FML" Version="1.0.0.180">
- <Description />
- <GroupOnly>false</GroupOnly>
- <Namespaces>
- <Namespace Name="趋势指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="true" Name="BBI">
- <Code>(MA(C,N1)+MA(C,N2)+MA(C,N3)+MA(C,N4))/4</Code>
- <Description>BBI=看涨指标的加权的和</Description>
- <DisabledCycle />
- <FullName>看涨看跌指标</FullName>
- <Params>
- <FormulaParam DefaultValue="3" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
- <FormulaParam DefaultValue="24" Description="" MaxValue="100" MinValue="1" Name="N4" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CYS">
- <Code>Var1:=IF(YEAR>=2010 & MONTH>=2,0,1);
- Var2:=VOL*C;
- Var3:=EMA(Var2,13)/EMA(VOL,13);
- CYS: (EMA(CLOSE,P1)-Var3)/Var3*100*Var1;
- ML: EMA(CYS,P2)*Var1;
- LO: 0, POINTDOT;</Code>
- <Description>显示盈利的投资者数量占总数的比例</Description>
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="4" Description="" MaxValue="15" MinValue="1" Name="P1" ParamType="double" />
- <FormulaParam DefaultValue="5" Description="" MaxValue="15" MinValue="1" Name="P2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="DDI">
- <Code>TR:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));
- DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
- DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
- DIZ:=SUM(DMZ,N)/(SUM(DMZ,N)+SUM(DMF,N));
- DIF:=SUM(DMF,N)/(SUM(DMF,N)+SUM(DMZ,N));
- DDI:DIZ-DIF,COLORSTICK;
- ADDI:SMA(DDI,N1,M);
- AD:MA(ADDI,M1);
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>方向差异</FullName>
- <Params>
- <FormulaParam DefaultValue="13" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="30" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
- <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="M1" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="DMA">
- <Code>DDD : (MA(CLOSE,SHORT)-MA(CLOSE,LONG));
- AMA : MA(DDD,M)</Code>
- <Description>以每天的交易计算的移动平均。指标前的数字说明以多少天计算移动平均</Description>
- <DisabledCycle />
- <FullName>日移动平均</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="2" Name="SHORT" ParamType="double" />
- <FormulaParam DefaultValue="50" Description="" MaxValue="300" MinValue="2" Name="LONG" ParamType="double" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="DMI">
- <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
- HD := HIGH-REF(HIGH,1);
- LD := REF(LOW,1)-LOW;
- DMP:= SUM(IF(HD>0 & HD>LD,HD,0),N);
- DMM:= SUM(IF(LD>0 & LD>HD,LD,0),N);
- PDI: DMP*100/TR;
- MDI: DMM*100/TR;
- ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
- ADXR:(ADX+REF(ADX,M))/2
- </Code>
- <Description>方向移动指数在交易范围为价格的突破提供交易信号。指数系统包括5个指标,方向移动指数,正方向指数,负方向指数,平均方向移动,方向移动评分。</Description>
- <DisabledCycle />
- <FullName>方向移动指数</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="EMA4">
- <Code>MA1:EMA(CLOSE,P1);
- MA2:EMA(CLOSE,P2);
- MA3:EMA(CLOSE,P3);
- MA4:EMA(CLOSE,P4)</Code>
- <Description>指数移动平均是将昨天的移动平均和今天的收盘价按比例相加。投资者可以在计算移动平均时在最近的数据放比过去的数据更多的权重。</Description>
- <DisabledCycle />
- <FullName>指数移动平均</FullName>
- <Params>
- <FormulaParam DefaultValue="5" Description="" MaxValue="300" MinValue="1" Name="P1" ParamType="double" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="P2" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="1" Name="P3" ParamType="double" />
- <FormulaParam DefaultValue="60" Description="" MaxValue="300" MinValue="1" Name="P4" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MA4">
- <Code>MA1:MA(CLOSE,P1);
- MA2:MA(CLOSE,P2);
- MA3:MA(CLOSE,P3);
- MA4:MA(CLOSE,P4);</Code>
- <Description>移动平均用来帮助区分未来价格的趋势。随着未来新价格出现而变动的平均价,在分析证券时价格因素会减弱。即使计算一个证券或指数的价格平均值时,每天价格波动的影响将减弱,平均后的数值是计算时间段里价格趋势的有效指标。</Description>
- <DisabledCycle />
- <FullName>移动平均</FullName>
- <Params>
- <FormulaParam DefaultValue="5" Description="" MaxValue="300" MinValue="0" Name="P1" ParamType="double" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="0" Name="P2" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="0" Name="P3" ParamType="double" />
- <FormulaParam DefaultValue="30" Description="" MaxValue="300" MinValue="0" Name="P4" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MACD">
- <Code>DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
- DEA : EMA(DIFF,M);
- MACD : 2*(DIFF-DEA), COLORSTICK;
- </Code>
- <Description>平滑异同移动平均线是将12天的指数移动平均线减去26天的指数移动平均线。9天的指数移动平均线和平滑异同移动平均线的差值作为判断条件。MACD的基本规则是当MACD下降到9天信号线之下卖出证券,MACD上升到9天信号线之上购买证券。投资者有时因为不同的证券和交易策略变化信号线的天数,也可能在计算MACD时用不同的天数。</Description>
- <DisabledCycle />
- <FullName>平滑异同移动平均线</FullName>
- <Params>
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="20" Name="LONG" ParamType="double" />
- <FormulaParam DefaultValue="12" Description="" MaxValue="40" MinValue="5" Name="SHORT" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="60" MinValue="2" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MTM">
- <Code>MTM : CLOSE-REF(CLOSE,N);
- MTMMA : MA(MTM,N1)</Code>
- <Description>动量是现在的价格或其他数值与N个时间段前的差值。用法:上升的指示线说明上升趋势变得更强,下降的指示线说明下降趋势变得更强。动量可用来区分趋势,超买、超卖和差异。</Description>
- <DisabledCycle />
- <FullName>动量</FullName>
- <Params>
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PPO">
- <Code>PPO:(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG))/EMA(CLOSE,LONG)*100;
- EMA(PPO,N);</Code>
- <Description>价格震荡指标是在一个规定的时间段里,以两个或多个移动平均判断价格的动量。</Description>
- <DisabledCycle />
- <FullName>价格震荡指标</FullName>
- <Params>
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="5" Name="LONG" ParamType="double" />
- <FormulaParam DefaultValue="12" Description="" MaxValue="40" MinValue="2" Name="SHORT" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="SAR">
- <Code>SAR(N,STEP,MAXP),CIRCLEDOT</Code>
- <Description>抛物线止损和反转是J Welles Wilder发明的。抛物线止损和反转是一个跟随趋势用来移动止损的指标。这个指标跟随现在的趋势,给出一个参考的止损价,这个价格离原有的趋势足够远,可以避免因为很小的盘整或小的回撤而成交。移动止损价跟着趋势变动,当时间变动,止损价会与价格离得更近,止损价连接成为一条抛物线。当市场价格穿过止损和反转价格时,在市场的另一个方向会开始计算新的止损和反转价格,在一个新的趋势开始时允许价格少量的波动。</Description>
- <DisabledCycle />
- <FullName>止损和反转</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="1" Name="STEP" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="5" Name="MAXP" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="TRIX">
- <Code>TR:= EMA(EMA(EMA(CLOSE,N),N),N);
- TRIX : (TR-REF(TR,1))/REF(TR,1)*100;
- TRMA : MA(TRIX,M);
- </Code>
- <Description>TRIX是说明一个证券的收盘价的三阶指数移动平均线的变化率的百分比的动量指标。用来使投资者在小于或相同的规定时间段里跟随趋势。</Description>
- <DisabledCycle />
- <FullName>TRIX</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="3" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VMACD">
- <Code>DIFF : EMA(VOL,SHORT) - EMA(VOL,LONG);
- DEA : EMA(DIFF,M);
- MACD : DIFF-DEA, ff,COLORSTICK</Code>
- <Description />
- <DisabledCycle />
- <FullName>成交量移动平均异同</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="50" MinValue="1" Name="SHORT" ParamType="double" />
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="20" Name="LONG" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="50" MinValue="30" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ZIG">
- <Code>ZIG(PER),Width2</Code>
- <Description>之子指标是趋势跟踪指标帮助区分趋势是什么,也能作为显著性测试帮助区分什么时候的价格变动说明价格趋势的变动。</Description>
- <DisabledCycle />
- <FullName>之子指标</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="60" MinValue="1" Name="PER" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ADX">
- <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
- HD := HIGH-REF(HIGH,1);
- LD := REF(LOW,1)-LOW;
- DMP:= SUM(IF(HD>0 & HD>LD,HD,0),N);
- DMM:= SUM(IF(LD>0 & LD>HD,LD,0),N);
- PDI: DMP*100/TR;
- @SetName(PDI,'+DI');
- MDI: DMM*100/TR;
- @SetName(MDI,'-DI');
- ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,N),Width2;
- </Code>
- <Description>J. Welles Wilder Jr. 发明了平均趋势指数判断当前趋势的强弱。确认当前市场价格的变动是有趋势还只是往一侧变动很重要。因为一些指标在特定的条件下才可以给出有用的结果。</Description>
- <DisabledCycle />
- <FullName>平均趋势指数</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PERF">
- <Code>(C-C.First)/C.First*100</Code>
- <Description />
- <DisabledCycle />
- <FullName>Performance</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="KDJ">
- <Code>RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:SMA(RSV,M1,1),COLOR#ffffff;
- D:SMA(K,M2,1),COLOR#ffd700;
- J:3*K-2*D,COLOR#8b00ff;</Code>
- <Description>随机指标KDJ是以最高价、最低价及收盘价为基本数据进行计算,得出的K值、D值和J值分别在指标的坐标上形成的一个点,连接无数个这样的点位,就形成一个完整的、能反映价格波动趋势的KDJ指标。
- 它主要是利用价格波动的真实波幅来反映价格走势的强弱和超买超卖现象,在价格尚未上升或下降之前发出买卖信号的一种技术工具。</Description>
- <DisabledCycle />
- <FullName>随机指标</FullName>
- <Params>
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="30" MinValue="2" Name="M1" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="30" MinValue="2" Name="M2" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="动量指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="B3612">
- <Code>B36 : MA(CLOSE,3)-MA(CLOSE,6);
- B612 : MA(CLOSE,6)-MA(CLOSE,12)</Code>
- <Description />
- <DisabledCycle />
- <FullName>Bias3-Bias6 and Bias6-Bias12</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="BIAS">
- <Code>BIAS1 : (CLOSE-MA(CLOSE,L1))/MA(CLOSE,L1)*100;
- BIAS2 : (CLOSE-MA(CLOSE,L2))/MA(CLOSE,L2)*100;
- BIAS3 : (CLOSE-MA(CLOSE,L3))/MA(CLOSE,L3)*100;</Code>
- <Description>指出收盘价和移动平均的差值。</Description>
- <DisabledCycle />
- <FullName>偏差</FullName>
- <Params>
- <FormulaParam DefaultValue="6" Description="" MaxValue="300" MinValue="1" Name="L1" ParamType="double" />
- <FormulaParam DefaultValue="12" Description="" MaxValue="300" MinValue="1" Name="L2" ParamType="double" />
- <FormulaParam DefaultValue="24" Description="" MaxValue="300" MinValue="1" Name="L3" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CCI">
- <Code>TYP := (HIGH + LOW + CLOSE)/3;
- (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N))</Code>
- <Description>商品通道指标测量价格和移动平均的差值。说明市场什么时候超买或超卖,趋势什么时候减弱。这个指标与布林通道相似,但是是以指标线表示,不是超买或超卖的程度。商品通道指标是Donald Lambert发明,出现在他的书中,《商品通道指标:周期趋势的交易工具》。</Description>
- <DisabledCycle />
- <FullName>商品通道指标</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="DBCD">
- <Code>BIAS:=(C-MA(C,N))/MA(C,N);
- DIF:=(BIAS-REF(BIAS,M));
- DBCD:SMA(DIF,T,1);
- MM:MA(DBCD,5)
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>差值异同</FullName>
- <Params>
- <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="16" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
- <FormulaParam DefaultValue="76" Description="" MaxValue="100" MinValue="1" Name="T" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="DPO">
- <Code>C - REF(MA(CLOSE,20),11)</Code>
- <Description>非趋势价格摆动指标比较收盘价和前一交易日的移动平均,去除比移动平均时间长的周期。非趋势价格摆动指标的用处是在更长的周期区分转折点:当非趋势价格摆动指标表明一个很高的穿越,在周期的中间会出现一个向上的反转。当非趋势价格摆动指标表明一个比较低的点,会出现一个向下的反转。</Description>
- <DisabledCycle />
- <FullName>非趋势价格摆动指标</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="FastSTO">
- <Code>K:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- D:MA(K,M);</Code>
- <Description>快速随机指标是在一个阶段里,测量现在的价格相对上一个收盘价的动量。画出指标是在0至100的两条线。数值大于80的线认为是超买,可能出现价格反转。数值小于20的线认为是超卖,也可能出现价格反转。当出现一个很强的趋势,快速随机指标可以在超买或超卖停很久,而价格一直在一个方向变动。在一个较长的价格趋势,快速随机指标没有什么效。快速随机指标是为了比较价格的当前和最近一期的动量,确认哪个阶段动量会减弱或加强。动量的减弱或加强发生在被测量的价格趋势的反转点。然而当价格趋势没有变动时,动量的变动也会发生,所以只是可能价格趋势出现在反转点。</Description>
- <DisabledCycle />
- <FullName>快速随机指标</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="LWR">
- <Code>RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;
- LWR1:SMA(RSV,M1,1);
- LWR2:SMA(LWR1,M2,1)
- </Code>
- <Description>100-Stochastic</Description>
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M1" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ROC">
- <Code>ROC:(CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100;
- ROCMA:MA(ROC,M)
- </Code>
- <Description>价格变化率是动量指标的优化,将价格变动转化为在0附近变动的百分比。指标用在盘整的市场,测量趋势减弱的程度,但是,当和趋势指标一起可以在趋势市场用。盘整市场。第一,须以之前盘整市场的观察,定出超买和超卖的范围。范围应该至少覆盖三分之二的高低值。当价格变化率穿越至超卖范围后回升在超卖范围之外,购买证券。在多方市场出现分歧时,第一个低谷出现在超卖范围下方,购买证券。当价格变化率穿越至超买范围后下降在超买范围之外,卖出证券。在空方市场出现分歧时,第一个高点出现在超买范围下,卖出证券。
- </Description>
- <DisabledCycle />
- <FullName>价格变化率</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="6" Description="" MaxValue="50" MinValue="1" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="RSI">
- <Code>LC := REF(CLOSE,1);
- RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
- </Code>
- <Description>相对强弱指数是Welles Wilder发明。相对强弱指数表明超买或超卖的条件。当市场买卖差异很强,指数会上升,差异很弱,指数会下降。摆动范围是0到100.</Description>
- <DisabledCycle />
- <FullName>相对强弱指数</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SI">
- <Code>LC:=REF(C,1);
- AA:=ABS(H-LC);
- BB:=ABS(L-LC);
- CC:=ABS(H-REF(L,1));
- DD:=ABS(LC-REF(O,1));
- R:=IF(AA>BB & AA>CC,AA+BB/2+DD/4,IF(BB>CC & BB>AA,BB+AA/2+DD/4,CC+DD/4));
- X:=(C-LC+(C-O)/2+LC-REF(O,1));
- SI:16*X/R*MAX(AA,BB)</Code>
- <Description>摆荡指数</Description>
- <DisabledCycle />
- <FullName>摆荡指数</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="SlowSTO">
- <Code>A:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:MA(A,M1);
- D:MA(K,M2)
- </Code>
- <Description>慢性随机指标使随机摆动的曲线更平滑,减少方差和提高指标的准确性。</Description>
- <DisabledCycle />
- <FullName>慢性随机指标</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="2" Name="M1" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="2" Name="M2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SRDM">
- <Code>DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
- DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
- ADMZ:=MA(DMZ,10);
- ADMF:=MA(DMF,10);
- SRDM:IF(ADMZ>ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF));
- ASRDM:SMA(SRDM,N,1);</Code>
- <Description />
- <DisabledCycle />
- <FullName>SRDM</FullName>
- <Params>
- <FormulaParam DefaultValue="30" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VROC">
- <Code>(VOL-REF(VOL,N))/REF(VOL,N)*100</Code>
- <Description>成交量变化率是一个用在成交量的摆动指标,计算方法与价格变化率一样。当成交量增大,成交量变化率更重要,通常在市场的高点、低谷和突破更肯能出现。</Description>
- <DisabledCycle />
- <FullName>成交量变化率</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="300" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VRSI">
- <Code>SMA(MAX(VOL-REF(VOL,1),0),N,1)/SMA(ABS(VOL-REF(VOL,1)),N,1)*100</Code>
- <Description>量相对强弱指标</Description>
- <DisabledCycle />
- <FullName>量相对强弱指标</FullName>
- <Params>
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="WR">
- <Code>-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))</Code>
- <Description>威廉指标是由Larry Williams发明。区分超买、超卖的程度。指标变化范围是0至-100.指标0至-20是超买的范围,指标-70至-100是超卖的范围。作为确认信号,投资者可以等指标穿过-50.
- </Description>
- <DisabledCycle />
- <FullName>威廉指标</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SO">
- <Code>K :=(C-L)/(H-L);
- SK : SMA(K,N1,1);
- SD : SMA(SK,N2,1);</Code>
- <Description>随机摆动指标是由George C. Lane发明。指标提供了当前收盘价与阶段的最高、最低价格的相对位置。收盘价与最高价格越接近,买方力量越大。收盘价与最低价格越接近,卖方力量越大。用法:指标高于80,市场是买方市场。指标低于20,市场是卖方市场。因为这个定义没有提供什么时候买、卖,可以当指标从超买、超卖范围返回时,认为是买、卖指示。在%K和它的移动平均间穿过可以一样认为是买、卖指示。差异也可以认为是一个有用的指示。当指标从超买、超卖范围返回,差异产生,是一个卖、买指示。同时,K39(39期未平滑随机摆动)在试算后被认为是会产生结果的曲线。当K向上穿过50%,收盘价比上周的最高收盘价高,是买信号。当K向下穿过50%,收盘价比上周的最低收盘价低,是卖信号。同时,可以用其它的指标确认,例如OBV可以确认。</Description>
- <DisabledCycle />
- <FullName>随机摆动指标</FullName>
- <Params>
- <FormulaParam DefaultValue="3" Description="" MaxValue="10" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="10" MinValue="1" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MFI">
- <Code>TP :=(High + Low + Close) / 3;
- LTP := REF(TP,1);
- MF :=TP*V;
- PMF := IF(TP>LTP,MF,0);
- NMF := IF(TP<=LTP,MF,0);
- MR :=MA(PMF,N)/MA(NMF,N);
- MFI :100-(100/(1+MR));
- 20,Color#808080,NoValueLabel;
- 80,Color#808080,NoValueLabel;
- FillRGN(MFI>80,MFI,80),Brush#20808000;
- FillRGN(MFI<20,MFI,20),Brush#20800000;
- @SetHLine(20,50,80,100);
- @SetYMinMax(0,100)</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="StochRSI">
- <Code>LC := REF(CLOSE,1);
- RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
- (RSI-LLV(RSI,N))/(HHV(RSI,N)-LLV(RSI,N));</Code>
- <Description>随机相对强弱指数是由Tushard Chande和Stanley Kroll发明。随机相对强弱指数是一个在一段时间里测量相对强弱指标相对变动范围的程度。指数以RSI为基础,用在随机指标的公式里。结果是一个在0至1变动的摆动指标。</Description>
- <DisabledCycle />
- <FullName>随机相对强弱指数</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="EOM">
- <Code>MP:=(H+L)/2;
- MM :=MP-REF(MP,1);
- BR :=V/(H-L)/1000000;
- EOM : MM/BR;
- MA(EOM,N);</Code>
- <Description />
- <DisabledCycle />
- <FullName>Ease of Movement</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="波动性指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="PSY">
- <Code>COUNT(CLOSE>REF(CLOSE,1),N)/N*100</Code>
- <Description>除非股票价格不断上涨,投资者不会愿意以比其他人更高的价格购买股票。除非股票价格不断下跌,投资者不会愿意以比其他人更低的价格卖出股票。在股票高价时购买的投资者在价格回升之前不会卖出。</Description>
- <DisabledCycle />
- <FullName>心理线</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VR">
- <Code>LC:=REF(CLOSE,1);
- SUM(IF(CLOSE>LC,VOL,0),N)/
- SUM(IF(CLOSE<=LC,VOL,0),N)*100
- </Code>
- <Description>成交量变异率是由Jack Schwager的技术分析指标变化来,区分成交量大的天数。将成交量变异率与指标时间段的变动范围相比较,得出在一段交易时间里的突破。</Description>
- <DisabledCycle />
- <FullName>成交量变异率</FullName>
- <Params>
- <FormulaParam DefaultValue="26" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ATR">
- <Code>LC :=REF(CLOSE,1);
- TR := MAX(HIGH-LOW,ABS(LC-HIGH),ABS(LC-LOW));
- ATR : SMA(TR,N,1)</Code>
- <Description>真实波动幅度均值是由J. Welles Wilder发明。指标是为了确认证券的方差。替换一段时间的高、低值范围,因为高、低值范围没有考虑极值。</Description>
- <DisabledCycle />
- <FullName>真实波动幅度均值</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VOLATI">
- <Code>EC := EMA(HIGH-LOW,N);
- (EC-REF(EC,N))/REF(EC,N)*100</Code>
- <Description>Marc Chaikin将每一期的最高、最低值的范围作为方差。</Description>
- <DisabledCycle />
- <FullName>Chaikin方差</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="Aroon">
- <Code>Up:(N-HHVBARS(C,N))/N*100;
- Down:(N-LLVBARS(C,N))/N*100;</Code>
- <Description>Aroon指标包括两条线。Aroon(上升)和Aroon(下降)。在计算中,时间段的数量作为唯一的参数。Aroon(上升)是在时间段开始到最高价出现的时长。如果股票以新的最高价收盘,Aroon(上升)是+100.对于其后的没有出现新的更高的收盘价的时间段,Aroon(上升)将以 (1 / 时间段数量) x 100 下降。</Description>
- <DisabledCycle />
- <FullName>Aroon</FullName>
- <Params>
- <FormulaParam DefaultValue="25" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="HV">
- <Code>LogS :=Log(C/Ref(C,1));
- TLogs :=Sum(LogS,N);
- ALogs :=TLogs/N;
- Delta :=LogS-ALogs;
- SSD :=Sum(Delta*Delta,N);
- HV : Sqrt(SSD/(N-1))*Sqrt(T)</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="21" Description="" MaxValue="10000" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="252" Description="" MaxValue="1000000000" MinValue="0" Name="T" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="价格下册指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="ASI">
- <Code>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>BB & AA>CC,AA+BB/2+DD/4,IF(BB>CC & BB>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)</Code>
- <Description>累积摆动指标是Welles Wilder摆动指标的和。</Description>
- <DisabledCycle />
- <FullName>累积摆动指标</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="OBV">
- <Code>OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0),Width2;
- M:MA(OBV,N);
- </Code>
- <Description>成交量是在一段时间合约的买卖量。是独立于价格的买、卖指标。平衡交易量是追踪成交量变化的指标。当一个交易日的收盘价比前一交易日的高,将在总量里加上这一日的成交量,反之,减去。指标成立的假设是价格趋势变动前成交量会变动。Joseph Granville发明了平衡交易量。指标的定义并不十分严格,须与其它价格趋势反转指标一起使用。</Description>
- <DisabledCycle />
- <FullName>平衡交易量指标</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PVT">
- <Code>SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*VOL,0)</Code>
- <Description>价量趋势指标是以平衡交易量指标变化出的。价量趋势指标可以确认趋势的强弱和警告反转。PVT=昨日PVT+今日成交量*(今日收盘价-昨日收盘价)/ 昨日收盘价</Description>
- <DisabledCycle />
- <FullName>价量趋势指标</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="SOBV">
- <Code>SUM(IF(ISUP,VOL,IF(ISDOWN,-VOL,0)),0)</Code>
- <Description />
- <DisabledCycle />
- <FullName>SOBV</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="WVAD">
- <Code>WVAD : (CLOSE-OPEN)/(HIGH-LOW)*VOL;
- MA1:MA(WVAD,N1);
- MA2:MA(WVAD,N2);
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>Williams变量累积分布指标</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="NVI">
- <Code>A:=IF(V<=REF(V,1),C/REF(C,1),1);
- NVI:Start*MUL(A);
- M1:EMA(NVI,N1);
- M2:EMA(NVI,N2);</Code>
- <Description>负量指标关注成交量比上一交易日下降的时候。前提条件是当成交量下降,“聪明钱”会是多头。1.得到昨日的负量指标。2.如果今天的成交量比昨日的低,加上{(今日收盘价-昨日收盘价)/昨日收盘价}*昨日的负量指标。3.如果不是,加0.</Description>
- <DisabledCycle />
- <FullName>负量指标</FullName>
- <Params>
- <FormulaParam DefaultValue="1" Description="" MaxValue="1000000000" MinValue="0" Name="Start" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="10000" MinValue="0" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="255" Description="" MaxValue="10000" MinValue="0" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PVI">
- <Code>A:=IF(V>=REF(V,1),C/REF(C,1),1);
- PVI:Start*MUL(A);
- M1:MA(PVI,N1);
- M2:MA(PVI,N2);</Code>
- <Description>1.得到昨日的正量指标。2.如果今天的成交量比昨日的高,加上{(今日收盘价-昨日收盘价)/昨日收盘价}*昨日的负量指标。3.如果不是,加0.</Description>
- <DisabledCycle />
- <FullName>正量指标</FullName>
- <Params>
- <FormulaParam DefaultValue="1" Description="" MaxValue="1000000000" MinValue="0" Name="Start" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="10000" MinValue="0" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="255" Description="" MaxValue="10000" MinValue="0" Name="N2" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="波段指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="true" Name="BBIBOLL">
- <Code>BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
- UPR:BBI+P*STD(BBI,N);
- DWN:BBI-P*STD(BBI,N)</Code>
- <Description />
- <DisabledCycle />
- <FullName>BBIBOLL</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="20" MinValue="0.1" Name="P" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="BB">
- <Code>MID : MA(CLOSE,N);
- UPPER: MID + P*STD(CLOSE,N);
- LOWER: MID - P*STD(CLOSE,N);</Code>
- <Description>布林通道由John Bollinger发明。主要是将证券的方差以更容易的方法展现。指标包括三个范围:简单移动平均(中间),简单移动平均加两个标准差(上方),简单移动平均减两个标准差(下方)</Description>
- <DisabledCycle />
- <FullName>布林通道</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="2" Description="" MaxValue="10" MinValue="0.1" Name="P" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CDP">
- <Code>PT := REF(HIGH,1)-REF(LOW,1);
- CDP : (HIGH + LOW + CLOSE)/3;
- AH : CDP + PT;
- AL : CDP - PT;
- NH : 2*CDP-LOW;
- NL : 2*CDP-HIGH</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params />
- </Program>
- <Program IsMainView="true" Name="ENV">
- <Code>UPPER : MA(CLOSE,N)*1.06;
- LOWER : MA(CLOSE,N)*0.94</Code>
- <Description>信封指标包括两个移动平均。一个移动平均是向上移动得出,一个是向下移动得出。</Description>
- <DisabledCycle />
- <FullName>信封指标</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="300" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="MIKE">
- <Code>TYP:=(HIGH+LOW+CLOSE)/3;
- LL:=LLV(LOW,N);
- HH:=HHV(HIGH,N);
- WR:TYP+(TYP-LL);
- MR:TYP+(HH-LL);
- SR:2*HH-LL;
- WS:TYP-(HH-TYP);
- MS:TYP-(HH-LL);
- SS:2*LL-HH</Code>
- <Description />
- <DisabledCycle />
- <FullName>MIKE</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="200" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="SR">
- <Code>M :=(H+L+C)/3;
- A :=H-L;
- RR:=M+A;
- SS:=M-A;
- R:BackSet(IsLastBar,5)*RR.LastData,Width2,HighSpeed,ColorRed;
- S:BackSet(IsLastBar,5)*SS.LastData,Width2,HighSpeed,ColorDarkGreen;
- DrawNumber(BarsSince(R)==1,R,R,'f2'),Label0,VCenter,Right,ColorRed;
- DrawNumber(BarsSince(S)==1,S,S,'f2'),Label0,VCenter,Right,ColorDarkGreen;
- </Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params />
- </Program>
- <Program IsMainView="false" Name="BBWidth">
- <Code>P*STD(C,N)*2,Width1.6,HighQuality</Code>
- <Description>布林极限宽得出布林通道的宽。当布林极限宽的值增加,证券的方差也增加。</Description>
- <DisabledCycle />
- <FullName>布林极限宽</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="0.1" Name="P" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="Keltner">
- <Code>Shift := FACTOR * ATR(Length);
- Avg := EMA(C, Length);
- Upper : Avg + Shift;
- Lower : Avg - Shift</Code>
- <Description />
- <DisabledCycle />
- <FullName>肯特纳通道</FullName>
- <Params>
- <FormulaParam DefaultValue="16" Description="" MaxValue="100" MinValue="1" Name="Length" ParamType="double" />
- <FormulaParam DefaultValue="1.3" Description="" MaxValue="100" MinValue="0" Name="Factor" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="指数指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="ABI">
- <Code>ABS(ADVANCE - DECLINE)</Code>
- <Description>绝对幅度指标是由Norman G. Fosback发明,是市场动量指标。绝对幅度指标在不考虑价格的走向时,展现纽约证券交易所市场的交易量,方差和变动。可以认为绝对幅度指标是“活跃度指标”。高的数值说明市场活跃和发生大的变化,低的数值说明市场变化不多</Description>
- <DisabledCycle />
- <FullName>绝对幅度指标</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="ADL">
- <Code>SUM(ADVANCE-DECLINE,0)</Code>
- <Description>价格涨落线是一个将每天股票收盘价高的数量减去收盘价低的数量的值的累积和。可以被用来测量市场的强弱。市场上涨的股票比下跌的多,价格涨落线上升。市场下跌的股票比上涨的多,价格涨落线下降。有时,主要的美国股票指数在上升,价格涨落线下降。这是差异,警告可能上涨趋势将结束,价格反转可能发生。但是,差异可能存在很长时间,价格反转才发生。要有更多的分析来确认未来价格的走势。</Description>
- <DisabledCycle />
- <FullName>价格涨落线</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="ADR">
- <Code>SUM(ADVANCE,N)/SUM(DECLINE,N)</Code>
- <Description>价格涨落率是上升股票的数量和下降股票的数量的比值。价格涨落率的移动平均通常会用作侧度超买/超卖的指标。指标值越高,价格过度上升的程度越大,出现反转的可能越高。同样的,指标值越低,超卖程度越高。</Description>
- <DisabledCycle />
- <FullName>价格涨落率</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="200" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="BT">
- <Code>MA(ADVANCE/(ADVANCE-DECLINE),N)</Code>
- <Description>信任宽度是由Dr. Martin Zweig发明。上涨股票数量的10日指数移动平均/上涨和下跌股票数量。当在一个10日的时间阶段里,信任宽度指标从低于40%的值上升到高于61.5%的值,“信任宽度”出现。说明市场从超卖转变,但还没成超买。</Description>
- <DisabledCycle />
- <FullName>信任宽度</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CHAIKIN">
- <Code>ADL := SUM(ADVANCE-DECLINE,0);
- CHA : MA(ADL,SHORT) - MA(ADL,LONG)</Code>
- <Description>累积量指标测量一天或一周的净交易量的变化。</Description>
- <DisabledCycle />
- <FullName>Chaikin 累积/分布 指标</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="5" Name="LONG" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="300" MinValue="1" Name="SHORT" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MCO">
- <Code>EMA(ADVANCE-DECLINE,N1)/10 - EMA(ADVANCE-DECLINE,N2)/20</Code>
- <Description>McClellan 摆动指标是超买/超卖指标。当它穿过0线,说明短期趋势会变动。向上穿过0线是多方市场的信号。向下穿过0线是空方市场的信号。McClellan 摆动指标是将39日涨跌数量的移动平均减19日涨跌数量的移动平均。</Description>
- <DisabledCycle />
- <FullName>McClellan 摆动指标</FullName>
- <Params>
- <FormulaParam DefaultValue="19" Description="" MaxValue="80" MinValue="10" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="39" Description="" MaxValue="100" MinValue="30" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="OBOS">
- <Code>MA(ADVANCE-DECLINE,N)</Code>
- <Description />
- <DisabledCycle />
- <FullName>超买、超卖</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="STIX">
- <Code>EMA(ADVANCE/(ADVANCE+DECLINE)*100,N)</Code>
- <Description />
- <DisabledCycle />
- <FullName>STIX</FullName>
- <Params>
- <FormulaParam DefaultValue="11" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="下册指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="AMOUNT">
- <Code>AMOUNT,VOLSTICK;
- MA1:MA(AMOUNT,N1);
- MA2:MA(AMOUNT,N2)</Code>
- <Description>数量</Description>
- <DisabledCycle />
- <FullName>数量</FullName>
- <Params>
- <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VOLMA">
- <Code>VV:V,VOLSTICK;
- @SetName(VV,'');
- MA1:MA(VV,M1);
- @SetName(MA1,'MA');
- </Code>
- <Description>成交量和移动平均</Description>
- <DisabledCycle />
- <FullName>成交量</FullName>
- <Params>
- <FormulaParam DefaultValue="60" Description="" MaxValue="100" MinValue="1" Name="M1" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VOSC">
- <Code>(MA(VOL,SHORT)-MA(VOL,LONG))/MA(VOL,SHORT)*100</Code>
- <Description>成交量摆动指标用两个移动平均确认成交量的趋势。成交量摆动指标测量移动平均的更快值与更慢值的差。当快的移动平均大于慢的移动平均,指标是正数。当快的移动平均小于慢的移动平均,指标是负数。当两个移动平均相同,指标是0.</Description>
- <DisabledCycle />
- <FullName>成交量摆动指标</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="50" MinValue="2" Name="SHORT" ParamType="double" />
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="15" Name="LONG" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VSTD">
- <Code>STD(VOL,N)</Code>
- <Description>成交量 STD</Description>
- <DisabledCycle />
- <FullName>成交量 STD</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PVO">
- <Code>E1 :=EMA(V,N1);
- PVO : (E1-EMA(V,N2))/E1*100,Width1.6,HighQuality;
- M : EMA(PVO,N3);</Code>
- <Description>成交量摆动百分比是两个成交量移动平均的百分比差异。</Description>
- <DisabledCycle />
- <FullName>成交量摆动百分比</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MaxV">
- <Code>HHV(V,N)</Code>
- <Description />
- <DisabledCycle />
- <FullName>N日的最大成交量</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="100000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="COLORV">
- <Code>STICKLINE(C>REF(C,1),V,0),Brush#FF0000,Color#800000;
- STICKLINE(C<=REF(C,1),V,0),Brush#00FF00,Color#008000;</Code>
- <Description />
- <DisabledCycle />
- <FullName>自定义颜色的成交量</FullName>
- <Params />
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="振荡指标" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="AD">
- <Code>AD:SUM(((CLOSE-LOW)-(HIGH-CLOSE))/(HIGH-LOW)*VOL,0);
- M:MA(AD,N);</Code>
- <Description>累积/分布指标是动量指标,将价格和成交量的变化联系起来。指标成立的前提是价格变化随着较大的成交量,价格的变化量会更大。</Description>
- <DisabledCycle />
- <FullName>累积/分布指标</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MI">
- <Code>A:C-REF(C,N);
- MI:SMA(A,N,1);</Code>
- <Description />
- <DisabledCycle />
- <FullName>MI</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MICD">
- <Code>MI:=C-REF(C,1);
- AMI:=SMA(MI,N,1);
- DIF:MA(REF(AMI,1),N1)-MA(REF(AMI,1),N2);
- MICD:SMA(DIF,10,1)</Code>
- <Description />
- <DisabledCycle />
- <FullName>MICD</FullName>
- <Params>
- <FormulaParam DefaultValue="3" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="RC">
- <Code>RC:=C/REF(C,N);
- ARC:SMA(REF(RC,1),N,1)
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>变化率</FullName>
- <Params>
- <FormulaParam DefaultValue="50" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="RCCD">
- <Code>RC:=C/REF(C,N);
- ARC:=SMA(REF(RC,1),N,1);
- DIF:MA(REF(ARC,1),N1)-MA(REF(ARC,1),N2);
- RCCD:SMA(DIF,N,1)</Code>
- <Description />
- <DisabledCycle />
- <FullName>异同变化率</FullName>
- <Params>
- <FormulaParam DefaultValue="59" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="21" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SRMI">
- <Code>IF(C<REF(C,N),(C-REF(C,N))/REF(C,N),IF(C==REF(C,N),0,(C-REF(C,N))/C))</Code>
- <Description />
- <DisabledCycle />
- <FullName>SRMI</FullName>
- <Params>
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CMF">
- <Code>D :=(HIGH-LOW);
- AD:=IF(D==0,0,((CLOSE-LOW)-(HIGH-CLOSE))/D*VOL);
- MV :=MA(VOL,N);
- CMF:IF(MV==0,0,MA(AD,N)/MV),COLORSTICK;</Code>
- <Description>Chaikin 资金流由Marc Chaikin发明。指标是用每天的累积/分布线的值计算得出。累积/分布线成立的基本前提是买、卖方的强弱可以用在当前阶段,收盘价相对最高价和最低价的位置确认。当收盘价和最高更近,买方较强。当收盘价和最低价更近,卖方较强。每个阶段,收盘价的相对位置数值乘以成交量得出累积/分布指标。</Description>
- <DisabledCycle />
- <FullName>Chaikin 资金流</FullName>
- <Params>
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ULT">
- <Code>LC :=REF(C,1);
- TL :=MIN(L,LC);
- BP :=C-TL;
- TR := MAX(H-L,ABS(LC-H),ABS(LC-L));
- BPSum1 := MA(BP,N1);
- BPSum2 := MA(BP,N2);
- BPSum3 := MA(BP,N3);
- TRSum1 := MA(TR,N1);
- TRSum2 := MA(TR,N2);
- TRSum3 := MA(TR,N3);
- RawUO :=4*(BPSum1/TRSum1)+2*(BPSum2/TRSum2)+(BPSum3/TRSum3);
- (RawUO/(4+2+1))*100,Width1.6,HighQuality;
- </Code>
- <Description>Larry Williams发明。极限摆动指标将三个阶段股票价格的变动整合为一个有界的摆动指标。指标的值是从0至100,50是中值。低于30是超卖,高于70是超买。</Description>
- <DisabledCycle />
- <FullName>极限摆动指标</FullName>
- <Params>
- <FormulaParam DefaultValue="7" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
- <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="AroonOsc">
- <Code>0;
- "Aroon(N)[UP]"-"Aroon(N)[DOWN]"</Code>
- <Description>Aroon 摆动指标是将Aroon(上升)减Aroon(下降)。Aroon 摆动指标从-100至+100.</Description>
- <DisabledCycle />
- <FullName>Aroon 摆动指标</FullName>
- <Params>
- <FormulaParam DefaultValue="25" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="其他" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="MASS">
- <Code>SUM(EMA((HIGH-LOW),N1)/EMA(EMA((HIGH-LOW),N1),N1),N2)</Code>
- <Description>价格重量指数用来通过测量最高价和最低价间范围的变窄和变宽,确认趋势的反转。当范围变宽,指数上升,反之,下降。</Description>
- <DisabledCycle />
- <FullName>价格重量指数</FullName>
- <Params>
- <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
- <FormulaParam DefaultValue="25" Description="" MaxValue="100" MinValue="5" Name="N2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="STD">
- <Code>STD(CLOSE,N)</Code>
- <Description />
- <DisabledCycle />
- <FullName>STD</FullName>
- <Params>
- <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="VHF">
- <Code>(HHV(CLOSE,N)-LLV(CLOSE,N))/SUM(ABS(CLOSE-REF(CLOSE,1)),N)</Code>
- <Description>垂直水平过滤由Adam White发明。指标区分趋势和盘整市场。指标测量了趋势的程度,类似于方向移动指标的ADX.在趋势市场可以用趋势指标,在盘整市场可以用动量指标。在不同的时间阶段可以变化指标的时间段的数量。White以前推荐28天,现在普遍用18天与6天的移动平均。</Description>
- <DisabledCycle />
- <FullName>垂直水平过滤</FullName>
- <Params>
- <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="3" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="WAD">
- <Code>SUM(IF( CLOSE>REF(CLOSE,1),CLOSE-MIN(REF(CLOSE,1),LOW),IF(CLOSE<REF(CLOSE,1),
- CLOSE-MAX(REF(CLOSE,1),HIGH),0)),0)</Code>
- <Description>价格指标测量证券价格的累积和分布。</Description>
- <DisabledCycle />
- <FullName>William 累积/分布指标</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="ZigLabel">
- <Code>DrawNumber(FindPeak(N),H,H,'f2'),Label3;
- DrawNumber(FindTrough(N),L,L,'f2'),Label3,Valign2;</Code>
- <Description />
- <DisabledCycle />
- <FullName>之字标签</FullName>
- <Params>
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PR">
- <Code>PR:C/FML(StockCode,'C')*100,HighQuality;
- EMA(PR,N);</Code>
- <Description>相对价格比较一个证券和其他证券的差别。</Description>
- <DisabledCycle />
- <FullName>相对价格</FullName>
- <Params>
- <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="string" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="Fibonnaci">
- <Code>A := HHV(H,N);
- B := LLV(L,N);
- HH:BackSet(IsLastBar,N)*A.LastData,Width2;
- LL:BackSet(IsLastBar,N)*B.LastData,Width2;
- Height := HH-LL;
- A1 : LL+Height*0.382;
- A2 : LL+Height*0.5;
- A3 : LL+Height*0.618;
- @SetTextVisible(HH,false);
- @SetTextVisible(LL,false);
- @SetTextVisible(A1,false);
- @SetTextVisible(A2,false);
- @SetTextVisible(A3,false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>Fibonnaci</FullName>
- <Params>
- <FormulaParam DefaultValue="100" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="LinRegr">
- <Code>A := LR(C,N);
- Dist :=C-A;
- M := Max(MaxValue(Dist),ABS(MinValue(Dist)))*P/100;
- Upper : A +M;
- Lower : A - M;
- A;
- @SetName(A,'');
- @SetTextVisible(Upper,false);
- @SetTextVisible(Lower,false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>线性回归通道</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="100" Description="" MaxValue="100" MinValue="0" Name="P" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="RawData">
- <Code>O:OrgData(DataName);
- @SetName(O,DataName);
- @SetTextVisible(false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>得出原始数据</FullName>
- <Params>
- <FormulaParam DefaultValue="0" Description="" MaxValue="0" MinValue="0" Name="DataName" ParamType="string" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ZigW">
- <Code>Zig(N),Width2;
- A :=FindPeak(N);
- B :=FindTrough(N);
- A1 :=ToValue(A,H,0.5);
- A2 :=ToValue(B,L,0.5);
- PolyLine(A,H),StyleDash;
- PolyLine(B,L),StyleDash,SameColor;
- A3 :=ZIGP(N);
- DrawNumber(A1,A1,A3,'f3'),Label3,VAlign0;
- DrawNumber(A2,A2,A3,'f3'),Label3,VAlign0;</Code>
- <Description />
- <DisabledCycle />
- <FullName>带回溯的之字</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="ZigSR">
- <Code>A1 :=Peak(N);
- A2 :=Peak(N,2);
- B1 :=PeakBars(N);
- B2 :=PeakBars(N,2);
- DrawLine(B2.LastData,A2.LastData,B1.LastData,A1.LastData,1);
- DrawText(B2.LastData,A2.LastData,'{HIGH} +hi[UP]'),SameColor;
- DrawText(B1.LastData,A1.LastData,'{HIGH} +hi'),SameColor;
- D1 :=Trough(N);
- D2 :=Trough(N,2);
- E1 :=TroughBars(N);
- E2 :=TroughBars(N,2);
- DrawLine(E2.LastData,D2.LastData,E1.LastData,D1.LastData,1),SameColor;
- DrawText(E2.LastData,D2.LastData,'{LOW} +lo[up channel]'),VAlign2,SameColor;
- DrawText(E1.LastData,D1.LastData,'{LOW} +lo[b/o retest]'),VAlign2,SameColor;
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>之字推力和阻力</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="ZigIcon">
- <Code>DrawIcon(FindPeak(N),H,'dn.gif'),Top;
- DrawIcon(FindTrough(N),L,'up.gif'),Bottom;</Code>
- <Description />
- <DisabledCycle />
- <FullName>以之字画买、卖标识</FullName>
- <Params>
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="TimeLabel">
- <Code>AA : DrawText(NEARESTTIME(D,T),C,Text);
- @SetAttr(AA,Style);
- @SETTEXTVISIBLE(false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>在已定的时间画标签</FullName>
- <Params>
- <FormulaParam DefaultValue="20031231" Description="" MaxValue="100000000" MinValue="0" Name="D" ParamType="double" />
- <FormulaParam DefaultValue="091000" Description="" MaxValue="100000000" MinValue="0" Name="T" ParamType="double" />
- <FormulaParam DefaultValue="Rumour" Description="" MaxValue="0" MinValue="0" Name="Text" ParamType="string" />
- <FormulaParam DefaultValue="Font(Verdana, 10pt, style=Bold, Italic),ColorRed" Description="" MaxValue="0" MinValue="0" Name="Style" ParamType="string" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="本地" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="HL">
- <Code>N</Code>
- <Description />
- <DisabledCycle />
- <FullName>水平线</FullName>
- <Params>
- <FormulaParam DefaultValue="0" Description="" MaxValue="20000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="EMA">
- <Code>EMA(C,N);</Code>
- <Description />
- <DisabledCycle />
- <FullName>EMA</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MA">
- <Code>MA(C,N);</Code>
- <Description />
- <DisabledCycle />
- <FullName>MA</FullName>
- <Params>
- <FormulaParam DefaultValue="12" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MAIN">
- <Code>M:STOCK;
- @SetName('');
- @SetTextVisible(M,false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>Stock area</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="VOL">
- <Code>VOL,VOLSTICK;</Code>
- <Description />
- <DisabledCycle />
- <FullName>显示成交量</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="DotLine">
- <Code>N,StyleDash,ColorRed</Code>
- <Description />
- <DisabledCycle />
- <FullName>水平虚线</FullName>
- <Params>
- <FormulaParam DefaultValue="0" Description="" MaxValue="20000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MAIN2">
- <Code>M:STOCK;
- @SetName(M,StkLabel);
- @SetTextVisible(false);
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>Stock area 显示代码、值</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="OverlayV">
- <Code>A:VOL,VOLSTICK,HIGH0.2,Alpha100;
- @SETNAME(A,'V');
- @SETTEXTVISIBLE(false)</Code>
- <Description />
- <DisabledCycle />
- <FullName>覆盖的成交量</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="REF">
- <Code>A:=REF(FML(Indi),N);
- BackSet(IsLastValue(A),A,M)</Code>
- <Description />
- <DisabledCycle />
- <FullName>N日前的参考值</FullName>
- <Params>
- <FormulaParam DefaultValue="C" Description="" MaxValue="" MinValue="" Name="Indi" ParamType="indicator" />
- <FormulaParam DefaultValue="1" Description="" MaxValue="10000" MinValue="0" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="10000" MinValue="0" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="REFC">
- <Code>REF(C,N);</Code>
- <Description />
- <DisabledCycle />
- <FullName>参考收盘价</FullName>
- <Params>
- <FormulaParam DefaultValue="1" Description="" MaxValue="1000000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="扩展" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="true" Name="AreaBB">
- <Code>MID := MA(CLOSE,N);
- UPPER: MID + P*STD(CLOSE,N),Color#8080c0;
- LOWER: MID - P*STD(CLOSE,N),Color#8080c0;
- FILLRGN(1,LOWER,UPPER),Brush#200000C0;
- </Code>
- <Description>布林通道是由John Bollinger发明。主要是将证券的方差以更容易的方法展现。指标包括三个范围:简单移动平均(中间),简单移动平均加两个标准差(上方),简单移动平均减两个标准差(下方)</Description>
- <DisabledCycle />
- <FullName>布林通道</FullName>
- <Params>
- <FormulaParam DefaultValue="26" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="2" Description="" MaxValue="10" MinValue="0.1" Name="P" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="AreaRSI">
- <Code>LC := REF(CLOSE,1);
- RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
- 70,HighSpeed;
- 30,HighSpeed;
- FILLRGN(RSI>70,RSI,70),Brush#20808000;
- FILLRGN(RSI<30,RSI,30),Brush#20800000;</Code>
- <Description>相对强弱指数是由Welles Wilder发明。相对强弱指数表明超买或超卖的条件。当市场买卖差异很强,指数会上升,差异很弱,指数会下降。摆动范围是0到100.</Description>
- <DisabledCycle />
- <FullName>相对强弱指数</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SR2">
- <Code>M :=(H+L+C)/3;
- S:M +((-L+(2*M)-(-H+2*M))),Color#80c080;
- R:M-((-L+(2*M))-(-H+2*M)),Color#80c080;
- FILLRGN(1,S,R),Brush#2000C000;</Code>
- <Description />
- <DisabledCycle />
- <FullName>推力和阻力</FullName>
- <Params />
- </Program>
- <Program IsMainView="true" Name="Compare">
- <Code>FML(StockCode,'C'),FirstDataOfView,HighQuality;
- @SetName(StockCode);</Code>
- <Description />
- <DisabledCycle />
- <FullName>比较股票</FullName>
- <Params>
- <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="CmpIndi">
- <Code>V1:FML(Indi),HighQuality;
- V2:FML(StockCode,Indi),HighQuality;
- @SetName(V1,StkLabel);
- @SetName(V2,StockCode);
- @SetName(Indi);
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>比较两个指标</FullName>
- <Params>
- <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
- <FormulaParam DefaultValue="RSI(14)" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="indicator" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SRAxisY">
- <Code>M :=(H+L+C)/3;
- A :=H-L;
- RR:=M+A;
- SS:=M-A;
- R : DrawAxisY(RR,-10,12),Width2,Color#A0FF0000,AxisMargin12;
- S : DrawAxisY(SS,-10,12),Width2,Color#A0004000;
- DrawTextAxisY(RR,'R',1),Color#FF0000,VCenter;
- DrawTextAxisY(SS,'S',1),Color#004000,VCenter;
- @SetName('SR');</Code>
- <Description />
- <DisabledCycle />
- <FullName>Y轴的推力和阻力</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="SlowSTO2">
- <Code>A:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
- K:MA(A,M1),ColorDarkGreen,Width2,HighQuality;
- D:MA(K,M2);
- PartLine(K>=D,K),ColorRed,Width2,HighQuality;
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>缓慢随机</FullName>
- <Params>
- <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="1" Name="M1" ParamType="double" />
- <FormulaParam DefaultValue="9" Description="" MaxValue="50" MinValue="1" Name="M2" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="RefIndi">
- <Code>REF(FML(Indi),N);
- @SetName(Indi+'-'+N);</Code>
- <Description />
- <DisabledCycle />
- <FullName>参考指标值</FullName>
- <Params>
- <FormulaParam DefaultValue="MACD[DIFF]" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="string" />
- <FormulaParam DefaultValue="10" Description="" MaxValue="10000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="MainArea">
- <Code>MAIN : C,HighQuality;
- FILLAREA(MAIN),Brush#20808000;
- @SetTextVisible(MAIN,false);
- @SetTextVisible(false);</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="100" Description="" MaxValue="100000" MinValue="1" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="SR3">
- <Code>P := (H+L+C)/3;
- YL := REF(L,1);
- YH := REF(H,1);
- R1 : 2 * P - YL;
- S1 : 2 * P - YH;
- R2 : (P - S1) + R1;
- S2 : P - (R1-S1);
- R3 : (P + R2) - S1;
- S3 : (P - R2) + S1;
- R4 : (P + R3) - S1;
- S4 : (P - R3) + S1;
- R5 : (P + R4) - S1;
- S5 : (P - R4) + S1;</Code>
- <Description />
- <DisabledCycle />
- <FullName>推力和阻力</FullName>
- <Params />
- </Program>
- <Program IsMainView="true" Name="Compare2">
- <Code>FML(StockCode,'STOCK'),FullView,HighQuality,MonoStock;
- @SetName(StockCode);</Code>
- <Description />
- <DisabledCycle />
- <FullName>比较股票</FullName>
- <Params>
- <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="TwoDiff">
- <Code>C1:=FML(Symbol2,'C')-C;
- H1:=FML(Symbol2,'H')-H;
- L1:=FML(Symbol2,'L')-L;
- O1:=FML(Symbol2,'O')-O;
- GETSTOCK(O1,C1,MAX(C1,O1,H1,L1),MIN(C1,O1,H1,L1));
- </Code>
- <Description>以蜡烛图画出两个股票的差异</Description>
- <DisabledCycle />
- <FullName>两个股票的差异</FullName>
- <Params>
- <FormulaParam DefaultValue="INTL" Description="" MaxValue="0" MinValue="0" Name="Symbol2" ParamType="string" />
- </Params>
- </Program>
- <Program IsMainView="true" Name="TradingIcon">
- <Code>DrawIcon(FML(Indi+'[ExitLong]'),H,'DN.GIF'),TOP;
- DrawIcon(FML(Indi+'[EnterLong]'),L,'UP.GIF'),BOTTOM;</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="Trading.RSI" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="indicator" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="Compare3">
- <Code>FML(StockCode,'C'),HighQuality;
- @SetName(StockCode);</Code>
- <Description />
- <DisabledCycle />
- <FullName>比较股票</FullName>
- <Params>
- <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="ColorSar">
- <Code>M : SAR(N,STEP,MAXP),COLORBLUE;
- A1:STOCK,MONOSTOCK,BRUSHRED,COLORRED;
- A2:IF(M<C,STOCK,NAN),MONOSTOCK,BRUSHBLUE,COLORBLUE;
- A3:IF(M<C,M,NAN),COLORRED,CIRCLEDOT;
- @SETNAME(M,'SAR');
- @SETTEXTVISIBLE(A1,FALSE);
- @SETTEXTVISIBLE(A2,FALSE);
- @SETTEXTVISIBLE(A3,FALSE);
- @SETTEXTVISIBLE(FALSE);</Code>
- <Description />
- <DisabledCycle />
- <FullName>以sar的蜡烛图</FullName>
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="1" Name="STEP" ParamType="double" />
- <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="5" Name="MAXP" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="当天" Version="">
- <Description />
- <GroupOnly>true</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="OpeningRange">
- <Code>H1:=IF(IsLastDay & Time<=N,H,NaN);
- L1:=IF(IsLastDay & Time<=N,L,NaN);
- HH :=HHV(H1,0);
- LL :=LLV(L1,0);
- Extend(IF(HH.LastValue==HH,HH,NaN)),StyleDash,Width2;
- Extend(IF(LL.LastValue==LL,LL,NaN)),StyleDash,Width2;
- </Code>
- <Description />
- <DisabledCycle />
- <FullName>开盘范围</FullName>
- <Params>
- <FormulaParam DefaultValue="100000" Description="" MaxValue="240000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="PriorClose">
- <Code>"REFC#DAY",StyleDash,ColorRed,NoValueLabel,Horizontal,Width2;
- @SetTextVisible(false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>前一日的收盘价</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="PriorHLC">
- <Code>"RefIndi(H,1)#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
- "RefC#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
- "RefIndi(L,1)#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
- @SetTextVisible(false);</Code>
- <Description />
- <DisabledCycle />
- <FullName>前一日的最高、最低、收盘价</FullName>
- <Params />
- </Program>
- <Program IsMainView="false" Name="TDP">
- <Code>Cond := Between(DoubleDate,LastDoubleDate-N,LastDoubleDate-0.00001);
- HH :=HHV(IF(Cond,H,NaN)).LastValue;
- LL :=LLV(IF(Cond,L,NaN)).LastValue;
- CC :=IF(Cond,C,NaN).LastValue;
- P :=(HH+LL+CC)/3;
- M :=(HH+LL)/2;
- PD :=ABS(P-M);
- PH:IF(IsLastDay,P+PD,NaN),StyleDash,Width2;
- PL:IF(IsLastDay,P-PD,NaN),StyleDash,Width2;
- </Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="3" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
- </Params>
- </Program>
- </Programs>
- </Namespace>
- <Namespace Name="测试" Version="">
- <Description>Test some operation</Description>
- <GroupOnly>false</GroupOnly>
- <Namespaces />
- <Programs>
- <Program IsMainView="false" Name="DDAA">
- <Code>"MACD(26,12,9)"</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params />
- </Program>
- <Program IsMainView="false" Name="DNF">
- <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
- HD := HIGH-REF(HIGH,1);
- LD := REF(LOW,1)-LOW;
- DMP:= SUM(IF(HD>0 & HD>LD,HD,0),N);
- DMM:= SUM(IF(LD>0 & LD>HD,LD,0),N);
- PDI: DMP*100/TR;
- MDI: DMM*100/TR;
- ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
- ADXR:(ADX+REF(ADX,M))/2
- </Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params>
- <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="0" Name="N" ParamType="double" />
- <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
- </Params>
- </Program>
- <Program IsMainView="false" Name="NewCode">
- <Code>HD := HIGH-REF(HIGH,1);</Code>
- <Description />
- <DisabledCycle />
- <FullName />
- <Params />
- </Program>
- </Programs>
- </Namespace>
- </Namespaces>
- <Programs />
- </Namespace>
|