Basic.fml 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Namespace xmlns:Formula="http://finance.easychart.net" Name="FML" Version="1.0.0.177">
  3. <Description />
  4. <GroupOnly>false</GroupOnly>
  5. <Namespaces>
  6. <Namespace Name="趨勢指標" Version="">
  7. <Description />
  8. <GroupOnly>true</GroupOnly>
  9. <Namespaces />
  10. <Programs>
  11. <Program IsMainView="true" Name="BBI">
  12. <Code>(MA(C,N1)+MA(C,N2)+MA(C,N3)+MA(C,N4))/4</Code>
  13. <Description>BBI=看漲指標的加權的和</Description>
  14. <DisabledCycle />
  15. <FullName>看漲看跌指標</FullName>
  16. <Params>
  17. <FormulaParam DefaultValue="3" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  18. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  19. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
  20. <FormulaParam DefaultValue="24" Description="" MaxValue="100" MinValue="1" Name="N4" ParamType="double" />
  21. </Params>
  22. </Program>
  23. <Program IsMainView="false" Name="CYS">
  24. <Code>Var1:=IF(YEAR&gt;=2010 &amp; MONTH&gt;=2,0,1);
  25. Var2:=VOL*C;
  26. Var3:=EMA(Var2,13)/EMA(VOL,13);
  27. CYS: (EMA(CLOSE,P1)-Var3)/Var3*100*Var1;
  28. ML: EMA(CYS,P2)*Var1;
  29. LO: 0, POINTDOT;</Code>
  30. <Description>顯示盈利的投資者數量占總數的比例</Description>
  31. <DisabledCycle />
  32. <FullName />
  33. <Params>
  34. <FormulaParam DefaultValue="4" Description="" MaxValue="15" MinValue="1" Name="P1" ParamType="double" />
  35. <FormulaParam DefaultValue="5" Description="" MaxValue="15" MinValue="1" Name="P2" ParamType="double" />
  36. </Params>
  37. </Program>
  38. <Program IsMainView="false" Name="DDI">
  39. <Code>TR:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));
  40. DMZ:=IF((H+L)&lt;=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
  41. DMF:=IF((H+L)&gt;=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
  42. DIZ:=SUM(DMZ,N)/(SUM(DMZ,N)+SUM(DMF,N));
  43. DIF:=SUM(DMF,N)/(SUM(DMF,N)+SUM(DMZ,N));
  44. DDI:DIZ-DIF,COLORSTICK;
  45. ADDI:SMA(DDI,N1,M);
  46. AD:MA(ADDI,M1);
  47. </Code>
  48. <Description />
  49. <DisabledCycle />
  50. <FullName>方向差異</FullName>
  51. <Params>
  52. <FormulaParam DefaultValue="13" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  53. <FormulaParam DefaultValue="30" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  54. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
  55. <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="M1" ParamType="double" />
  56. </Params>
  57. </Program>
  58. <Program IsMainView="false" Name="DMA">
  59. <Code>DDD : (MA(CLOSE,SHORT)-MA(CLOSE,LONG));
  60. AMA : MA(DDD,M)</Code>
  61. <Description>以每天的交易計算的移動平均。指標前的數字說明以多少天計算移動平均</Description>
  62. <DisabledCycle />
  63. <FullName>日移動平均</FullName>
  64. <Params>
  65. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="2" Name="SHORT" ParamType="double" />
  66. <FormulaParam DefaultValue="50" Description="" MaxValue="300" MinValue="2" Name="LONG" ParamType="double" />
  67. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="M" ParamType="double" />
  68. </Params>
  69. </Program>
  70. <Program IsMainView="false" Name="DMI">
  71. <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
  72. HD := HIGH-REF(HIGH,1);
  73. LD := REF(LOW,1)-LOW;
  74. DMP:= SUM(IF(HD&gt;0 &amp; HD&gt;LD,HD,0),N);
  75. DMM:= SUM(IF(LD&gt;0 &amp; LD&gt;HD,LD,0),N);
  76. PDI: DMP*100/TR;
  77. MDI: DMM*100/TR;
  78. ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
  79. ADXR:(ADX+REF(ADX,M))/2
  80. </Code>
  81. <Description>方向移動指數在交易範圍爲價格的突破提供交易信號。指數系統包括個指標,方向移動指數,正方向指數,負方向指數,平均方向移動,方向移動評分。</Description>
  82. <DisabledCycle />
  83. <FullName>方向移動指數</FullName>
  84. <Params>
  85. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  86. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
  87. </Params>
  88. </Program>
  89. <Program IsMainView="true" Name="EMA4">
  90. <Code>MA1:EMA(CLOSE,P1);
  91. MA2:EMA(CLOSE,P2);
  92. MA3:EMA(CLOSE,P3);
  93. MA4:EMA(CLOSE,P4)</Code>
  94. <Description>指數移動平均是將昨天的移動平均和今天的收盤價按比例相加。投資者可以在計算移動平均時在最近的數據放比過去的數據更多的權重。</Description>
  95. <DisabledCycle />
  96. <FullName>指數移動平均</FullName>
  97. <Params>
  98. <FormulaParam DefaultValue="5" Description="" MaxValue="300" MinValue="1" Name="P1" ParamType="double" />
  99. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="P2" ParamType="double" />
  100. <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="1" Name="P3" ParamType="double" />
  101. <FormulaParam DefaultValue="60" Description="" MaxValue="300" MinValue="1" Name="P4" ParamType="double" />
  102. </Params>
  103. </Program>
  104. <Program IsMainView="false" Name="MA4">
  105. <Code>MA1:MA(CLOSE,P1);
  106. MA2:MA(CLOSE,P2);
  107. MA3:MA(CLOSE,P3);
  108. MA4:MA(CLOSE,P4);</Code>
  109. <Description>移動平均用來幫助區分未來價格的趨勢。隨著未來新價格出現而變動的平均價,在分析證券時價格因素會減弱。即使計算一個證券或指數的價格平均值時,每天價格波動的影響將減弱,平均後的數值是計算時間段裏價格趨勢的有效指標。</Description>
  110. <DisabledCycle />
  111. <FullName>移動平均</FullName>
  112. <Params>
  113. <FormulaParam DefaultValue="5" Description="" MaxValue="300" MinValue="0" Name="P1" ParamType="double" />
  114. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="0" Name="P2" ParamType="double" />
  115. <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="0" Name="P3" ParamType="double" />
  116. <FormulaParam DefaultValue="30" Description="" MaxValue="300" MinValue="0" Name="P4" ParamType="double" />
  117. </Params>
  118. </Program>
  119. <Program IsMainView="false" Name="MACD">
  120. <Code>DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
  121. DEA : EMA(DIFF,M);
  122. MACD : 2*(DIFF-DEA), COLORSTICK;
  123. </Code>
  124. <Description>平滑異同移動平均線是將';天的指數移動平均線減去;天的指數移動平均線。天的指數移動平均線和平滑異同移動平均線的差值作爲判斷條件。MACD的基本規則是當MACD下降到天信號線之下賣出證券,MACD上升到天信號線之上購買證券。投資者有時因爲不同的證券和交易策略變化信號線的天數,也可能在計算MACD時用不同的天數。</Description>
  125. <DisabledCycle />
  126. <FullName>平滑異同移動平均線</FullName>
  127. <Params>
  128. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="20" Name="LONG" ParamType="double" />
  129. <FormulaParam DefaultValue="12" Description="" MaxValue="40" MinValue="5" Name="SHORT" ParamType="double" />
  130. <FormulaParam DefaultValue="9" Description="" MaxValue="60" MinValue="2" Name="M" ParamType="double" />
  131. </Params>
  132. </Program>
  133. <Program IsMainView="false" Name="MTM">
  134. <Code>MTM : CLOSE-REF(CLOSE,N);
  135. MTMMA : MA(MTM,N1)</Code>
  136. <Description>動量是現在的價格或其他數值與N個時間段前的差值。用法:上升的指示線說明上升趨勢變得更強,下降的指示線說明下降趨勢變得更強。動量可用來區分趨勢,超買、超賣和差異。</Description>
  137. <DisabledCycle />
  138. <FullName>動量</FullName>
  139. <Params>
  140. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  141. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  142. </Params>
  143. </Program>
  144. <Program IsMainView="false" Name="PPO">
  145. <Code>PPO:(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG))/EMA(CLOSE,LONG)*100;
  146. EMA(PPO,N);</Code>
  147. <Description>價格震蕩指標是在一個規定的時間段裏,以兩個或多個移動平均判斷價格的動量。</Description>
  148. <DisabledCycle />
  149. <FullName>價格震蕩指標</FullName>
  150. <Params>
  151. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="5" Name="LONG" ParamType="double" />
  152. <FormulaParam DefaultValue="12" Description="" MaxValue="40" MinValue="2" Name="SHORT" ParamType="double" />
  153. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  154. </Params>
  155. </Program>
  156. <Program IsMainView="true" Name="SAR">
  157. <Code>SAR(N,STEP,MAXP),CIRCLEDOT</Code>
  158. <Description>抛物線止損和反轉是J Welles Wilder發明的。抛物線止損和反轉是一個跟隨趨勢用來移動止損的指標。這個指標跟隨現在的趨勢,給出一個參考的止損價,這個價格離原有的趨勢足夠遠,可以避免因爲很小的盤整或小的回撤而成交。移動止損價跟著趨勢變動,當時間變動,止損價會與價格離得更近,止損價連接成爲一條抛物線。當市場價格穿過止損和反轉價格時,在市場的另一個方向會開始計算新的止損和反轉價格,在一個新的趨勢開始時允許價格少量的波動。</Description>
  159. <DisabledCycle />
  160. <FullName>止損和反轉</FullName>
  161. <Params>
  162. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  163. <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="1" Name="STEP" ParamType="double" />
  164. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="5" Name="MAXP" ParamType="double" />
  165. </Params>
  166. </Program>
  167. <Program IsMainView="false" Name="TRIX">
  168. <Code>TR:= EMA(EMA(EMA(CLOSE,N),N),N);
  169. TRIX : (TR-REF(TR,1))/REF(TR,1)*100;
  170. TRMA : MA(TRIX,M);
  171. </Code>
  172. <Description>TRIX是說明一個證券的收盤價的三階指數移動平均線的變化率的百分比的動量指標。用來使投資者在小于或相同的規定時間段裏跟隨趨勢。</Description>
  173. <DisabledCycle />
  174. <FullName>TRIX</FullName>
  175. <Params>
  176. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="3" Name="N" ParamType="double" />
  177. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
  178. </Params>
  179. </Program>
  180. <Program IsMainView="false" Name="VMACD">
  181. <Code>DIFF : EMA(VOL,SHORT) - EMA(VOL,LONG);
  182. DEA : EMA(DIFF,M);
  183. MACD : DIFF-DEA, ff,COLORSTICK</Code>
  184. <Description />
  185. <DisabledCycle />
  186. <FullName>成交量移動平均異同</FullName>
  187. <Params>
  188. <FormulaParam DefaultValue="12" Description="" MaxValue="50" MinValue="1" Name="SHORT" ParamType="double" />
  189. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="20" Name="LONG" ParamType="double" />
  190. <FormulaParam DefaultValue="9" Description="" MaxValue="50" MinValue="30" Name="M" ParamType="double" />
  191. </Params>
  192. </Program>
  193. <Program IsMainView="false" Name="ZIG">
  194. <Code>ZIG(PER),Width2</Code>
  195. <Description>之子指標是趨勢跟蹤指標幫助區分趨勢是什麽,也能作爲顯著性測試幫助區分什麽時候的價格變動說明價格趨勢的變動。</Description>
  196. <DisabledCycle />
  197. <FullName>之子指標</FullName>
  198. <Params>
  199. <FormulaParam DefaultValue="10" Description="" MaxValue="60" MinValue="1" Name="PER" ParamType="double" />
  200. </Params>
  201. </Program>
  202. <Program IsMainView="false" Name="ADX">
  203. <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
  204. HD := HIGH-REF(HIGH,1);
  205. LD := REF(LOW,1)-LOW;
  206. DMP:= SUM(IF(HD&gt;0 &amp; HD&gt;LD,HD,0),N);
  207. DMM:= SUM(IF(LD&gt;0 &amp; LD&gt;HD,LD,0),N);
  208. PDI: DMP*100/TR;
  209. @SetName(PDI,'+DI');
  210. MDI: DMM*100/TR;
  211. @SetName(MDI,'-DI');
  212. ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,N),Width2;
  213. </Code>
  214. <Description>J. Welles Wilder Jr. 發明了平均趨勢指數判斷當前趨勢的強弱。確認當前市場價格的變動是有趨勢還只是往一側變動很重要。因爲一些指標在特定的條件下才可以給出有用的結果。</Description>
  215. <DisabledCycle />
  216. <FullName>平均趨勢指數</FullName>
  217. <Params>
  218. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  219. </Params>
  220. </Program>
  221. <Program IsMainView="false" Name="PERF">
  222. <Code>(C-C.First)/C.First*100</Code>
  223. <Description />
  224. <DisabledCycle />
  225. <FullName>Performance</FullName>
  226. <Params />
  227. </Program>
  228. <Program IsMainView="false" Name="KDJ">
  229. <Code>
  230. RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
  231. K:SMA(RSV,M1,1),COLOR#ffffff;
  232. D:SMA(K,M2,1),COLOR#ffd700;
  233. J:3*K-2*D,COLOR#8b00ff;
  234. </Code>
  235. <Description>
  236. 随机指标KDJ是以最高价、最低价及收盘价为基本数据进行计算,得出的K值、D值和J值分别在指标的坐标上形成的一个点,连接无数个这样的点位,就形成一个完整的、能反映价格波动趋势的KDJ指标。
  237. 它主要是利用价格波动的真实波幅来反映价格走势的强弱和超买超卖现象,在价格尚未上升或下降之前发出买卖信号的一种技术工具。
  238. </Description>
  239. <DisabledCycle />
  240. <FullName>随机指标</FullName>
  241. <Params>
  242. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  243. <FormulaParam DefaultValue="3" Description="" MaxValue="30" MinValue="2" Name="M1" ParamType="double" />
  244. <FormulaParam DefaultValue="3" Description="" MaxValue="30" MinValue="2" Name="M2" ParamType="double" />
  245. </Params>
  246. </Program>
  247. </Programs>
  248. </Namespace>
  249. <Namespace Name="動量指標" Version="">
  250. <Description />
  251. <GroupOnly>true</GroupOnly>
  252. <Namespaces />
  253. <Programs>
  254. <Program IsMainView="false" Name="B3612">
  255. <Code>B36 : MA(CLOSE,3)-MA(CLOSE,6);
  256. B612 : MA(CLOSE,6)-MA(CLOSE,12)</Code>
  257. <Description />
  258. <DisabledCycle />
  259. <FullName>Bias3-Bias6 and Bias6-Bias12</FullName>
  260. <Params />
  261. </Program>
  262. <Program IsMainView="false" Name="BIAS">
  263. <Code>BIAS1 : (CLOSE-MA(CLOSE,L1))/MA(CLOSE,L1)*100;
  264. BIAS2 : (CLOSE-MA(CLOSE,L2))/MA(CLOSE,L2)*100;
  265. BIAS3 : (CLOSE-MA(CLOSE,L3))/MA(CLOSE,L3)*100;</Code>
  266. <Description>指出收盤價和移動平均的差值。</Description>
  267. <DisabledCycle />
  268. <FullName>偏差</FullName>
  269. <Params>
  270. <FormulaParam DefaultValue="6" Description="" MaxValue="300" MinValue="1" Name="L1" ParamType="double" />
  271. <FormulaParam DefaultValue="12" Description="" MaxValue="300" MinValue="1" Name="L2" ParamType="double" />
  272. <FormulaParam DefaultValue="24" Description="" MaxValue="300" MinValue="1" Name="L3" ParamType="double" />
  273. </Params>
  274. </Program>
  275. <Program IsMainView="false" Name="CCI">
  276. <Code>TYP := (HIGH + LOW + CLOSE)/3;
  277. (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N))</Code>
  278. <Description>商品通道指標測量價格和移動平均的差值。說明市場什麽時候超買或超賣,趨勢什麽時候減弱。這個指標與布林通道相似,但是是以指標線表示,不是超買或超賣的程度。商品通道指標是Donald Lambert發明,出現在他的書中,《商品通道指標:周期趨勢的交易工具》。</Description>
  279. <DisabledCycle />
  280. <FullName>商品通道指標</FullName>
  281. <Params>
  282. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  283. </Params>
  284. </Program>
  285. <Program IsMainView="false" Name="DBCD">
  286. <Code>BIAS:=(C-MA(C,N))/MA(C,N);
  287. DIF:=(BIAS-REF(BIAS,M));
  288. DBCD:SMA(DIF,T,1);
  289. MM:MA(DBCD,5)
  290. </Code>
  291. <Description />
  292. <DisabledCycle />
  293. <FullName>差值異同</FullName>
  294. <Params>
  295. <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  296. <FormulaParam DefaultValue="16" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
  297. <FormulaParam DefaultValue="76" Description="" MaxValue="100" MinValue="1" Name="T" ParamType="double" />
  298. </Params>
  299. </Program>
  300. <Program IsMainView="false" Name="DPO">
  301. <Code>C - REF(MA(CLOSE,20),11)</Code>
  302. <Description>非趨勢價格擺動指標比較收盤價和前一交易日的移動平均,去除比移動平均時間長的周期。非趨勢價格擺動指標的用處是在更長的周期區分轉折點:當非趨勢價格擺動指標表明一個很高的穿越,在周期的中間會出現一個向上的反轉。當非趨勢價格擺動指標表明一個比較低的點,會出現一個向下的反轉。</Description>
  303. <DisabledCycle />
  304. <FullName>非趨勢價格擺動指標</FullName>
  305. <Params />
  306. </Program>
  307. <Program IsMainView="false" Name="FastSTO">
  308. <Code>K:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
  309. D:MA(K,M);</Code>
  310. <Description>快速隨機指標是在一個階段裏,測量現在的價格相對上一個收盤價的動量。畫出指標是在0至'00的兩條線。數值大于0的線認爲是超買,可能出現價格反轉。數值小于;0的線認爲是超賣,也可能出現價格反轉。當出現一個很強的趨勢,快速隨機指標可以在超買或超賣停很久,而價格一直在一個方向變動。在一個較長的價格趨勢,快速隨機指標沒有什麽效。快速隨機指標是爲了比較價格的當前和最近一期的動量,確認哪個階段動量會減弱或加強。動量的減弱或加強發生在被測量的價格趨勢的反轉點。然而當價格趨勢沒有變動時,動量的變動也會發生,所以只是可能價格趨勢出現在反轉點。</Description>
  311. <DisabledCycle />
  312. <FullName>快速隨機指標</FullName>
  313. <Params>
  314. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  315. <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M" ParamType="double" />
  316. </Params>
  317. </Program>
  318. <Program IsMainView="false" Name="LWR">
  319. <Code>RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;
  320. LWR1:SMA(RSV,M1,1);
  321. LWR2:SMA(LWR1,M2,1)
  322. </Code>
  323. <Description>100-Stochastic</Description>
  324. <DisabledCycle />
  325. <FullName />
  326. <Params>
  327. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  328. <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M1" ParamType="double" />
  329. <FormulaParam DefaultValue="3" Description="" MaxValue="40" MinValue="2" Name="M2" ParamType="double" />
  330. </Params>
  331. </Program>
  332. <Program IsMainView="false" Name="ROC">
  333. <Code>ROC:(CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100;
  334. ROCMA:MA(ROC,M)
  335. </Code>
  336. <Description>價格變化率是動量指標的優化,將價格變動轉化爲在0附近變動的百分比。指標用在盤整的市場,測量趨勢減弱的程度,但是,當和趨勢指標一起可以在趨勢市場用。盤整市場。第一,須以之前盤整市場的觀察,定出超買和超賣的範圍。範圍應該至少覆蓋三分之二的高低值。當價格變化率穿越至超賣範圍後回升在超賣範圍之外,購買證券。在多方市場出現分歧時,第一個低谷出現在超賣範圍下方,購買證券。當價格變化率穿越至超買範圍後下降在超買範圍之外,賣出證券。在空方市場出現分歧時,第一個高點出現在超買範圍下,賣出證券。
  337. </Description>
  338. <DisabledCycle />
  339. <FullName>價格變化率</FullName>
  340. <Params>
  341. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  342. <FormulaParam DefaultValue="6" Description="" MaxValue="50" MinValue="1" Name="M" ParamType="double" />
  343. </Params>
  344. </Program>
  345. <Program IsMainView="false" Name="RSI">
  346. <Code>LC := REF(CLOSE,1);
  347. RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
  348. </Code>
  349. <Description>相對強弱指數是Welles Wilder發明。相對強弱指數表明超買或超賣的條件。當市場買賣差異很強,指數會上升,差異很弱,指數會下降。擺動範圍是0到100.</Description>
  350. <DisabledCycle />
  351. <FullName>相對強弱指數</FullName>
  352. <Params>
  353. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
  354. </Params>
  355. </Program>
  356. <Program IsMainView="false" Name="SI">
  357. <Code>LC:=REF(C,1);
  358. AA:=ABS(H-LC);
  359. BB:=ABS(L-LC);
  360. CC:=ABS(H-REF(L,1));
  361. DD:=ABS(LC-REF(O,1));
  362. R:=IF(AA&gt;BB &amp; AA&gt;CC,AA+BB/2+DD/4,IF(BB&gt;CC &amp; BB&gt;AA,BB+AA/2+DD/4,CC+DD/4));
  363. X:=(C-LC+(C-O)/2+LC-REF(O,1));
  364. SI:16*X/R*MAX(AA,BB)</Code>
  365. <Description>擺蕩指數</Description>
  366. <DisabledCycle />
  367. <FullName>擺蕩指數</FullName>
  368. <Params />
  369. </Program>
  370. <Program IsMainView="false" Name="SlowSTO">
  371. <Code>A:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
  372. K:MA(A,M1);
  373. D:MA(K,M2)
  374. </Code>
  375. <Description>慢性隨機指標使隨機擺動的曲線更平滑,減少方差和提高指標的准確性。</Description>
  376. <DisabledCycle />
  377. <FullName>慢性隨機指標</FullName>
  378. <Params>
  379. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  380. <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="2" Name="M1" ParamType="double" />
  381. <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="2" Name="M2" ParamType="double" />
  382. </Params>
  383. </Program>
  384. <Program IsMainView="false" Name="SRDM">
  385. <Code>DMZ:=IF((H+L)&lt;=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
  386. DMF:=IF((H+L)&gt;=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
  387. ADMZ:=MA(DMZ,10);
  388. ADMF:=MA(DMF,10);
  389. SRDM:IF(ADMZ&gt;ADMF,(ADMZ-ADMF)/ADMZ,IF(ADMZ=ADMF,0,(ADMZ-ADMF)/ADMF));
  390. ASRDM:SMA(SRDM,N,1);</Code>
  391. <Description />
  392. <DisabledCycle />
  393. <FullName>SRDM</FullName>
  394. <Params>
  395. <FormulaParam DefaultValue="30" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  396. </Params>
  397. </Program>
  398. <Program IsMainView="false" Name="VROC">
  399. <Code>(VOL-REF(VOL,N))/REF(VOL,N)*100</Code>
  400. <Description>成交量變化率是一個用在成交量的擺動指標,計算方法與價格變化率一樣。當成交量增大,成交量變化率更重要,通常在市場的高點、低谷和突破更肯能出現。</Description>
  401. <DisabledCycle />
  402. <FullName>成交量變化率</FullName>
  403. <Params>
  404. <FormulaParam DefaultValue="12" Description="" MaxValue="300" MinValue="2" Name="N" ParamType="double" />
  405. </Params>
  406. </Program>
  407. <Program IsMainView="false" Name="VRSI">
  408. <Code>SMA(MAX(VOL-REF(VOL,1),0),N,1)/SMA(ABS(VOL-REF(VOL,1)),N,1)*100</Code>
  409. <Description>量相對強弱指標</Description>
  410. <DisabledCycle />
  411. <FullName>量相對強弱指標</FullName>
  412. <Params>
  413. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  414. </Params>
  415. </Program>
  416. <Program IsMainView="false" Name="WR">
  417. <Code>-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))</Code>
  418. <Description>威廉指標是由Larry Williams發明。區分超買、超賣的程度。指標變化範圍是0至-100.指標0至-20是超買的範圍,指標-70至-100是超賣的範圍。作爲確認信號,投資者可以等指標穿過-50.
  419. </Description>
  420. <DisabledCycle />
  421. <FullName>威廉指標</FullName>
  422. <Params>
  423. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  424. </Params>
  425. </Program>
  426. <Program IsMainView="false" Name="SO">
  427. <Code>K :=(C-L)/(H-L);
  428. SK : SMA(K,N1,1);
  429. SD : SMA(SK,N2,1);</Code>
  430. <Description>隨機擺動指標是由George C. Lane發明。指標提供了當前收盤價與階段的最高、最低價格的相對位置。收盤價與最高價格越接近,買方力量越大。收盤價與最低價格越接近,賣方力量越大。用法:指標高于80,市場是買方市場。指標低于20,市場是賣方市場。因爲這個定義沒有提供什麽時候買、賣,可以當指標從超買、超賣範圍返回時,認爲是買、賣指示。在%K和它的移動平均間穿過可以一樣認爲是買、賣指示。差異也可以認爲是一個有用的指示。當指標從超買、超賣範圍返回,差異産生,是一個賣、買指示。同時,K39(39期未平滑隨機擺動)在試算後被認爲是會産生結果的曲線。當K向上穿過50%,收盤價比上周的最高收盤價高,是買信號。當K向下穿過50%,收盤價比上周的最低收盤價低,是賣信號。同時,可以用其它的指標確認,例如OBV可以確認。</Description>
  431. <DisabledCycle />
  432. <FullName>隨機擺動指標</FullName>
  433. <Params>
  434. <FormulaParam DefaultValue="3" Description="" MaxValue="10" MinValue="1" Name="N1" ParamType="double" />
  435. <FormulaParam DefaultValue="3" Description="" MaxValue="10" MinValue="1" Name="N2" ParamType="double" />
  436. </Params>
  437. </Program>
  438. <Program IsMainView="false" Name="MFI">
  439. <Code>TP :=(High + Low + Close) / 3;
  440. LTP := REF(TP,1);
  441. MF :=TP*V;
  442. PMF := IF(TP&gt;LTP,MF,0);
  443. NMF := IF(TP&lt;=LTP,MF,0);
  444. MR :=MA(PMF,N)/MA(NMF,N);
  445. MFI :100-(100/(1+MR));
  446. 20,Color#808080,NoValueLabel;
  447. 80,Color#808080,NoValueLabel;
  448. FillRGN(MFI&gt;80,MFI,80),Brush#20808000;
  449. FillRGN(MFI&lt;20,MFI,20),Brush#20800000;
  450. @SetHLine(20,50,80,100);
  451. @SetYMinMax(0,100)</Code>
  452. <Description />
  453. <DisabledCycle />
  454. <FullName />
  455. <Params>
  456. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  457. </Params>
  458. </Program>
  459. <Program IsMainView="false" Name="StochRSI">
  460. <Code>LC := REF(CLOSE,1);
  461. RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
  462. (RSI-LLV(RSI,N))/(HHV(RSI,N)-LLV(RSI,N));</Code>
  463. <Description>隨機相對強弱指數是由Tushard Chande和Stanley Kroll發明。隨機相對強弱指數是一個在一段時間裏測量相對強弱指標相對變動範圍的程度。指數以RSI爲基礎,用在隨機指標的公式裏。結果是一個在0至1變動的擺動指標。</Description>
  464. <DisabledCycle />
  465. <FullName>隨機相對強弱指數</FullName>
  466. <Params>
  467. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  468. </Params>
  469. </Program>
  470. <Program IsMainView="false" Name="EOM">
  471. <Code>MP:=(H+L)/2;
  472. MM :=MP-REF(MP,1);
  473. BR :=V/(H-L)/1000000;
  474. EOM : MM/BR;
  475. MA(EOM,N);</Code>
  476. <Description />
  477. <DisabledCycle />
  478. <FullName>Ease of Movement</FullName>
  479. <Params>
  480. <FormulaParam DefaultValue="14" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  481. </Params>
  482. </Program>
  483. </Programs>
  484. </Namespace>
  485. <Namespace Name="波動性指標" Version="">
  486. <Description />
  487. <GroupOnly>true</GroupOnly>
  488. <Namespaces />
  489. <Programs>
  490. <Program IsMainView="false" Name="PSY">
  491. <Code>COUNT(CLOSE&gt;REF(CLOSE,1),N)/N*100</Code>
  492. <Description>除非股票價格不斷上漲,投資者不會願意以比其他人更高的價格購買股票。除非股票價格不斷下跌,投資者不會願意以比其他人更低的價格賣出股票。在股票高價時購買的投資者在價格回升之前不會賣出。</Description>
  493. <DisabledCycle />
  494. <FullName>心理線</FullName>
  495. <Params>
  496. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  497. </Params>
  498. </Program>
  499. <Program IsMainView="false" Name="VR">
  500. <Code>LC:=REF(CLOSE,1);
  501. SUM(IF(CLOSE&gt;LC,VOL,0),N)/
  502. SUM(IF(CLOSE&lt;=LC,VOL,0),N)*100
  503. </Code>
  504. <Description>成交量變異率是由Jack Schwager的技術分析指標變化來,區分成交量大的天數。將成交量變異率與指標時間段的變動範圍相比較,得出在一段交易時間裏的突破。</Description>
  505. <DisabledCycle />
  506. <FullName>成交量變異率</FullName>
  507. <Params>
  508. <FormulaParam DefaultValue="26" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
  509. </Params>
  510. </Program>
  511. <Program IsMainView="false" Name="ATR">
  512. <Code>LC :=REF(CLOSE,1);
  513. TR := MAX(HIGH-LOW,ABS(LC-HIGH),ABS(LC-LOW));
  514. ATR : SMA(TR,N,1)</Code>
  515. <Description>真實波動幅度均值是由J. Welles Wilder發明。指標是爲了確認證券的方差。替換一段時間的高、低值範圍,因爲高、低值範圍沒有考慮極值。</Description>
  516. <DisabledCycle />
  517. <FullName>真實波動幅度均值</FullName>
  518. <Params>
  519. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="N" ParamType="double" />
  520. </Params>
  521. </Program>
  522. <Program IsMainView="false" Name="VOLATI">
  523. <Code>EC := EMA(HIGH-LOW,N);
  524. (EC-REF(EC,N))/REF(EC,N)*100</Code>
  525. <Description>Marc Chaikin將每一期的最高、最低值的範圍作爲方差。</Description>
  526. <DisabledCycle />
  527. <FullName>Chaikin方差</FullName>
  528. <Params>
  529. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  530. </Params>
  531. </Program>
  532. <Program IsMainView="false" Name="Aroon">
  533. <Code>Up:(N-HHVBARS(C,N))/N*100;
  534. Down:(N-LLVBARS(C,N))/N*100;</Code>
  535. <Description>Aroon指標包括兩條線。Aroon(上升)和Aroon(下降)。在計算中,時間段的數量作爲唯一的參數。Aroon(上升)是在時間段開始到最高價出現的時長。如果股票以新的最高價收盤,Aroon(上升)是+100.對于其後的沒有出現新的更高的收盤價的時間段,Aroon(上升)將以 (1/ 時間段數量) x 100 下降。</Description>
  536. <DisabledCycle />
  537. <FullName>Aroon</FullName>
  538. <Params>
  539. <FormulaParam DefaultValue="25" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
  540. </Params>
  541. </Program>
  542. <Program IsMainView="false" Name="HV">
  543. <Code>LogS :=Log(C/Ref(C,1));
  544. TLogs :=Sum(LogS,N);
  545. ALogs :=TLogs/N;
  546. Delta :=LogS-ALogs;
  547. SSD :=Sum(Delta*Delta,N);
  548. HV : Sqrt(SSD/(N-1))*Sqrt(T)</Code>
  549. <Description />
  550. <DisabledCycle />
  551. <FullName />
  552. <Params>
  553. <FormulaParam DefaultValue="21" Description="" MaxValue="10000" MinValue="1" Name="N" ParamType="double" />
  554. <FormulaParam DefaultValue="252" Description="" MaxValue="1000000000" MinValue="0" Name="T" ParamType="double" />
  555. </Params>
  556. </Program>
  557. </Programs>
  558. </Namespace>
  559. <Namespace Name="價格下冊指標" Version="">
  560. <Description />
  561. <GroupOnly>true</GroupOnly>
  562. <Namespaces />
  563. <Programs>
  564. <Program IsMainView="false" Name="ASI">
  565. <Code>LC:=REF(CLOSE,1);
  566. AA:=ABS(HIGH-LC);
  567. BB:=ABS(LOW-LC);
  568. CC:=ABS(HIGH-REF(LOW,1));
  569. DD:=ABS(LC-REF(OPEN,1));
  570. R:=IF(AA&gt;BB &amp; AA&gt;CC,AA+BB/2+DD/4,IF(BB&gt;CC &amp; BB&gt;AA,BB+AA/2+DD/4,CC+DD/4));
  571. X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
  572. SI:=16*X/R*MAX(AA,BB);
  573. ASI:SUM(SI,0)</Code>
  574. <Description>累積擺動指標是Welles Wilder擺動指標的和。</Description>
  575. <DisabledCycle />
  576. <FullName>累積擺動指標</FullName>
  577. <Params />
  578. </Program>
  579. <Program IsMainView="false" Name="OBV">
  580. <Code>OBV:SUM(IF(CLOSE&gt;REF(CLOSE,1),VOL,IF(CLOSE&lt;REF(CLOSE,1),-VOL,0)),0),Width2;
  581. M:MA(OBV,N);
  582. </Code>
  583. <Description>成交量是在一段時間合約的買賣量。是獨立于價格的買、賣指標。平衡交易量是追蹤成交量變化的指標。當一個交易日的收盤價比前一交易日的高,將在總量裏加上這一日的成交量,反之,減去。指標成立的假設是價格趨勢變動前成交量會變動。Joseph Granville發明了平衡交易量。指標的定義並不十分嚴格,須與其它價格趨勢反轉指標一起使用。</Description>
  584. <DisabledCycle />
  585. <FullName>平衡交易量指標</FullName>
  586. <Params>
  587. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  588. </Params>
  589. </Program>
  590. <Program IsMainView="false" Name="PVT">
  591. <Code>SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*VOL,0)</Code>
  592. <Description>價量趨勢指標是以平衡交易量指標變化出的。價量趨勢指標可以確認趨勢的強弱和警告反轉。PVT=昨日PVT+今日成交量*(今日收盤價-昨日收盤價)/ 昨日收盤價</Description>
  593. <DisabledCycle />
  594. <FullName>價量趨勢指標</FullName>
  595. <Params />
  596. </Program>
  597. <Program IsMainView="false" Name="SOBV">
  598. <Code>SUM(IF(ISUP,VOL,IF(ISDOWN,-VOL,0)),0)</Code>
  599. <Description />
  600. <DisabledCycle />
  601. <FullName>SOBV</FullName>
  602. <Params />
  603. </Program>
  604. <Program IsMainView="false" Name="WVAD">
  605. <Code>WVAD : (CLOSE-OPEN)/(HIGH-LOW)*VOL;
  606. MA1:MA(WVAD,N1);
  607. MA2:MA(WVAD,N2);
  608. </Code>
  609. <Description />
  610. <DisabledCycle />
  611. <FullName>Williams变量累积分布指标</FullName>
  612. <Params>
  613. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  614. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  615. </Params>
  616. </Program>
  617. <Program IsMainView="false" Name="NVI">
  618. <Code>A:=IF(V&lt;=REF(V,1),C/REF(C,1),1);
  619. NVI:Start*MUL(A);
  620. M1:EMA(NVI,N1);
  621. M2:EMA(NVI,N2);</Code>
  622. <Description>負量指標關注成交量比上一交易日下降的時候。前提條件是當成交量下降,“聰明錢”會是多頭。1.得到昨日的負量指標。2.如果今天的成交量比昨日的低,加上{(今日收盤價-昨日收盤價)/昨日收盤價}*昨日的負量指標。3.如果不是,加0.</Description>
  623. <DisabledCycle />
  624. <FullName>負量指標</FullName>
  625. <Params>
  626. <FormulaParam DefaultValue="1" Description="" MaxValue="1000000000" MinValue="0" Name="Start" ParamType="double" />
  627. <FormulaParam DefaultValue="9" Description="" MaxValue="10000" MinValue="0" Name="N1" ParamType="double" />
  628. <FormulaParam DefaultValue="255" Description="" MaxValue="10000" MinValue="0" Name="N2" ParamType="double" />
  629. </Params>
  630. </Program>
  631. <Program IsMainView="false" Name="PVI">
  632. <Code>A:=IF(V&gt;=REF(V,1),C/REF(C,1),1);
  633. PVI:Start*MUL(A);
  634. M1:MA(PVI,N1);
  635. M2:MA(PVI,N2);</Code>
  636. <Description>1.得到昨日的正量指標。2.如果今天的成交量比昨日的高,加上{(今日收盤價-昨日收盤價)/昨日收盤價}*昨日的負量指標。3.如果不是,加0.</Description>
  637. <DisabledCycle />
  638. <FullName>正量指標</FullName>
  639. <Params>
  640. <FormulaParam DefaultValue="1" Description="" MaxValue="1000000000" MinValue="0" Name="Start" ParamType="double" />
  641. <FormulaParam DefaultValue="9" Description="" MaxValue="10000" MinValue="0" Name="N1" ParamType="double" />
  642. <FormulaParam DefaultValue="255" Description="" MaxValue="10000" MinValue="0" Name="N2" ParamType="double" />
  643. </Params>
  644. </Program>
  645. </Programs>
  646. </Namespace>
  647. <Namespace Name="波段指標" Version="">
  648. <Description />
  649. <GroupOnly>true</GroupOnly>
  650. <Namespaces />
  651. <Programs>
  652. <Program IsMainView="true" Name="BBIBOLL">
  653. <Code>BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
  654. UPR:BBI+P*STD(BBI,N);
  655. DWN:BBI-P*STD(BBI,N)</Code>
  656. <Description />
  657. <DisabledCycle />
  658. <FullName>BBIBOLL</FullName>
  659. <Params>
  660. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  661. <FormulaParam DefaultValue="3" Description="" MaxValue="20" MinValue="0.1" Name="P" ParamType="double" />
  662. </Params>
  663. </Program>
  664. <Program IsMainView="true" Name="BB">
  665. <Code>MID : MA(CLOSE,N);
  666. UPPER: MID + P*STD(CLOSE,N);
  667. LOWER: MID - P*STD(CLOSE,N);</Code>
  668. <Description>布林通道由John Bollinger發明。主要是將證券的方差以更容易的方法展現。指標包括三個範圍:簡單移動平均(中間),簡單移動平均加兩個標准差(上方),簡單移動平均減兩個標准差(下方)</Description>
  669. <DisabledCycle />
  670. <FullName>布林通道</FullName>
  671. <Params>
  672. <FormulaParam DefaultValue="20" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
  673. <FormulaParam DefaultValue="2" Description="" MaxValue="10" MinValue="0.1" Name="P" ParamType="double" />
  674. </Params>
  675. </Program>
  676. <Program IsMainView="false" Name="CDP">
  677. <Code>PT := REF(HIGH,1)-REF(LOW,1);
  678. CDP : (HIGH + LOW + CLOSE)/3;
  679. AH : CDP + PT;
  680. AL : CDP - PT;
  681. NH : 2*CDP-LOW;
  682. NL : 2*CDP-HIGH</Code>
  683. <Description />
  684. <DisabledCycle />
  685. <FullName />
  686. <Params />
  687. </Program>
  688. <Program IsMainView="true" Name="ENV">
  689. <Code>UPPER : MA(CLOSE,N)*1.06;
  690. LOWER : MA(CLOSE,N)*0.94</Code>
  691. <Description>信封指標包括兩個移動平均。一個移動平均是向上移動得出,一個是向下移動得出。</Description>
  692. <DisabledCycle />
  693. <FullName>信封指標</FullName>
  694. <Params>
  695. <FormulaParam DefaultValue="14" Description="" MaxValue="300" MinValue="2" Name="N" ParamType="double" />
  696. </Params>
  697. </Program>
  698. <Program IsMainView="true" Name="MIKE">
  699. <Code>TYP:=(HIGH+LOW+CLOSE)/3;
  700. LL:=LLV(LOW,N);
  701. HH:=HHV(HIGH,N);
  702. WR:TYP+(TYP-LL);
  703. MR:TYP+(HH-LL);
  704. SR:2*HH-LL;
  705. WS:TYP-(HH-TYP);
  706. MS:TYP-(HH-LL);
  707. SS:2*LL-HH</Code>
  708. <Description />
  709. <DisabledCycle />
  710. <FullName>MIKE</FullName>
  711. <Params>
  712. <FormulaParam DefaultValue="12" Description="" MaxValue="200" MinValue="1" Name="N" ParamType="double" />
  713. </Params>
  714. </Program>
  715. <Program IsMainView="true" Name="SR">
  716. <Code>M :=(H+L+C)/3;
  717. A :=H-L;
  718. RR:=M+A;
  719. SS:=M-A;
  720. R:BackSet(IsLastBar,5)*RR.LastData,Width2,HighSpeed,ColorRed;
  721. S:BackSet(IsLastBar,5)*SS.LastData,Width2,HighSpeed,ColorDarkGreen;
  722. DrawNumber(BarsSince(R)==1,R,R,'f2'),Label0,VCenter,Right,ColorRed;
  723. DrawNumber(BarsSince(S)==1,S,S,'f2'),Label0,VCenter,Right,ColorDarkGreen;
  724. </Code>
  725. <Description />
  726. <DisabledCycle />
  727. <FullName />
  728. <Params />
  729. </Program>
  730. <Program IsMainView="false" Name="BBWidth">
  731. <Code>P*STD(C,N)*2,Width1.6,HighQuality</Code>
  732. <Description>布林極限寬得出布林通道的寬。當布林極限寬的值增加,證券的方差也增加。</Description>
  733. <DisabledCycle />
  734. <FullName>布林極限寬</FullName>
  735. <Params>
  736. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  737. <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="0.1" Name="P" ParamType="double" />
  738. </Params>
  739. </Program>
  740. <Program IsMainView="true" Name="Keltner">
  741. <Code>Shift := FACTOR * ATR(Length);
  742. Avg := EMA(C, Length);
  743. Upper : Avg + Shift;
  744. Lower : Avg - Shift</Code>
  745. <Description />
  746. <DisabledCycle />
  747. <FullName>肯特納通道</FullName>
  748. <Params>
  749. <FormulaParam DefaultValue="16" Description="" MaxValue="100" MinValue="1" Name="Length" ParamType="double" />
  750. <FormulaParam DefaultValue="1.3" Description="" MaxValue="100" MinValue="0" Name="Factor" ParamType="double" />
  751. </Params>
  752. </Program>
  753. </Programs>
  754. </Namespace>
  755. <Namespace Name="指數指標" Version="">
  756. <Description />
  757. <GroupOnly>true</GroupOnly>
  758. <Namespaces />
  759. <Programs>
  760. <Program IsMainView="false" Name="ABI">
  761. <Code>ABS(ADVANCE - DECLINE)</Code>
  762. <Description>絕對幅度指標是由Norman G. Fosback發明,是市場動量指標。絕對幅度指標在不考慮價格的走向時,展現紐約證券交易所市場的交易量,方差和變動。可以認爲絕對幅度指標是“活躍度指標”。高的數值說明市場活躍和發生大的變化,低的數值說明市場變化不多</Description>
  763. <DisabledCycle />
  764. <FullName>絕對幅度指標</FullName>
  765. <Params />
  766. </Program>
  767. <Program IsMainView="false" Name="ADL">
  768. <Code>SUM(ADVANCE-DECLINE,0)</Code>
  769. <Description>價格漲落線是一個將每天股票收盤價高的數量減去收盤價低的數量的值的累積和。可以被用來測量市場的強弱。市場上漲的股票比下跌的多,價格漲落線上升。市場下跌的股票比上漲的多,價格漲落線下降。有時,主要的美國股票指數在上升,價格漲落線下降。這是差異,警告可能上漲趨勢將結束,價格反轉可能發生。但是,差異可能存在很長時間,價格反轉才發生。要有更多的分析來確認未來價格的走勢。</Description>
  770. <DisabledCycle />
  771. <FullName>價格漲落線</FullName>
  772. <Params />
  773. </Program>
  774. <Program IsMainView="false" Name="ADR">
  775. <Code>SUM(ADVANCE,N)/SUM(DECLINE,N)</Code>
  776. <Description>價格漲落率是上升股票的數量和下降股票的數量的比值。價格漲落率的移動平均通常會用作側度超買/超賣的指標。指標值越高,價格過度上升的程度越大,出現反轉的可能越高。同樣的,指標值越低,超賣程度越高。</Description>
  777. <DisabledCycle />
  778. <FullName>價格漲落率</FullName>
  779. <Params>
  780. <FormulaParam DefaultValue="10" Description="" MaxValue="200" MinValue="1" Name="N" ParamType="double" />
  781. </Params>
  782. </Program>
  783. <Program IsMainView="false" Name="BT">
  784. <Code>MA(ADVANCE/(ADVANCE-DECLINE),N)</Code>
  785. <Description>信任寬度是由Dr. Martin Zweig發明。上漲股票數量的10日指數移動平均/上漲和下跌股票數量。當在一個10日的時間階段裏,信任寬度指標從低于40%的值上升到高于61.5%的值,“信任寬度”出現。說明市場從超賣轉變,但還沒成超買。</Description>
  786. <DisabledCycle />
  787. <FullName>信任寬度</FullName>
  788. <Params>
  789. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="1" Name="N" ParamType="double" />
  790. </Params>
  791. </Program>
  792. <Program IsMainView="false" Name="CHAIKIN">
  793. <Code>ADL := SUM(ADVANCE-DECLINE,0);
  794. CHA : MA(ADL,SHORT) - MA(ADL,LONG)</Code>
  795. <Description>累積量指標測量一天或一周的淨交易量的變化。</Description>
  796. <DisabledCycle />
  797. <FullName>Chaikin 累積/分布 指標</FullName>
  798. <Params>
  799. <FormulaParam DefaultValue="10" Description="" MaxValue="300" MinValue="5" Name="LONG" ParamType="double" />
  800. <FormulaParam DefaultValue="3" Description="" MaxValue="300" MinValue="1" Name="SHORT" ParamType="double" />
  801. </Params>
  802. </Program>
  803. <Program IsMainView="false" Name="MCO">
  804. <Code>EMA(ADVANCE-DECLINE,N1)/10 - EMA(ADVANCE-DECLINE,N2)/20</Code>
  805. <Description>McClellan 擺動指標是超買/超賣指標。當它穿過0線,說明短期趨勢會變動。向上穿過0線是多方市場的信號。向下穿過0線是空方市場的信號。McClellan 擺動指標是將39日漲跌數量的移動平均減19日漲跌數量的移動平均。</Description>
  806. <DisabledCycle />
  807. <FullName>McClellan 擺動指標</FullName>
  808. <Params>
  809. <FormulaParam DefaultValue="19" Description="" MaxValue="80" MinValue="10" Name="N1" ParamType="double" />
  810. <FormulaParam DefaultValue="39" Description="" MaxValue="100" MinValue="30" Name="N2" ParamType="double" />
  811. </Params>
  812. </Program>
  813. <Program IsMainView="false" Name="OBOS">
  814. <Code>MA(ADVANCE-DECLINE,N)</Code>
  815. <Description />
  816. <DisabledCycle />
  817. <FullName>超買、超賣</FullName>
  818. <Params>
  819. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  820. </Params>
  821. </Program>
  822. <Program IsMainView="false" Name="STIX">
  823. <Code>EMA(ADVANCE/(ADVANCE+DECLINE)*100,N)</Code>
  824. <Description />
  825. <DisabledCycle />
  826. <FullName>STIX</FullName>
  827. <Params>
  828. <FormulaParam DefaultValue="11" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  829. </Params>
  830. </Program>
  831. </Programs>
  832. </Namespace>
  833. <Namespace Name="下冊指標" Version="">
  834. <Description />
  835. <GroupOnly>true</GroupOnly>
  836. <Namespaces />
  837. <Programs>
  838. <Program IsMainView="false" Name="AMOUNT">
  839. <Code>AMOUNT,VOLSTICK;
  840. MA1:MA(AMOUNT,N1);
  841. MA2:MA(AMOUNT,N2)</Code>
  842. <Description>數量</Description>
  843. <DisabledCycle />
  844. <FullName>數量</FullName>
  845. <Params>
  846. <FormulaParam DefaultValue="5" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  847. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  848. </Params>
  849. </Program>
  850. <Program IsMainView="false" Name="VOLMA">
  851. <Code>VV:V,VOLSTICK;
  852. @SetName(VV,'');
  853. MA1:MA(VV,M1);
  854. @SetName(MA1,'MA');
  855. </Code>
  856. <Description>成交量和移動平均</Description>
  857. <DisabledCycle />
  858. <FullName>成交量</FullName>
  859. <Params>
  860. <FormulaParam DefaultValue="60" Description="" MaxValue="100" MinValue="1" Name="M1" ParamType="double" />
  861. </Params>
  862. </Program>
  863. <Program IsMainView="false" Name="VOSC">
  864. <Code>(MA(VOL,SHORT)-MA(VOL,LONG))/MA(VOL,SHORT)*100</Code>
  865. <Description>成交量擺動指標用兩個移動平均確認成交量的趨勢。成交量擺動指標測量移動平均的更快值與更慢值的差。當快的移動平均大于慢的移動平均,指標是正數。當快的移動平均小于慢的移動平均,指標是負數。當兩個移動平均相同,指標是0.</Description>
  866. <DisabledCycle />
  867. <FullName>成交量擺動指標</FullName>
  868. <Params>
  869. <FormulaParam DefaultValue="12" Description="" MaxValue="50" MinValue="2" Name="SHORT" ParamType="double" />
  870. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="15" Name="LONG" ParamType="double" />
  871. </Params>
  872. </Program>
  873. <Program IsMainView="false" Name="VSTD">
  874. <Code>STD(VOL,N)</Code>
  875. <Description>成交量 STD</Description>
  876. <DisabledCycle />
  877. <FullName>成交量 STD</FullName>
  878. <Params>
  879. <FormulaParam DefaultValue="10" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  880. </Params>
  881. </Program>
  882. <Program IsMainView="false" Name="PVO">
  883. <Code>E1 :=EMA(V,N1);
  884. PVO : (E1-EMA(V,N2))/E1*100,Width1.6,HighQuality;
  885. M : EMA(PVO,N3);</Code>
  886. <Description>成交量擺動百分比是兩個成交量移動平均的百分比差異。</Description>
  887. <DisabledCycle />
  888. <FullName>成交量擺動百分比</FullName>
  889. <Params>
  890. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  891. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  892. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
  893. </Params>
  894. </Program>
  895. <Program IsMainView="false" Name="MaxV">
  896. <Code>HHV(V,N)</Code>
  897. <Description />
  898. <DisabledCycle />
  899. <FullName>N日的最大成交量</FullName>
  900. <Params>
  901. <FormulaParam DefaultValue="20" Description="" MaxValue="100000" MinValue="0" Name="N" ParamType="double" />
  902. </Params>
  903. </Program>
  904. <Program IsMainView="false" Name="COLORV">
  905. <Code>STICKLINE(C&gt;REF(C,1),V,0),Brush#FF0000,Color#800000;
  906. STICKLINE(C&lt;=REF(C,1),V,0),Brush#00FF00,Color#008000;</Code>
  907. <Description />
  908. <DisabledCycle />
  909. <FullName>自定義顔色的成交量</FullName>
  910. <Params />
  911. </Program>
  912. </Programs>
  913. </Namespace>
  914. <Namespace Name="振蕩指標" Version="">
  915. <Description />
  916. <GroupOnly>true</GroupOnly>
  917. <Namespaces />
  918. <Programs>
  919. <Program IsMainView="false" Name="AD">
  920. <Code>AD:SUM(((CLOSE-LOW)-(HIGH-CLOSE))/(HIGH-LOW)*VOL,0);
  921. M:MA(AD,N);</Code>
  922. <Description>累積/分布指標是動量指標,將價格和成交量的變化聯系起來。指標成立的前提是價格變化隨著較大的成交量,價格的變化量會更大。</Description>
  923. <DisabledCycle />
  924. <FullName>累積/分布指標</FullName>
  925. <Params>
  926. <FormulaParam DefaultValue="20" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  927. </Params>
  928. </Program>
  929. <Program IsMainView="false" Name="MI">
  930. <Code>A:C-REF(C,N);
  931. MI:SMA(A,N,1);</Code>
  932. <Description />
  933. <DisabledCycle />
  934. <FullName>MI</FullName>
  935. <Params>
  936. <FormulaParam DefaultValue="12" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  937. </Params>
  938. </Program>
  939. <Program IsMainView="false" Name="MICD">
  940. <Code>MI:=C-REF(C,1);
  941. AMI:=SMA(MI,N,1);
  942. DIF:MA(REF(AMI,1),N1)-MA(REF(AMI,1),N2);
  943. MICD:SMA(DIF,10,1)</Code>
  944. <Description />
  945. <DisabledCycle />
  946. <FullName>MICD</FullName>
  947. <Params>
  948. <FormulaParam DefaultValue="3" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  949. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  950. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  951. </Params>
  952. </Program>
  953. <Program IsMainView="false" Name="RC">
  954. <Code>RC:=C/REF(C,N);
  955. ARC:SMA(REF(RC,1),N,1)
  956. </Code>
  957. <Description />
  958. <DisabledCycle />
  959. <FullName>變化率</FullName>
  960. <Params>
  961. <FormulaParam DefaultValue="50" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  962. </Params>
  963. </Program>
  964. <Program IsMainView="false" Name="RCCD">
  965. <Code>RC:=C/REF(C,N);
  966. ARC:=SMA(REF(RC,1),N,1);
  967. DIF:MA(REF(ARC,1),N1)-MA(REF(ARC,1),N2);
  968. RCCD:SMA(DIF,N,1)</Code>
  969. <Description />
  970. <DisabledCycle />
  971. <FullName>異同變化率</FullName>
  972. <Params>
  973. <FormulaParam DefaultValue="59" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  974. <FormulaParam DefaultValue="21" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  975. <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  976. </Params>
  977. </Program>
  978. <Program IsMainView="false" Name="SRMI">
  979. <Code>IF(C&lt;REF(C,N),(C-REF(C,N))/REF(C,N),IF(C==REF(C,N),0,(C-REF(C,N))/C))</Code>
  980. <Description />
  981. <DisabledCycle />
  982. <FullName>SRMI</FullName>
  983. <Params>
  984. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  985. </Params>
  986. </Program>
  987. <Program IsMainView="false" Name="CMF">
  988. <Code>D :=(HIGH-LOW);
  989. AD:=IF(D==0,0,((CLOSE-LOW)-(HIGH-CLOSE))/D*VOL);
  990. MV :=MA(VOL,N);
  991. CMF:IF(MV==0,0,MA(AD,N)/MV),COLORSTICK;</Code>
  992. <Description>Chaikin 資金流由Marc Chaikin發明。指標是用每天的累積/分布線的值計算得出。累積/分布線成立的基本前提是買、賣方的強弱可以用在當前階段,收盤價相對最高價和最低價的位置確認。當收盤價和最高更近,買方較強。當收盤價和最低價更近,賣方較強。每個階段,收盤價的相對位置數值乘以成交量得出累積/分布指標。</Description>
  993. <DisabledCycle />
  994. <FullName>Chaikin 資金流</FullName>
  995. <Params>
  996. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  997. </Params>
  998. </Program>
  999. <Program IsMainView="false" Name="ULT">
  1000. <Code>LC :=REF(C,1);
  1001. TL :=MIN(L,LC);
  1002. BP :=C-TL;
  1003. TR := MAX(H-L,ABS(LC-H),ABS(LC-L));
  1004. BPSum1 := MA(BP,N1);
  1005. BPSum2 := MA(BP,N2);
  1006. BPSum3 := MA(BP,N3);
  1007. TRSum1 := MA(TR,N1);
  1008. TRSum2 := MA(TR,N2);
  1009. TRSum3 := MA(TR,N3);
  1010. RawUO :=4*(BPSum1/TRSum1)+2*(BPSum2/TRSum2)+(BPSum3/TRSum3);
  1011. (RawUO/(4+2+1))*100,Width1.6,HighQuality;
  1012. </Code>
  1013. <Description>Larry Williams發明。極限擺動指標將三個階段股票價格的變動整合爲一個有界的擺動指標。指標的值是從0至100,50是中值。低于30是超賣,高于70是超買。</Description>
  1014. <DisabledCycle />
  1015. <FullName>極限擺動指標</FullName>
  1016. <Params>
  1017. <FormulaParam DefaultValue="7" Description="" MaxValue="100" MinValue="1" Name="N1" ParamType="double" />
  1018. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N2" ParamType="double" />
  1019. <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="1" Name="N3" ParamType="double" />
  1020. </Params>
  1021. </Program>
  1022. <Program IsMainView="false" Name="AroonOsc">
  1023. <Code>0;
  1024. "Aroon(N)[UP]"-"Aroon(N)[DOWN]"</Code>
  1025. <Description>Aroon 擺動指標是將Aroon(上升)減Aroon(下降)。Aroon 擺動指標從-100至+100.</Description>
  1026. <DisabledCycle />
  1027. <FullName>Aroon 擺動指標</FullName>
  1028. <Params>
  1029. <FormulaParam DefaultValue="25" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
  1030. </Params>
  1031. </Program>
  1032. </Programs>
  1033. </Namespace>
  1034. <Namespace Name="其他" Version="">
  1035. <Description />
  1036. <GroupOnly>true</GroupOnly>
  1037. <Namespaces />
  1038. <Programs>
  1039. <Program IsMainView="false" Name="MASS">
  1040. <Code>SUM(EMA((HIGH-LOW),N1)/EMA(EMA((HIGH-LOW),N1),N1),N2)</Code>
  1041. <Description>價格重量指數用來通過測量最高價和最低價間範圍的變窄和變寬,確認趨勢的反轉。當範圍變寬,指數上升,反之,下降。</Description>
  1042. <DisabledCycle />
  1043. <FullName>價格重量指數</FullName>
  1044. <Params>
  1045. <FormulaParam DefaultValue="9" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
  1046. <FormulaParam DefaultValue="25" Description="" MaxValue="100" MinValue="5" Name="N2" ParamType="double" />
  1047. </Params>
  1048. </Program>
  1049. <Program IsMainView="false" Name="STD">
  1050. <Code>STD(CLOSE,N)</Code>
  1051. <Description />
  1052. <DisabledCycle />
  1053. <FullName>STD</FullName>
  1054. <Params>
  1055. <FormulaParam DefaultValue="26" Description="" MaxValue="100" MinValue="2" Name="N" ParamType="double" />
  1056. </Params>
  1057. </Program>
  1058. <Program IsMainView="false" Name="VHF">
  1059. <Code>(HHV(CLOSE,N)-LLV(CLOSE,N))/SUM(ABS(CLOSE-REF(CLOSE,1)),N)</Code>
  1060. <Description>垂直水平過濾由Adam White發明。指標區分趨勢和盤整市場。指標測量了趨勢的程度,類似于方向移動指標的ADX.在趨勢市場可以用趨勢指標,在盤整市場可以用動量指標。在不同的時間階段可以變化指標的時間段的數量。White以前推薦28天,現在普遍用18天與6天的移動平均。</Description>
  1061. <DisabledCycle />
  1062. <FullName>垂直水平過濾</FullName>
  1063. <Params>
  1064. <FormulaParam DefaultValue="28" Description="" MaxValue="100" MinValue="3" Name="N" ParamType="double" />
  1065. </Params>
  1066. </Program>
  1067. <Program IsMainView="false" Name="WAD">
  1068. <Code>SUM(IF( CLOSE&gt;REF(CLOSE,1),CLOSE-MIN(REF(CLOSE,1),LOW),IF(CLOSE&lt;REF(CLOSE,1),
  1069. CLOSE-MAX(REF(CLOSE,1),HIGH),0)),0)</Code>
  1070. <Description>價格指標測量證券價格的累積和分布。</Description>
  1071. <DisabledCycle />
  1072. <FullName>William 累積/分布指標</FullName>
  1073. <Params />
  1074. </Program>
  1075. <Program IsMainView="false" Name="ZigLabel">
  1076. <Code>DrawNumber(FindPeak(N),H,H,'f2'),Label3;
  1077. DrawNumber(FindTrough(N),L,L,'f2'),Label3,Valign2;</Code>
  1078. <Description />
  1079. <DisabledCycle />
  1080. <FullName>之字標簽</FullName>
  1081. <Params>
  1082. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1083. </Params>
  1084. </Program>
  1085. <Program IsMainView="false" Name="PR">
  1086. <Code>PR:C/FML(StockCode,'C')*100,HighQuality;
  1087. EMA(PR,N);</Code>
  1088. <Description>相對價格比較一個證券和其他證券的差別。</Description>
  1089. <DisabledCycle />
  1090. <FullName>相對價格</FullName>
  1091. <Params>
  1092. <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="string" />
  1093. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1094. </Params>
  1095. </Program>
  1096. <Program IsMainView="true" Name="Fibonnaci">
  1097. <Code>A := HHV(H,N);
  1098. B := LLV(L,N);
  1099. HH:BackSet(IsLastBar,N)*A.LastData,Width2;
  1100. LL:BackSet(IsLastBar,N)*B.LastData,Width2;
  1101. Height := HH-LL;
  1102. A1 : LL+Height*0.382;
  1103. A2 : LL+Height*0.5;
  1104. A3 : LL+Height*0.618;
  1105. @SetTextVisible(HH,false);
  1106. @SetTextVisible(LL,false);
  1107. @SetTextVisible(A1,false);
  1108. @SetTextVisible(A2,false);
  1109. @SetTextVisible(A3,false);</Code>
  1110. <Description />
  1111. <DisabledCycle />
  1112. <FullName>Fibonnaci</FullName>
  1113. <Params>
  1114. <FormulaParam DefaultValue="100" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1115. </Params>
  1116. </Program>
  1117. <Program IsMainView="true" Name="LinRegr">
  1118. <Code>A := LR(C,N);
  1119. Dist :=C-A;
  1120. M := Max(MaxValue(Dist),ABS(MinValue(Dist)))*P/100;
  1121. Upper : A +M;
  1122. Lower : A - M;
  1123. A;
  1124. @SetName(A,'');
  1125. @SetTextVisible(Upper,false);
  1126. @SetTextVisible(Lower,false);</Code>
  1127. <Description />
  1128. <DisabledCycle />
  1129. <FullName>線性回歸通道</FullName>
  1130. <Params>
  1131. <FormulaParam DefaultValue="14" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  1132. <FormulaParam DefaultValue="100" Description="" MaxValue="100" MinValue="0" Name="P" ParamType="double" />
  1133. </Params>
  1134. </Program>
  1135. <Program IsMainView="false" Name="RawData">
  1136. <Code>O:OrgData(DataName);
  1137. @SetName(O,DataName);
  1138. @SetTextVisible(false);</Code>
  1139. <Description />
  1140. <DisabledCycle />
  1141. <FullName>得出原始數據</FullName>
  1142. <Params>
  1143. <FormulaParam DefaultValue="0" Description="" MaxValue="0" MinValue="0" Name="DataName" ParamType="string" />
  1144. </Params>
  1145. </Program>
  1146. <Program IsMainView="false" Name="ZigW">
  1147. <Code>Zig(N),Width2;
  1148. A :=FindPeak(N);
  1149. B :=FindTrough(N);
  1150. A1 :=ToValue(A,H,0.5);
  1151. A2 :=ToValue(B,L,0.5);
  1152. PolyLine(A,H),StyleDash;
  1153. PolyLine(B,L),StyleDash,SameColor;
  1154. A3 :=ZIGP(N);
  1155. DrawNumber(A1,A1,A3,'f3'),Label3,VAlign0;
  1156. DrawNumber(A2,A2,A3,'f3'),Label3,VAlign0;</Code>
  1157. <Description />
  1158. <DisabledCycle />
  1159. <FullName>帶回溯的之字</FullName>
  1160. <Params>
  1161. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1162. </Params>
  1163. </Program>
  1164. <Program IsMainView="true" Name="ZigSR">
  1165. <Code>A1 :=Peak(N);
  1166. A2 :=Peak(N,2);
  1167. B1 :=PeakBars(N);
  1168. B2 :=PeakBars(N,2);
  1169. DrawLine(B2.LastData,A2.LastData,B1.LastData,A1.LastData,1);
  1170. DrawText(B2.LastData,A2.LastData,'{HIGH} +hi[UP]'),SameColor;
  1171. DrawText(B1.LastData,A1.LastData,'{HIGH} +hi'),SameColor;
  1172. D1 :=Trough(N);
  1173. D2 :=Trough(N,2);
  1174. E1 :=TroughBars(N);
  1175. E2 :=TroughBars(N,2);
  1176. DrawLine(E2.LastData,D2.LastData,E1.LastData,D1.LastData,1),SameColor;
  1177. DrawText(E2.LastData,D2.LastData,'{LOW} +lo[up channel]'),VAlign2,SameColor;
  1178. DrawText(E1.LastData,D1.LastData,'{LOW} +lo[b/o retest]'),VAlign2,SameColor;
  1179. </Code>
  1180. <Description />
  1181. <DisabledCycle />
  1182. <FullName>之字推力和阻力</FullName>
  1183. <Params>
  1184. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1185. </Params>
  1186. </Program>
  1187. <Program IsMainView="true" Name="ZigIcon">
  1188. <Code>DrawIcon(FindPeak(N),H,'dn.gif'),Top;
  1189. DrawIcon(FindTrough(N),L,'up.gif'),Bottom;</Code>
  1190. <Description />
  1191. <DisabledCycle />
  1192. <FullName>以之字畫買、賣標識</FullName>
  1193. <Params>
  1194. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1195. </Params>
  1196. </Program>
  1197. <Program IsMainView="true" Name="TimeLabel">
  1198. <Code>AA : DrawText(NEARESTTIME(D,T),C,Text);
  1199. @SetAttr(AA,Style);
  1200. @SETTEXTVISIBLE(false);</Code>
  1201. <Description />
  1202. <DisabledCycle />
  1203. <FullName>在已定的時間畫標簽</FullName>
  1204. <Params>
  1205. <FormulaParam DefaultValue="20031231" Description="" MaxValue="100000000" MinValue="0" Name="D" ParamType="double" />
  1206. <FormulaParam DefaultValue="091000" Description="" MaxValue="100000000" MinValue="0" Name="T" ParamType="double" />
  1207. <FormulaParam DefaultValue="Rumour" Description="" MaxValue="0" MinValue="0" Name="Text" ParamType="string" />
  1208. <FormulaParam DefaultValue="Font(Verdana, 10pt, style=Bold, Italic),ColorRed" Description="" MaxValue="0" MinValue="0" Name="Style" ParamType="string" />
  1209. </Params>
  1210. </Program>
  1211. </Programs>
  1212. </Namespace>
  1213. <Namespace Name="本地" Version="">
  1214. <Description />
  1215. <GroupOnly>true</GroupOnly>
  1216. <Namespaces />
  1217. <Programs>
  1218. <Program IsMainView="false" Name="HL">
  1219. <Code>N</Code>
  1220. <Description />
  1221. <DisabledCycle />
  1222. <FullName>水平線</FullName>
  1223. <Params>
  1224. <FormulaParam DefaultValue="0" Description="" MaxValue="20000" MinValue="1" Name="N" ParamType="double" />
  1225. </Params>
  1226. </Program>
  1227. <Program IsMainView="false" Name="EMA">
  1228. <Code>EMA(C,N);</Code>
  1229. <Description />
  1230. <DisabledCycle />
  1231. <FullName>EMA</FullName>
  1232. <Params>
  1233. <FormulaParam DefaultValue="12" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  1234. </Params>
  1235. </Program>
  1236. <Program IsMainView="false" Name="MA">
  1237. <Code>MA(C,N);</Code>
  1238. <Description />
  1239. <DisabledCycle />
  1240. <FullName>MA</FullName>
  1241. <Params>
  1242. <FormulaParam DefaultValue="12" Description="" MaxValue="1000" MinValue="1" Name="N" ParamType="double" />
  1243. </Params>
  1244. </Program>
  1245. <Program IsMainView="false" Name="MAIN">
  1246. <Code>M:STOCK;
  1247. @SetName('');
  1248. @SetTextVisible(M,false);</Code>
  1249. <Description />
  1250. <DisabledCycle />
  1251. <FullName>Stock area</FullName>
  1252. <Params />
  1253. </Program>
  1254. <Program IsMainView="false" Name="VOL">
  1255. <Code>VOL,VOLSTICK;</Code>
  1256. <Description />
  1257. <DisabledCycle />
  1258. <FullName>顯示成交量</FullName>
  1259. <Params />
  1260. </Program>
  1261. <Program IsMainView="false" Name="DotLine">
  1262. <Code>N,StyleDash,ColorRed</Code>
  1263. <Description />
  1264. <DisabledCycle />
  1265. <FullName>水平虛線</FullName>
  1266. <Params>
  1267. <FormulaParam DefaultValue="0" Description="" MaxValue="20000" MinValue="0" Name="N" ParamType="double" />
  1268. </Params>
  1269. </Program>
  1270. <Program IsMainView="false" Name="MAIN2">
  1271. <Code>M:STOCK;
  1272. @SetName(M,StkLabel);
  1273. @SetTextVisible(false);
  1274. </Code>
  1275. <Description />
  1276. <DisabledCycle />
  1277. <FullName>Stock area 顯示代碼、值</FullName>
  1278. <Params />
  1279. </Program>
  1280. <Program IsMainView="false" Name="OverlayV">
  1281. <Code>A:VOL,VOLSTICK,HIGH0.2,Alpha100;
  1282. @SETNAME(A,'V');
  1283. @SETTEXTVISIBLE(false)</Code>
  1284. <Description />
  1285. <DisabledCycle />
  1286. <FullName>覆蓋的成交量</FullName>
  1287. <Params />
  1288. </Program>
  1289. <Program IsMainView="false" Name="REF">
  1290. <Code>A:=REF(FML(Indi),N);
  1291. BackSet(IsLastValue(A),A,M)</Code>
  1292. <Description />
  1293. <DisabledCycle />
  1294. <FullName>N日前的參考值</FullName>
  1295. <Params>
  1296. <FormulaParam DefaultValue="C" Description="" MaxValue="" MinValue="" Name="Indi" ParamType="indicator" />
  1297. <FormulaParam DefaultValue="1" Description="" MaxValue="10000" MinValue="0" Name="N" ParamType="double" />
  1298. <FormulaParam DefaultValue="20" Description="" MaxValue="10000" MinValue="0" Name="M" ParamType="double" />
  1299. </Params>
  1300. </Program>
  1301. <Program IsMainView="false" Name="REFC">
  1302. <Code>REF(C,N);</Code>
  1303. <Description />
  1304. <DisabledCycle />
  1305. <FullName>參考收盤價</FullName>
  1306. <Params>
  1307. <FormulaParam DefaultValue="1" Description="" MaxValue="1000000" MinValue="0" Name="N" ParamType="double" />
  1308. </Params>
  1309. </Program>
  1310. </Programs>
  1311. </Namespace>
  1312. <Namespace Name="扩展" Version="">
  1313. <Description />
  1314. <GroupOnly>true</GroupOnly>
  1315. <Namespaces />
  1316. <Programs>
  1317. <Program IsMainView="true" Name="AreaBB">
  1318. <Code>MID := MA(CLOSE,N);
  1319. UPPER: MID + P*STD(CLOSE,N),Color#8080c0;
  1320. LOWER: MID - P*STD(CLOSE,N),Color#8080c0;
  1321. FILLRGN(1,LOWER,UPPER),Brush#200000C0;
  1322. </Code>
  1323. <Description>布林通道是由John Bollinger發明。主要是將證券的方差以更容易的方法展現。指標包括三個範圍:簡單移動平均(中間),簡單移動平均加兩個標准差(上方),簡單移動平均減兩個標准差(下方)</Description>
  1324. <DisabledCycle />
  1325. <FullName>布林通道</FullName>
  1326. <Params>
  1327. <FormulaParam DefaultValue="26" Description="" MaxValue="300" MinValue="5" Name="N" ParamType="double" />
  1328. <FormulaParam DefaultValue="2" Description="" MaxValue="10" MinValue="0.1" Name="P" ParamType="double" />
  1329. </Params>
  1330. </Program>
  1331. <Program IsMainView="false" Name="AreaRSI">
  1332. <Code>LC := REF(CLOSE,1);
  1333. RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
  1334. 70,HighSpeed;
  1335. 30,HighSpeed;
  1336. FILLRGN(RSI&gt;70,RSI,70),Brush#20808000;
  1337. FILLRGN(RSI&lt;30,RSI,30),Brush#20800000;</Code>
  1338. <Description>相對強弱指數是由Welles Wilder發明。相對強弱指數表明超買或超賣的條件。當市場買賣差異很強,指數會上升,差異很弱,指數會下降。擺動範圍是0到100.</Description>
  1339. <DisabledCycle />
  1340. <FullName>相對強弱指數</FullName>
  1341. <Params>
  1342. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="2" Name="N1" ParamType="double" />
  1343. </Params>
  1344. </Program>
  1345. <Program IsMainView="false" Name="SR2">
  1346. <Code>M :=(H+L+C)/3;
  1347. S:M +((-L+(2*M)-(-H+2*M))),Color#80c080;
  1348. R:M-((-L+(2*M))-(-H+2*M)),Color#80c080;
  1349. FILLRGN(1,S,R),Brush#2000C000;</Code>
  1350. <Description />
  1351. <DisabledCycle />
  1352. <FullName>推力和阻力</FullName>
  1353. <Params />
  1354. </Program>
  1355. <Program IsMainView="true" Name="Compare">
  1356. <Code>FML(StockCode,'C'),FirstDataOfView,HighQuality;
  1357. @SetName(StockCode);</Code>
  1358. <Description />
  1359. <DisabledCycle />
  1360. <FullName>比較股票</FullName>
  1361. <Params>
  1362. <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
  1363. </Params>
  1364. </Program>
  1365. <Program IsMainView="false" Name="CmpIndi">
  1366. <Code>V1:FML(Indi),HighQuality;
  1367. V2:FML(StockCode,Indi),HighQuality;
  1368. @SetName(V1,StkLabel);
  1369. @SetName(V2,StockCode);
  1370. @SetName(Indi);
  1371. </Code>
  1372. <Description />
  1373. <DisabledCycle />
  1374. <FullName>比較兩個指標</FullName>
  1375. <Params>
  1376. <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
  1377. <FormulaParam DefaultValue="RSI(14)" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="indicator" />
  1378. </Params>
  1379. </Program>
  1380. <Program IsMainView="false" Name="SRAxisY">
  1381. <Code>M :=(H+L+C)/3;
  1382. A :=H-L;
  1383. RR:=M+A;
  1384. SS:=M-A;
  1385. R : DrawAxisY(RR,-10,12),Width2,Color#A0FF0000,AxisMargin12;
  1386. S : DrawAxisY(SS,-10,12),Width2,Color#A0004000;
  1387. DrawTextAxisY(RR,'R',1),Color#FF0000,VCenter;
  1388. DrawTextAxisY(SS,'S',1),Color#004000,VCenter;
  1389. @SetName('SR');</Code>
  1390. <Description />
  1391. <DisabledCycle />
  1392. <FullName>Y軸的推力和阻力</FullName>
  1393. <Params />
  1394. </Program>
  1395. <Program IsMainView="false" Name="SlowSTO2">
  1396. <Code>A:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
  1397. K:MA(A,M1),ColorDarkGreen,Width2,HighQuality;
  1398. D:MA(K,M2);
  1399. PartLine(K&gt;=D,K),ColorRed,Width2,HighQuality;
  1400. </Code>
  1401. <Description />
  1402. <DisabledCycle />
  1403. <FullName>緩慢隨機</FullName>
  1404. <Params>
  1405. <FormulaParam DefaultValue="14" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1406. <FormulaParam DefaultValue="3" Description="" MaxValue="50" MinValue="1" Name="M1" ParamType="double" />
  1407. <FormulaParam DefaultValue="9" Description="" MaxValue="50" MinValue="1" Name="M2" ParamType="double" />
  1408. </Params>
  1409. </Program>
  1410. <Program IsMainView="false" Name="RefIndi">
  1411. <Code>REF(FML(Indi),N);
  1412. @SetName(Indi+'-'+N);</Code>
  1413. <Description />
  1414. <DisabledCycle />
  1415. <FullName>參考指標值</FullName>
  1416. <Params>
  1417. <FormulaParam DefaultValue="MACD[DIFF]" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="string" />
  1418. <FormulaParam DefaultValue="10" Description="" MaxValue="10000" MinValue="1" Name="N" ParamType="double" />
  1419. </Params>
  1420. </Program>
  1421. <Program IsMainView="false" Name="MainArea">
  1422. <Code>MAIN : C,HighQuality;
  1423. FILLAREA(MAIN),Brush#20808000;
  1424. @SetTextVisible(MAIN,false);
  1425. @SetTextVisible(false);</Code>
  1426. <Description />
  1427. <DisabledCycle />
  1428. <FullName />
  1429. <Params>
  1430. <FormulaParam DefaultValue="100" Description="" MaxValue="100000" MinValue="1" Name="N" ParamType="double" />
  1431. </Params>
  1432. </Program>
  1433. <Program IsMainView="false" Name="SR3">
  1434. <Code>P := (H+L+C)/3;
  1435. YL := REF(L,1);
  1436. YH := REF(H,1);
  1437. R1 : 2 * P - YL;
  1438. S1 : 2 * P - YH;
  1439. R2 : (P - S1) + R1;
  1440. S2 : P - (R1-S1);
  1441. R3 : (P + R2) - S1;
  1442. S3 : (P - R2) + S1;
  1443. R4 : (P + R3) - S1;
  1444. S4 : (P - R3) + S1;
  1445. R5 : (P + R4) - S1;
  1446. S5 : (P - R4) + S1;</Code>
  1447. <Description />
  1448. <DisabledCycle />
  1449. <FullName>推力和阻力</FullName>
  1450. <Params />
  1451. </Program>
  1452. <Program IsMainView="true" Name="Compare2">
  1453. <Code>FML(StockCode,'STOCK'),FullView,HighQuality,MonoStock;
  1454. @SetName(StockCode);</Code>
  1455. <Description />
  1456. <DisabledCycle />
  1457. <FullName>比較股票</FullName>
  1458. <Params>
  1459. <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
  1460. </Params>
  1461. </Program>
  1462. <Program IsMainView="false" Name="TwoDiff">
  1463. <Code>C1:=FML(Symbol2,'C')-C;
  1464. H1:=FML(Symbol2,'H')-H;
  1465. L1:=FML(Symbol2,'L')-L;
  1466. O1:=FML(Symbol2,'O')-O;
  1467. GETSTOCK(O1,C1,MAX(C1,O1,H1,L1),MIN(C1,O1,H1,L1));
  1468. </Code>
  1469. <Description>以蠟燭圖畫出兩個股票的差異</Description>
  1470. <DisabledCycle />
  1471. <FullName>兩個股票的差異</FullName>
  1472. <Params>
  1473. <FormulaParam DefaultValue="INTL" Description="" MaxValue="0" MinValue="0" Name="Symbol2" ParamType="string" />
  1474. </Params>
  1475. </Program>
  1476. <Program IsMainView="true" Name="TradingIcon">
  1477. <Code>DrawIcon(FML(Indi+'[ExitLong]'),H,'DN.GIF'),TOP;
  1478. DrawIcon(FML(Indi+'[EnterLong]'),L,'UP.GIF'),BOTTOM;</Code>
  1479. <Description />
  1480. <DisabledCycle />
  1481. <FullName />
  1482. <Params>
  1483. <FormulaParam DefaultValue="Trading.RSI" Description="" MaxValue="0" MinValue="0" Name="Indi" ParamType="indicator" />
  1484. </Params>
  1485. </Program>
  1486. <Program IsMainView="false" Name="Compare3">
  1487. <Code>FML(StockCode,'C'),HighQuality;
  1488. @SetName(StockCode);</Code>
  1489. <Description />
  1490. <DisabledCycle />
  1491. <FullName>比較股票</FullName>
  1492. <Params>
  1493. <FormulaParam DefaultValue="^DJI" Description="" MaxValue="0" MinValue="0" Name="StockCode" ParamType="symbol" />
  1494. </Params>
  1495. </Program>
  1496. <Program IsMainView="false" Name="ColorSar">
  1497. <Code>M : SAR(N,STEP,MAXP),COLORBLUE;
  1498. A1:STOCK,MONOSTOCK,BRUSHRED,COLORRED;
  1499. A2:IF(M&lt;C,STOCK,NAN),MONOSTOCK,BRUSHBLUE,COLORBLUE;
  1500. A3:IF(M&lt;C,M,NAN),COLORRED,CIRCLEDOT;
  1501. @SETNAME(M,'SAR');
  1502. @SETTEXTVISIBLE(A1,FALSE);
  1503. @SETTEXTVISIBLE(A2,FALSE);
  1504. @SETTEXTVISIBLE(A3,FALSE);
  1505. @SETTEXTVISIBLE(FALSE);</Code>
  1506. <Description />
  1507. <DisabledCycle />
  1508. <FullName>以sar的蠟燭圖</FullName>
  1509. <Params>
  1510. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="1" Name="N" ParamType="double" />
  1511. <FormulaParam DefaultValue="2" Description="" MaxValue="100" MinValue="1" Name="STEP" ParamType="double" />
  1512. <FormulaParam DefaultValue="20" Description="" MaxValue="100" MinValue="5" Name="MAXP" ParamType="double" />
  1513. </Params>
  1514. </Program>
  1515. </Programs>
  1516. </Namespace>
  1517. <Namespace Name="當天" Version="">
  1518. <Description />
  1519. <GroupOnly>true</GroupOnly>
  1520. <Namespaces />
  1521. <Programs>
  1522. <Program IsMainView="false" Name="OpeningRange">
  1523. <Code>H1:=IF(IsLastDay &amp; Time&lt;=N,H,NaN);
  1524. L1:=IF(IsLastDay &amp; Time&lt;=N,L,NaN);
  1525. HH :=HHV(H1,0);
  1526. LL :=LLV(L1,0);
  1527. Extend(IF(HH.LastValue==HH,HH,NaN)),StyleDash,Width2;
  1528. Extend(IF(LL.LastValue==LL,LL,NaN)),StyleDash,Width2;
  1529. </Code>
  1530. <Description />
  1531. <DisabledCycle />
  1532. <FullName>開盤範圍</FullName>
  1533. <Params>
  1534. <FormulaParam DefaultValue="100000" Description="" MaxValue="240000" MinValue="0" Name="N" ParamType="double" />
  1535. </Params>
  1536. </Program>
  1537. <Program IsMainView="false" Name="PriorClose">
  1538. <Code>"REFC#DAY",StyleDash,ColorRed,NoValueLabel,Horizontal,Width2;
  1539. @SetTextVisible(false);</Code>
  1540. <Description />
  1541. <DisabledCycle />
  1542. <FullName>前一日的收盤價</FullName>
  1543. <Params />
  1544. </Program>
  1545. <Program IsMainView="false" Name="PriorHLC">
  1546. <Code>"RefIndi(H,1)#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
  1547. "RefC#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
  1548. "RefIndi(L,1)#DAY",StyleDash,NoValueLabel,Horizontal,Width2;
  1549. @SetTextVisible(false);</Code>
  1550. <Description />
  1551. <DisabledCycle />
  1552. <FullName>前一日的最高、最低、收盤價</FullName>
  1553. <Params />
  1554. </Program>
  1555. <Program IsMainView="false" Name="TDP">
  1556. <Code>Cond := Between(DoubleDate,LastDoubleDate-N,LastDoubleDate-0.00001);
  1557. HH :=HHV(IF(Cond,H,NaN)).LastValue;
  1558. LL :=LLV(IF(Cond,L,NaN)).LastValue;
  1559. CC :=IF(Cond,C,NaN).LastValue;
  1560. P :=(HH+LL+CC)/3;
  1561. M :=(HH+LL)/2;
  1562. PD :=ABS(P-M);
  1563. PH:IF(IsLastDay,P+PD,NaN),StyleDash,Width2;
  1564. PL:IF(IsLastDay,P-PD,NaN),StyleDash,Width2;
  1565. </Code>
  1566. <Description />
  1567. <DisabledCycle />
  1568. <FullName />
  1569. <Params>
  1570. <FormulaParam DefaultValue="3" Description="" MaxValue="1000" MinValue="0" Name="N" ParamType="double" />
  1571. </Params>
  1572. </Program>
  1573. </Programs>
  1574. </Namespace>
  1575. <Namespace Name="測試" Version="">
  1576. <Description>Test some operation</Description>
  1577. <GroupOnly>false</GroupOnly>
  1578. <Namespaces />
  1579. <Programs>
  1580. <Program IsMainView="false" Name="DDAA">
  1581. <Code>"MACD(26,12,9)"</Code>
  1582. <Description />
  1583. <DisabledCycle />
  1584. <FullName />
  1585. <Params />
  1586. </Program>
  1587. <Program IsMainView="false" Name="DNF">
  1588. <Code>TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
  1589. HD := HIGH-REF(HIGH,1);
  1590. LD := REF(LOW,1)-LOW;
  1591. DMP:= SUM(IF(HD&gt;0 &amp; HD&gt;LD,HD,0),N);
  1592. DMM:= SUM(IF(LD&gt;0 &amp; LD&gt;HD,LD,0),N);
  1593. PDI: DMP*100/TR;
  1594. MDI: DMM*100/TR;
  1595. ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
  1596. ADXR:(ADX+REF(ADX,M))/2
  1597. </Code>
  1598. <Description />
  1599. <DisabledCycle />
  1600. <FullName />
  1601. <Params>
  1602. <FormulaParam DefaultValue="10" Description="" MaxValue="100" MinValue="0" Name="N" ParamType="double" />
  1603. <FormulaParam DefaultValue="6" Description="" MaxValue="100" MinValue="1" Name="M" ParamType="double" />
  1604. </Params>
  1605. </Program>
  1606. <Program IsMainView="false" Name="NewCode">
  1607. <Code>HD := HIGH-REF(HIGH,1);</Code>
  1608. <Description />
  1609. <DisabledCycle />
  1610. <FullName />
  1611. <Params />
  1612. </Program>
  1613. </Programs>
  1614. </Namespace>
  1615. </Namespaces>
  1616. <Programs />
  1617. </Namespace>