1,价在均价线以上开多单并平空单,价在均价线以下开空单并平多单,每次开仓帐面亏损超过1%时全部平仓止损,以此循环。
早上和下午开盘后3分钟内不进行交易,上午和下午收盘前3分钟全部平仓。
2,另外,本模型再帮我做一个非日内模型,以便测试历史收益。 谢谢!
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
http://www.weistock.com/bbs/dispbbs.asp?boardid=9&Id=11048
新手,请仔细先从基础开始学起
请老师帮我把9月14日贴 日内模型中的时间和止损去掉,我需要用非日内测试历吏数据。
另外,请问金字塔怎样同时测试多品种收益?
谢谢!
以下这个模型请老师帮我把日内的时间限制和止损部分帮我去掉,我需用非日内测试历吏数据。谢谢!
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