Basic.fml 79 KB

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