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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1932|回复: 6

Ref(H,1) > H scannable problem

[复制链接]
发表于 2011-4-18 11:34:39 | 显示全部楼层 |阅读模式
Hi Matthew
,

Found the Ref(H,1) > H is not scannable in metastock, while H > Ref(H,-1) is scannable.
Is any constraint on metastock which cause Ref(H,1) > H is not scannable ?

Thank you.
发表于 2011-4-18 11:57:29 | 显示全部楼层
Function: Reference [ref()]


SYNTAX      ref( DATA ARRAY, PERIODS )
FUNCTION      References a previous or subsequent element in a DATA ARRAY. A positive PERIOD references "n" periods in the future; a negative PERIOD references "n" periods ago.

EXAMPLE      The formula "ref( CLOSE, -12 )" returns the closing price 12 periods ago. Thus, you could write the 12-day price rate-of-change (expressed in points) as "C - ref( C, -12 )."

The formula "ref( C, +12 )" returns the closing price 12 periods ahead.


如是掃過住某日的後一天H > 前一天H 或可以,
但如果是今天的就一定不可以
, 因為沒有未來數據~
 楼主| 发表于 2011-4-18 12:04:15 | 显示全部楼层
Hi Matthew, thank you for your reply.

I tested below, but still found it's not scannable.....

test:=Ref(H,1) > H;
sum(test,10)>=1

I added the formula in Expert advisor and attached in stock, it highlight some candlesticks, however, when i scan in "The explorer" , no stock can be shown in report (I added the formula in colA and the filter already added colA>0)
发表于 2011-4-18 12:22:41 | 显示全部楼层
test:=Ref(H,1) > H;
這一句的意思是:

"明天"的H > 今天的高......你想想問題便知道!

如果係用EXPLORER 掃瞄, 於沒有指定日期下,
只會用最後一筆計算, 那便沒有 "明天" 即未來日子數據,
這樣當然不會有結果可以出到~
 楼主| 发表于 2011-4-18 15:22:06 | 显示全部楼层
O, Thank you very much Matthew,

I tried to set the "Exploration Options" to "Specific Date" (2011/1/10), the formula change to

test:=Ref(H,1) > H;
Sum(test,2)>=1

However, i cannot scan the stock also....
May i know how to set the date so that the above formula still be scannable?

Thank you very much again~~
发表于 2011-4-18 22:01:44 | 显示全部楼层
還不明白我的意思吧?!  

不如你調轉找吧 ~
因為對最新一筆資料來說,

沒有可能 會有 明天的資料"高位" 存在,
這個 邏輯上己出現問題,


但可以今天高位比昨天高,
因為今天及昨天的資料都己經存在 !!

test:=ref(H,-1) < H;
sum(test,2)>=1

 楼主| 发表于 2011-4-19 02:35:24 | 显示全部楼层
O, icic~~

Thank you very much, matthew~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-4-29 04:03 , Processed in 0.114369 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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