跳至内容

SymbolInfoSessionQuote

SymbolInfoSessionQuote

允许获取指定符号和一周中某天的指定报价会话的开始时间和结束时间。

bool  SymbolInfoSessionQuote(
   string            name,                // symbol name
   ENUM_DAY_OF_WEEK  day_of_week,         // day of the week
   uint              session_index,       // session index
   datetime&         from,                // time of the session beginning
   datetime&         to                   // time of the session end
   );

参数

name

[in] 符号名称。

ENUM_DAY_OF_WEEK

[in] 一周中的天数,枚举值来自 ENUM_DAY_OF_WEEK

uint

[in] 会话的序编号,我们想获取该会话的开始时间和结束时间。会话的索引从0开始。

from

[out] 会话开始时间,以秒为单位,从00小时00分钟开始,返回的值中的日期应被忽略。

to

[out] 会话结束时间,以秒为单位,从00小时00分钟开始,返回的值中的日期应被忽略。

返回值

如果成功获取了指定会话、符号和一周中某天的数据,则返回true;否则返回false。

参见

Symbol PropertiesTimeToStructData Structures

最后更新于