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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 求高手编简单程序

   

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


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

主题:求高手编简单程序

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


加好友 发短信
等级:超级版主 帖子:21598 积分:0 威望:0 精华:1 注册:2010/7/31 16:35:30
  发帖心情 Post By:2019/12/25 14:02:02    Post IP:180.169.30.6[只看该作者]

ma19:stkindi('','ma.ma19',0,6,-1);
ma20:(ma19*19+close)/20;

variable:buy_num=0,short_num=0;
if todaybar=1 then buy_num=0;

if hhv(high,todaybar)>ma20*1.03 and llv(low,todaybar)>ma20 and (exitbars>0 or exitbars=-1) and buy_num=0 then 
BEGIN
sellshort(1,holding,marketr);
buy(1,1,marketr);
buy_num:=buy_num+1;
end


if close>enterprice*1.01 and buy_num<4 and buy_num=1 then 
BEGIN
buy(1,1,marketr);
buy_num:=buy_num+1;
end

if close<enterprice*0.96  then 
BEGIN
sell(1,holding,marketr);
buy_num:=0;
end





if todaybar=1 then short_num=0;

if llv(low,todaybar)<ma20*0.97 and hhv(high,todaybar)<ma20 and (exitbars>0 or exitbars=-1) and short_num=0 then 
BEGIN
sell(1,holding,marketr);
buyshort(1,1,marketr);
short_num:=short_num+1;
end


if close<enterprice*0.99 and short_num<4 and short_num=1 then 
BEGIN
buyshort(1,1,marketr);
short_num:=short_num+1;
end

if close>enterprice*1.04  then 
BEGIN
sellshort(1,holding,marketr);
short_num:=0;
end


 回到顶部
总数 29 1 2 3 下一页