欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 老师帮编写个语句

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3896人关注过本帖树形打印复制链接

主题:老师帮编写个语句

帅哥哟,离线,有人找我吗?
jinzhe
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/10/31 14:49:16    Post IP:58.246.57.26[显示全部帖子]

开仓日期:= weekday=1 or weekday=5;


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/10/31 15:21:28    Post IP:58.246.57.26[显示全部帖子]

不会的,截图说明一下


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/10/31 15:27:43    Post IP:58.246.57.26[显示全部帖子]

开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);

W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;

if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end

if HHV(H,5)>1.0094*C OR T2  then sell(holding>0, 0, thisclose);

if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end

if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);



金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/10/31 15:43:13    Post IP:58.246.57.26[显示全部帖子]

说明在这两天没有止损条件满足的情况

你按键盘向下的箭头,多显示点数据



金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/10/31 16:05:07    Post IP:58.246.57.26[显示全部帖子]

开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>092000 AND TIME<143500;
T2:=TIME>145000;
if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
 sellshort(holding<0, 0, thisclose);
 buy(holding=0 AND T1,1, thisclose);
 end

if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin
 sell(holding>0, 0, thisclose);
 buyshort(holding=0 AND T1, 1, thisclose);
 end

if c>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);


IF C<REF(L,ENTERBARS)-3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sell(holding>0, 0, thisclose);
END

IF C>REF(H,ENTERBARS)+3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sellshort(holding<0, 0, thisclose);
END



金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/11/1 15:30:57    Post IP:58.246.57.26[显示全部帖子]

开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>092000 AND TIME<143500;
T2:=TIME>145000;
if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
 sellshort(holding<0, 0, thisclose);
 buy(holding=0 AND T1,1, thisclose);
 end

if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin
 sell(holding>0, 0, thisclose);
 buyshort(holding=0 AND T1, 1, thisclose);
 end

if c>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);

 

IF enterprice-c>30*mindiff AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sell(holding>0, 0, thisclose);
END

 

IF c-enterprice>30*mindiff AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sellshort(holding<0, 0, thisclose);
END




金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部