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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3673|回复: 4

新手提问(时间提取问题)

[复制链接]
发表于 2015-12-14 14:52:36 | 显示全部楼层 |阅读模式
我想提取特定时间的数据怎么弄?最多能精确到秒还是tick?
比如2012年10月12日10点25分3秒 的数据如何提取?tick数据如何提取?谢谢
发表于 2015-12-14 15:49:31 | 显示全部楼层
要示乎你資料供應商提供給你的資料~

一般實時資料可以最小到 TICK , 1MIN

 楼主| 发表于 2015-12-14 18:53:24 | 显示全部楼层
admin 发表于 2015-12-14 15:49
要示乎你資料供應商提供給你的資料~一般實時資料可以最小到 TICK , 1MIN

谢谢管理!我可能没表述明白  我想问的是metastock和XENITH里面有什么函数能提取定点时间的数据?
比如2012年10月12日10点25分 的成交量数据用软件里面的函数如何提取,主要想用metastock和XENITH软件来分析省很多事。
发表于 2015-12-14 19:03:52 | 显示全部楼层

可以利用 valuewhen()

Function: Value When [valuewhen()]
--------------------------------------------------------------------------------
SYNTAX      
valuewhen ( Nth, EXPRESSION, DATA ARRAY )

FUNCTION     
Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence. This includes all data loaded in the chart.

EXAMPLE     
 The formula "valuewhen( 2, cross(c,mov(c,10,s), rsi(20) )" returns the value of the RSI on the 2nd most recent occurrence of the closing price crossing above its 10-day moving average.


例如你的例子:
"2012年10月12日10点25分 的成交量数据"

info:=Year() = 2012 and Month() = 10 and   DayOfMonth() = 12 and  Hour() =10 and  Minute()  =25;
Retval := valuewhen( 1, info, V );
Retval
 

 楼主| 发表于 2015-12-15 12:03:04 | 显示全部楼层
admin 发表于 2015-12-14 19:03
可以利用 valuewhen()Function: Value When [valuewhen()]-------------------------------- ...

谢谢管理!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-3-28 17:39 , Processed in 0.056350 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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