金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 45|回复: 2

老师看下

[复制链接]

109

主题

238

帖子

238

积分

Rank: 4

等级: 专业版

注册:
2025-5-24
曾用名:
发表于 2025-9-16 12:28 | 显示全部楼层 |阅读模式

if tbuyholdingex('','',2)>0 and pd then BEGIN  //多头平仓
tsell(1,0,mkt);
end
if tholdingex('','',2)>0 and  pk    then BEGIN  //空头平仓
tsell(1,0,mkt);
end

这样对吗?(pd、  pk分别是平多,平空条件)

回复

使用道具 举报

3

主题

889

帖子

930

积分

Rank: 9Rank: 9Rank: 9

等级: 管理员

注册:
2021-5-10
曾用名:
发表于 2025-9-16 12:50 | 显示全部楼层
对的,但是有个函数写错了
if tbuyholdingex('','',2)>0 and pd then BEGIN  //多头平仓
tsell(1,0,mkt);
end
if tsellholdingex('','',2)>0 and  pk    then BEGIN  //空头平仓
tsell(1,0,mkt);
end
回复

使用道具 举报

109

主题

238

帖子

238

积分

Rank: 4

等级: 专业版

注册:
2025-5-24
曾用名:
 楼主| 发表于 2025-9-16 14:37 | 显示全部楼层
admin 发表于 2025-9-16 12:50
对的,但是有个函数写错了
if tbuyholdingex('','',2)>0 and pd then BEGIN  //多头平仓
tsell(1,0,mkt); ...

谢谢。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-19 12:00 , Processed in 0.126486 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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