以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  求解!!!  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=56793)

--  作者:123abc
--  发布时间:2013/9/18 21:10:05
--  求解!!!

14:55后涨幅大于1,开多!

怎表示???


--  作者:qwer123
--  发布时间:2013/9/19 13:08:10
--  
相对于昨日收盘?
r1:=callstock(\'if00\',vtclose,6,-1);
 
//参考了3楼回复,图表改为以下
if (c-r1)/r1>0.01 and ((currenttime>=145500 and islastbar) or (not(islastbar) and time>=145500)) then buy(holding=0,1,market);
 
 
 
//以下为后台程序化交易,写法 
r1:=callstock(\'if00\',vtclose,6,-1);
if (c-r1)/r1>0.01 and currenttime>=145500 then tbuy(tholding=0,1,mkt);

节日快乐!

--  作者:jinzhe
--  发布时间:2013/9/22 9:54:18
--  

这样写图表不妥,还要加个条件限定

 

if (c-r1)/r1>0.01 and (currenttime>=145500 and islastbar) or (not(islastbar) and time>=145500) then buy(holding=0,1,thisclose);

--  作者:123abc
--  发布时间:2013/9/23 15:29:54
--  

图表!

相对于昨结算价大于1!

第二天9:10平仓!

怎表示?


--  作者:jinzhe
--  发布时间:2013/9/23 15:35:16
--  
图表求昨结算求的是近似值,不是行情数据,所以最好换个值来算