金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
楼主: 100019656

改后台程序华策略

[复制链接]

21

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
FireScript
发表于 2023-4-19 09:08 | 显示全部楼层

ma1:ma(c,n);
var1:=cross(c,ma1);
var2:=h>tenterprice+zy and tenterbars>0;
vbr1:=cross(ma1,c);
vbr2:=l<tenterprice-zy and tenterbars>0;

//平多
if var2 and tbuyholdingex('','',1)>0 then begin
        tsell(1,0,lmt,close);//市价(marketr)挂单价(limitr)
end
//平空
if vbr2 and tsellholdingex('','',1)>0 then begin
        tsellshort(1,0,lmt,close);
end

//平空开多
if var1 and tsellholdingex('','',1)>=0 and abb then begin
        tsellshort(1,0,lmt,close);
        tbuy(1,ss,lmt,close);
end
//平多开空
if vbr1 and tbuyholdingex('','',1)>=0 and abb then begin
        tsell(1,0,lmt,close);
        tbuyshort(1,ss,lmt,close);
end
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 微信登录

本版积分规则

手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )

GMT+8, 2025-6-1 05:15 , Processed in 0.138658 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表