以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [求助]求当日条件a第一次成立时的收盘价 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60422) |
-- 作者:mt050707 -- 发布时间:2013/12/28 14:44:06 -- [求助]求当日条件a第一次成立时的收盘价 求当日条件a第一次成立时的收盘价(条件a在当天可能成立n次) 这个公式怎么编写?
|
-- 作者:jinzhe -- 发布时间:2013/12/30 8:48:39 -- variable:n=0; if date<>ref(date,1) then n:=0; if 条件a then n:=n+1; cc:valuewhen(ref(n=0,1) and n=1,close); |