Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共41 条记录, 每页显示 10 条, 页签: [1] [2][3][4][5]
[浏览完整版]

标题:请教一下

1楼
yeqiu 发表于:2014/8/5 15:54:27

请问如何表达下列:

A:=当日开盘后最高价

开空: A-13点时市价开空

或者某K收盘价小于A-12点时市价开空

或者某K最低价小于A-11.4 并且 5K内有任意1K小于A-11.2时市价开空)

三个条件先成立的实行, 实行后其它两个条件失效

2楼
jinzhe 发表于:2014/8/5 15:56:54

A-13点时市价开空

a-13要等于最新价的意思?

3楼
yeqiu 发表于:2014/8/5 15:59:34
是的谢谢
4楼
jinzhe 发表于:2014/8/5 16:36:31

a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h  and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if l<(a-12) and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if time=closetime(0) then n:=0;

5楼
yeqiu 发表于:2014/8/5 16:50:03
 

不好意思,能否讲一下红色部分的具体意思

a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h  and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if l<(a-12) and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if time=closetime(0) then n:=0;

6楼
jinzhe 发表于:2014/8/5 16:53:07

a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h  and holding=0  and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if l<(a-12) and holding=0 and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if time=closetime(0) then n:=0;

 

漏写了,加上


7楼
yeqiu 发表于:2014/8/6 9:31:48

不好意思,能否讲一下红色部分的具体意思 

a:=hhv(h,enterbars+1);
variable:n=0;
if (a-13)>=l and (a-13)<=h  and holding=0  and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if l<(a-12) and holding=0 and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if ref(l<(a-11.4),6) and any(l<(a-11.4),5) and holding=0 and n=0 then begin
 buyshort(holding=0,1,market);
 n:=1;
end

if time=closetime(0) then n:=0;

8楼
jinzhe 发表于:2014/8/6 9:36:31
全局变来来记录开空的3个条件哪个成立了,成立之后其他条件就无法开仓
9楼
yeqiu 发表于:2014/8/6 9:54:37

你好

那开多单的时侯是否还用这个变量,

另外现在是开盘开仓,如果盘中其它条件开是否还用这个变量

10楼
jinzhe 发表于:2014/8/6 10:00:20

开多也是用变量,但是不是用同一个,

看你的思路,要不要限制开仓

共41 条记录, 每页显示 10 条, 页签: [1] [2][3][4][5]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.