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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 为什么

   

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


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

主题:为什么

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


加好友 发短信
等级:论坛游侠 帖子:415 积分:1791 威望:0 精华:0 注册:2009/11/20 21:02:10
为什么  发帖心情 Post By:2009/11/25 13:46:46    Post IP:125.120.10.95[只看该作者]

if 多头势  AND  abs(adtm)<0.80 and tt0 then BK:=B-B1>0 and  close>A6 and close<=Nh;
if 空头势  AND  abs(adtm)<0.80 and tt0 then BK:=B-B1>0  and close>A3 and close=<AL;
if 多头势  AND  abs(adtm)>0.15 and tt0 then SK:=B-B1<0  AND  close<a3 and close>=NH;
if 空头势  and   abs(adtm)>0.15 and tt0 then SK:=B-B1<0  and  close<a6 and close>=pt;

if 多头势 then  SP:=B-B1<0 or close>A;
if 空头势 then  sp:=B-B1<0 or close<a3;
if 空头势 then  BP:=B-B1>0 or close>A;
if 多头势 then  BP:=B-B1>0 or close>a3;

 

 

{开多}
buy( holding=0 and  bk and NOT(tTYPE(1)=1),intpart(Tasset*0.5/close),thisclose);
Tbuy(Tholding=0 and bk and NOT(tTYPE(1)=1) and NOT(TYPE(1)=3),intpart(Tasset*0.5/close),mkt);

{平多}
if 多头势 and close>nb*1.003 then sell(holding>0 and NOT(TYPE(1)=2),holding*0.50,thisclose);
if 多头势 and close>nb*1.005 then sell(holding>0 ,holding*0.50,thisclose);
sell( holding>0 and sp,0,thisclose);

if 多头势 and close>nb*1.003 then tsell(tholding>0 and NOT(TYPE(1)=2),tholding*0.50,mkt);
if 多头势 and close>nb*1.005 then tsell(tholding>0,tholding*0.50,mkt);
tsell( tholding>0 and sp,0,mkt);//测试时,需要跳变

 

 

我任何开多的的单子,开仓的K线,同时就平了50% ,我不知道为什么?


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


加好友 发短信 李凯学堂
等级:论坛游侠 帖子:137 积分:854 威望:0 精华:0 注册:2009/8/24 14:44:18
  发帖心情 Post By:2009/11/25 14:28:38    Post IP:218.80.195.118[只看该作者]

这是程序的语句的逻辑不严密,前一条语句开的仓,下一条语句条件正好成立,所以就把他平了。


 回到顶部