金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 201|回复: 2

麻烦老师帮忙修改成金字塔可用

[复制链接]

14

主题

37

帖子

37

积分

Rank: 1

等级: 新手上路

注册:
2022-8-25
曾用名:
发表于 2024-9-30 07:57 | 显示全部楼层 |阅读模式
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,15);
EN2:=ZIG(3,15)>REF(ZIG(3,15),1) AND REF(ZIG(3,15),1)<=REF(ZIG(3,15),2) AND REF(ZIG(3,15),2)<=REF(ZIG(3,15),3);
EX2:=ZIG(3,15)<REF(ZIG(3,15),1) AND REF(ZIG(3,15),1)>=REF(ZIG(3,15),2) AND REF(ZIG(3,15),2)>=REF(ZIG(3,15),3);
PL20:=ZIG(3,26);
EN3:=ZIG(3,26)>REF(ZIG(3,26),1) AND REF(ZIG(3,26),1)<=REF(ZIG(3,26),2) AND REF(ZIG(3,26),2)<=REF(ZIG(3,26),3);
EX3:=ZIG(3,26)<REF(ZIG(3,26),1) AND REF(ZIG(3,26),1)>=REF(ZIG(3,26),2) AND REF(ZIG(3,26),2)>=REF(ZIG(3,26),3);
PL40:=ZIG(3,55);
走强一:=BARSLAST(PL5<REF(PL5,1));
走弱一:=BARSLAST(PL5>REF(PL5,1));
走强二 :=BARSLAST(PL10<REF(PL10,1));
走弱二:=BARSLAST(PL10>REF(PL10,1));
走强三:=BARSLAST(PL20<REF(PL20,1));
走弱三:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);

DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.999,'▲反弹线上买入'),COLORFFFF80;
DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(重仓做空)'),COLORFFFF00;

DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.01,'右肩顶安全卖出'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.99,'▲主跌浪底买入')COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.03,'1浪顶卖出'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.97,'▲2浪启动加多'),COLORFFFFFF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'2浪顶卖出'),COLORFFFFFF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.990,'▲3浪启动加多'),COLORFFFFFF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,HIGH*1.02,'提示/3浪顶必空'),COLORFFFFFF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2,HIGH*1.02,'趋势做空摸绝顶'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.990,'【大波段买】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.001,'【大波段卖出】'),COLOR00FF00;

DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.993,'【C底大趋势反转买入】'),
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.01,'卖出'),COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.999,''),COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.01,'卖出'),COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.98,'买入'),COLOR00FFFF;
DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.99,''),COLORFFFF00;

DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.99,'(底部)'),COLORFFFF00;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.01,'绝顶'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.999,'【A买入】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.01,'【B卖出】'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.999,'【C到底】'),COLOR00FF00;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'卖出'),COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.98,'买入'),COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.002,'顶'),COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*1.002,'底部'),COLOR00FFFF;

回复

使用道具 举报

31

主题

7766

帖子

7776

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
发表于 2024-9-30 08:53 | 显示全部楼层
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,15);
EN2:=ZIG(3,15)>REF(ZIG(3,15),1) AND REF(ZIG(3,15),1)<=REF(ZIG(3,15),2) AND REF(ZIG(3,15),2)<=REF(ZIG(3,15),3);
EX2:=ZIG(3,15)<REF(ZIG(3,15),1) AND REF(ZIG(3,15),1)>=REF(ZIG(3,15),2) AND REF(ZIG(3,15),2)>=REF(ZIG(3,15),3);
PL20:=ZIG(3,26);
EN3:=ZIG(3,26)>REF(ZIG(3,26),1) AND REF(ZIG(3,26),1)<=REF(ZIG(3,26),2) AND REF(ZIG(3,26),2)<=REF(ZIG(3,26),3);
EX3:=ZIG(3,26)<REF(ZIG(3,26),1) AND REF(ZIG(3,26),1)>=REF(ZIG(3,26),2) AND REF(ZIG(3,26),2)>=REF(ZIG(3,26),3);
PL40:=ZIG(3,55);
走强一:=BARSLAST(PL5<REF(PL5,1));
走弱一:=BARSLAST(PL5>REF(PL5,1));
走强二 :=BARSLAST(PL10<REF(PL10,1));
走弱二:=BARSLAST(PL10>REF(PL10,1));
走强三:=BARSLAST(PL20<REF(PL20,1));
走弱三:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);

DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.999,'▲反弹线上买入'),COLORFFFF80;
DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.03,'(重仓做空)'),COLORFFFF00;

DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.01,'右肩顶安全卖出'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.99,'▲主跌浪底买入')COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.03,'1浪顶卖出'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.97,'▲2浪启动加多'),COLORFFFFFF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'2浪顶卖出'),COLORFFFFFF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.990,'▲3浪启动加多'),COLORFFFFFF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,HIGH*1.02,'提示/3浪顶必空'),COLORFFFFFF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2,HIGH*1.02,'趋势做空摸绝顶'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.990,'【大波段买】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.001,'【大波段卖出】'),COLOR00FF00;

DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.993,'【C底大趋势反转买入】');
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.01,'卖出',colorred);
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.999,'',colorred);
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.01,'卖出',colorred);
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.98,'买入',colorred);
DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.99,''),COLORFFFF00;

DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.99,'(底部)'),COLORFFFF00;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.01,'绝顶'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.999,'【A买入】'),COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.01,'【B卖出】'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.999,'【C到底】'),COLOR00FF00;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'卖出'),colorred;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.98,'买入'),colorred;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.002,'顶'),colorred;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*1.002,'底部'),colorred;
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

14

主题

37

帖子

37

积分

Rank: 1

等级: 新手上路

注册:
2022-8-25
曾用名:
 楼主| 发表于 2024-9-30 08:57 | 显示全部楼层
可以用了 感谢老师
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-23 18:45 , Processed in 0.208920 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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