Rss & SiteMap

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

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

标题:怎样将日内模型中的时间删除?

1楼
a290380438 发表于:2012/10/17 16:34:35

 

下():

time1:= time>090300 and time<112700 or (time>133300 and time<145700);

time:= time> 112700 and time<113000 or (time>145700 and time<150000);

 

if c>均线 and time1 then begin

sellshort();

buy();

end//价在均线上平空开多

 

if c<均线 and time1  then begin

sell();

buyshort();

end//价在均线下平多开空

 

if c<0.99*enterprice and holding>0 then sell();//1%多头止损

if c>enterprice*1.01 and holding<0 then sellshort();//1%空头止损

 

if time2 then begin//收盘前平仓

sell();

sellshort();

end

2楼
lichenghu 发表于:2012/10/17 16:42:16

if c>均线 then begin

sellshort();

buy();

end//价在均线上平空开多

 

if c<均线 and begin

sell();

buyshort();

end//价在均线下平多开空

if time>145900 then begin//收盘前平仓

sell();

sellshort();

end


 

 

3楼
a290380438 发表于:2012/10/17 17:38:15

:  

,收盘前平仓


 

 

均线:=ma(c,M);

if c>均线 then begin
sellshort();
buy();
end//价在均线上平空开多

 

if c<均线 and begin
sell();
buyshort();
end//价在均线下平多开空

 

if time>145900 then begin//收盘前平仓
sell();
sellshort();
end

4楼
RogarZ 发表于:2012/10/17 21:42:18
sellshort();
buy();
这些交易函数,里面的参数都没填。当然通过不了,
 
具体这些函数该怎么填,属于策略的一部分,由客户决定,金字塔不负责。
 
不知道您的公式从何而来,若不会用,请联系给你公式的人。
 
若这个是模板,请在弄清楚函数,公式的意义后,再使用。
[此贴子已经被作者于2012-10-17 21:42:49编辑过]
5楼
a290380438 发表于:2012/10/18 10:55:49

线为M: :   均线:=ma(c,M);  

 

个()线数M 程,

sellshort();

buy();

 

 

 

外, 例,便

6楼
jinzhe 发表于:2012/10/18 11:07:17

模型范例可以参考阿火的秘籍

http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439

 

如果对公式不是很熟练,可以先进行学习

http://www.weistock.com/bbs/dispbbs.asp?boardid=2&Id=370

7楼
a290380438 发表于:2012/10/18 11:55:45
8楼
a290380438 发表于:2012/10/18 19:10:03

将()M(线) 为:  if  少 THEN

 

下:

 

均线:=ma(M);  

 

if c>均线 then begin

sellshort(M);

buy(M);

end//价在均线上平空开多

 

if c<均线 and begin

sell(M);

buyshort(M);

end//价在均线下平多开空


//if time>145900 then begin    // 收盘前平仓

//sell(M);

//sellshort(M);

//end

 

 


 

9楼
RogarZ 发表于:2012/10/18 20:08:38
你鼠标放BUY上  看它的说明

BUY(条件,手数,报价类型,价格)

最简单的部分 还请客户自己学习。可参考上文 jinzhe给出的链接
[此贴子已经被作者于2012-10-18 20:09:27编辑过]
10楼
a290380438 发表于:2012/10/19 17:37:11

要  价在60线上平空开多价在60线下平多开空损20%

 

 

共10 条记录, 每页显示 10 条, 页签: [1]


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