金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 196|回复: 1

老师,请改为可用资金0%下单

[复制链接]

5

主题

11

帖子

11

积分

Rank: 1

等级: 新手上路

注册:
2025-2-9
曾用名:
发表于 2025-3-3 18:12 | 显示全部楼层 |阅读模式
ma400:ma(c,400);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),NOAXIS;
DEA  : EMA(DIFF,9);
MACD1 : 2*(DIFF-DEA);

if c> ma400 and cross(DIFF,DEA) AND DIFF >0   then
begin
        sellshort(1,holding,marketr);
        buy(holding=0,1,marketr);
end

if c< ma400 and cross(DEA,DIFF) AND DIFF <0  then
begin
        sell(1,holding,marketr);
        buyshort(holding=0,1,marketr);
END

if (close <  enterprice-30*mindiff  )  and holding>0 then sell(1,holding,marketr);
if ( close > enterprice+30*mindiff  ) and holding<0 then sellshort(1,holding,marketr);


当前持仓:HOLDING,COLORGRAY,LINETHICK1;
当前资产:ASSET,NOAXIS,COLORGRAY;//输出当前资产,但不影响坐标最高最低值



补充内容 (2025-3-3 18:13):
老师请改为可用资金的40%下单
回复

使用道具 举报

37

主题

9824

帖子

5万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
wenarm
发表于 2025-3-4 08:27 | 显示全部楼层
[PEL] 复制代码
ma400:ma(c,400);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),NOAXIS;
DEA  : EMA(DIFF,9);
MACD1 : 2*(DIFF-DEA);

if c> ma400 and cross(DIFF,DEA) AND DIFF >0   then
begin
        sellshort(1,holding,marketr);
        buy(holding=0,40%,marketr);
end

if c< ma400 and cross(DEA,DIFF) AND DIFF <0  then
begin
        sell(1,holding,marketr);
        buyshort(holding=0,40%,marketr);
END

if (close <  enterprice-30*mindiff  )  and holding>0 then sell(1,holding,marketr);
if ( close > enterprice+30*mindiff  ) and holding<0 then sellshort(1,holding,marketr);

金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-19 17:39 , Processed in 0.127623 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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