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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 求图表日内策略

   

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


  共有4443人关注过本帖平板打印复制链接

主题:求图表日内策略

美女呀,离线,留言给我吧!
xian_0_9
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 BOO
等级:论坛游民 帖子:378 积分:1856 威望:0 精华:0 注册:2010/1/25 18:04:12
  发帖心情 Post By:2011/10/30 10:52:25 [只看该作者]

m5:"ma.ma1##min15";
m10:"ma.ma2##min15";
a5:ma(c,5);
a10:ma(c,10);


if a5<a10 and holding>0 then sell(1,1,limitr,c);
if a5>a10 and holding<0 then sellshort(1,1,limitr,c);

if m5>m10 and a5>a10 then
begin
if holding<0 then sellshort(1,1,limitr,c);
if holding=0 then buy(1,1,limitr,c);
end

if m5<m10 and a5<a10 then
begin
if holding>0 then sell(1,1,limitr,c);
if holding=0 then buyshort(1,1,limitr,c);
end


 回到顶部