以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教关于平仓过后立刻开仓的办法 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=54603) |
-- 作者:jianshi2020 -- 发布时间:2013/8/2 15:57:58 -- 请教关于平仓过后立刻开仓的办法 我想写一个程序,让它在平仓过后立刻开仓,但是怎么写都不对,请问是怎么一回事啊?
if ((m1=1 and m2=1 and holding=0) or xx=2) then if(M1=0 and HOLDING>0) then begin if(m1=1 and holding<0) then begin end; |
-- 作者:jinzhe -- 发布时间:2013/8/2 16:02:17 -- 反手系统要这样写 if 平空开多条件 then begin sellshort; buy; end
if 平多开空条件 then begin sell; buyshort; end |
-- 作者:jianshi2020 -- 发布时间:2013/8/2 16:03:29 -- 你的意思是直接就在这一个周期内苹果仓立刻开仓对吧。哦哦,这样好像也行得通。。。谢谢了 |