金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 235|回复: 1

怎么在设置止损平仓后不再开仓,最后一句

[复制链接]

2

主题

3

帖子

3

积分

Rank: 1

等级: 新手上路

注册:
2025-5-26
曾用名:
发表于 2025-6-12 10:37 | 显示全部楼层 |阅读模式
cond1:c>ma(close,60);
cond2:c<ma(close,60);
if cond1 and holding =0 then buy (1,2,limit,close) ;//开多信号;
if cond2 then sell(1,0,market,close);//平多信号;
if cond2 and holding=0 then buyshort(1,2,market,close);//开空信号;
if  c>enterprice +100  then sellshort(1,0,market,close);//平空信号


回复

使用道具 举报

44

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2025-6-12 10:39 | 显示全部楼层
variable:n=0;
if cond2 and holding=0 and n=0 then buyshort(1,2,market,close);//开空信号;
if  c>enterprice +100  then
begin
n:=1;
sellshort(1,0,market,close);//平空信号
end
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-4 23:25 , Processed in 0.159347 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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