以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 金字塔软件问题提交 (http://www.weistock.com/bbs/list.asp?boardid=2) ---- 怎么设置控制止损后不再检测符合条件开空? (http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=152753) |
-- 作者:qq代人发帖 -- 发布时间:2017/5/11 16:30:45 -- 怎么设置控制止损后不再检测符合条件开空?
怎么设置控制止损后不再检测符合条件开空? |
-- 作者:shq -- 发布时间:2017/5/11 16:46:52 -- http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=53236&skin=0 2.2 可以考虑使用全局变量来控制止损次数。
|
-- 作者:pyd -- 发布时间:2017/5/11 16:52:12 -- VARIABLE:n=0; if 开空条件 and n=0 then buyshort(); if 止损条件 and holding<0 then begin sellshort(); n:=1; end if time=closetime(0) then n:=0;//第二天满足条件再开 |