『最佳拍檔』智能決策系統

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1896|回复: 2

请教Matthrew大师,关于周涨幅的问题

[复制链接]
发表于 2010-1-31 09:01:17 | 显示全部楼层 |阅读模式
本帖最后由 meta2010 于 2010-1-31 09:04 编辑

请教大师,如何在MetaStock中设置周涨幅排行? 多谢!
发表于 2010-1-31 16:16:50 | 显示全部楼层
你可以使用 Rate of Change 函式功能寫便可以 !

Rate of Change
SYNTAX roc( DATA ARRAY, PERIODS, DIFF_METHOD )
FUNCTION Calculates the PERIODS rate-of-change of DATA ARRAY expressed as DIFF_METHOD.
Valid DIFF_METHODs are PERCENT and POINTS (these can be abbreviated as % and $).
EXAMPLE The formula "roc( CLOSE, 12, PERCENT )" returns the 12-period percent rate-of-change of the closing prices.


例子:
  
Exploration notes  
  
Col A: +/-ROC ROC( C,1 ,% )
Col B: +/-$ ROC(C,1,$)
Col C: Close C
  
Filter enabled Yes
Periodicity Weekly
Records required 4000

設定:
Q&A_週漲幅_00.gif

寫新 explorer 程式:
Q&A_週漲幅_01.gif


執行結果:
Q&A_週漲幅_02.gif

其它參考例子:
http://www.bp-system.com/discuz/viewthread.php?tid=1421&page=3#pid12619
 楼主| 发表于 2010-1-31 19:59:08 | 显示全部楼层
搞掂了,非常感谢!!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|『最佳拍檔』智能決策系統

GMT+8, 2024-4-28 06:37 , Processed in 0.054391 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表