以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教一下 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=68373) |
-- 作者:yeqiu -- 发布时间:2014/8/5 15:54:27 -- 请教一下 请问如何表达下列: A:=当日开盘后最高价 开空: A-13点时市价开空 或者某K收盘价小于A-12点时市价开空 或者某K最低价小于A-11.4 并且 后5K内有任意1K小于A-11.2时市价开空) 三个条件先成立的实行, 实行后其它两个条件失效 |
-- 作者:jinzhe -- 发布时间:2014/8/5 15:56:54 -- A-13点时市价开空 a-13要等于最新价的意思? |
-- 作者:yeqiu -- 发布时间:2014/8/5 15:59:34 -- 是的谢谢 |
-- 作者:jinzhe -- 发布时间:2014/8/5 16:36:31 -- a:=hhv(h,enterbars+1); if l<(a-12) and holding=0 then begin if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin if time=closetime(0) then n:=0; |
-- 作者:yeqiu -- 发布时间:2014/8/5 16:50:03 -- 不好意思,能否讲一下红色部分的具体意思 a:=hhv(h,enterbars+1); if l<(a-12) and holding=0 then begin if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin if time=closetime(0) then n:=0; |
-- 作者:jinzhe -- 发布时间:2014/8/5 16:53:07 -- |
-- 作者:yeqiu -- 发布时间:2014/8/6 9:31:48 -- 不好意思,能否讲一下红色部分的具体意思 a:=hhv(h,enterbars+1); if l<(a-12) and holding=0 and n=0 then begin if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 and n=0 then begin if time=closetime(0) then n:=0; |
-- 作者:jinzhe -- 发布时间:2014/8/6 9:36:31 -- 全局变来来记录开空的3个条件哪个成立了,成立之后其他条件就无法开仓 |
-- 作者:yeqiu -- 发布时间:2014/8/6 9:54:37 -- 你好 那开多单的时侯是否还用这个变量, 另外现在是开盘开仓,如果盘中其它条件开是否还用这个变量 |
-- 作者:jinzhe -- 发布时间:2014/8/6 10:00:20 -- 开多也是用变量,但是不是用同一个, 看你的思路,要不要限制开仓 |