以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 如何取得条件成立时的价格 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=9301) |
-- 作者:tonybig -- 发布时间:2011/12/9 10:21:24 -- 如何取得条件成立时的价格
开仓条件:=h>ma3x3 and ma3x3>ma7x5 and ma7x5>ma25x5;
请问如何取得该条件成立时的价格。 |
-- 作者:fly -- 发布时间:2011/12/9 10:31:44 -- price:=\'price\';// 最近一次条件成立时价格
con:=h>ma3x3 and ma3x3>ma7x5 and ma7x5>ma25x5; if con=1 then EXTGBDATASET(\'price\',close); |