| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623 |
- <?xml version="1.0" encoding="utf-8"?>
- <Namespace xmlns:Formula="http://finance.easychart.net" Name="FML" Version="1.0.0.177">
- <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>方向移動指數在交易範圍爲價格的突破提供交易信號。指數系統包括個指標,方向移動指數,正方向指數,負方向指數,平均方向移動,方向移動評分。</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>平滑異同移動平均線是將';天的指數移動平均線減去;天的指數移動平均線。天的指數移動平均線和平滑異同移動平均線的差值作爲判斷條件。MACD的基本規則是當MACD下降到天信號線之下賣出證券,MACD上升到天信號線之上購買證券。投資者有時因爲不同的證券和交易策略變化信號線的天數,也可能在計算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至'00的兩條線。數值大于0的線認爲是超買,可能出現價格反轉。數值小于;0的線認爲是超賣,也可能出現價格反轉。當出現一個很強的趨勢,快速隨機指標可以在超買或超賣停很久,而價格一直在一個方向變動。在一個較長的價格趨勢,快速隨機指標沒有什麽效。快速隨機指標是爲了比較價格的當前和最近一期的動量,確認哪個階段動量會減弱或加強。動量的減弱或加強發生在被測量的價格趨勢的反轉點。然而當價格趨勢沒有變動時,動量的變動也會發生,所以只是可能價格趨勢出現在反轉點。</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>
|