以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [求助] (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=80645) |
-- 作者:sss158yyy -- 发布时间:2015/7/9 22:41:45 -- [求助] 我做的是一分K线模型我想用编写“当日内上涨时某根一分钟最高价的价格大于5%(相对于开盘价格而言)时买入,下跌时某根一分钟最低价的价格低于5%的跌幅(相对于开盘价格而言)时卖出,谢谢。 |
-- 作者:jinzhe -- 发布时间:2015/7/10 8:44:26 -- jk:=valuewhen(todaybar=1,open); if h>1.05*jk then buy(holding=0,1,market); if l<0.95*jk then sell(1,0,market); |