金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 2942|回复: 1

通达信转金字塔

[复制链接]

13

主题

27

帖子

27

积分

Rank: 1

等级: 新手上路

注册:
2021-12-29
曾用名:
发表于 2022-1-13 18:19 | 显示全部楼层 |阅读模式
999999.png 如图,麻烦老师将横线起始点向左延伸一个单位与金叉第一根红色柱对齐,谢谢!

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:(DIFF-DEA)*2,COLORSTICK;
JC26:=CROSS(DIFF,DEA);
SC26:=CROSS(DEA,DIFF);
N126:=BARSLAST(JC26)+1;
N226:=BARSLAST(SC26)+1;
MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N226));
MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
DRAWLINE(A1=0,LLV(DIFF,N226),底背离,MLD2,0),COLORRED;
STICKLINE(底背离,DIFF,MLD2,0,0),COLORRED;
DRAWTEXT(底背离,MLD2,'底背离'),COLORRED;

HH:=VALUEWHEN(CROSS(DEA,DIFF),HHV(DIFF,N126));
HH2:=VALUEWHEN(CROSS(DEA,DIFF),REF(HH,1));

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,HHV(DIFF,N126),顶背离,HH2,0),COLORGREEN;
STICKLINE(顶背离,DIFF,HH2,0,0),COLORGREEN;
DRAWTEXT(顶背离,HH2,'顶背离'),COLORGREEN;


补充内容 (2022-1-13 18:20):
顶背离也一并修改,感谢!
回复

使用道具 举报

20

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
FireScript
发表于 2022-1-14 09:24 | 显示全部楼层
[PEL] 复制代码
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:(DIFF-DEA)*2,COLORSTICK;
JC26:=CROSS(DIFF,DEA);
SC26:=CROSS(DEA,DIFF);
N126:=BARSLAST(JC26)+1;
N226:=BARSLAST(SC26)+1;
MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N226));
MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
DRAWLINE(CROSS(DIFF,DEA),LLV(DIFF,N226),底背离,MLD2,0),COLORRED;
STICKLINE(底背离,DIFF,MLD2,0,0),COLORRED;
DRAWTEXT(底背离,MLD2,'底背离'),COLORRED;

HH:=VALUEWHEN(CROSS(DEA,DIFF),HHV(DIFF,N126));
HH2:=VALUEWHEN(CROSS(DEA,DIFF),REF(HH,1));

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(CROSS(DEA,DIFF),HHV(DIFF,N126),顶背离,HH2,0),COLORGREEN;
STICKLINE(顶背离,DIFF,HH2,0,0),COLORGREEN;
DRAWTEXT(顶背离,HH2,'顶背离'),COLORGREEN;
金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-7 06:20 , Processed in 0.170154 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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