金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 1974|回复: 1

请老师帮忙替换公式中的文华函数

[复制链接]

8

主题

44

帖子

44

积分

Rank: 4

等级: 专业版

注册:
2021-7-6
曾用名:
发表于 2022-5-27 22:36 | 显示全部楼层 |阅读模式
公式1:

TYP:=(CLOSE+HIGH+LOW)/3;
DX:(TYP-MA(TYP,34))/(0.015*AVEDEV(TYP,34)),LINETHICK2;
CX:(TYP-MA(TYP,144))/(0.015*AVEDEV(TYP,144)),LINETHICK2;
JXPC:ABS(DX-CX),NODRAW;

BACKGROUNDSTYLE(2);
REFLINE:-240,-80,0,80,240;

STICKLINE1( DX<=-80 AND CX>-80, DX, -80,3, 0),COLORGRAY;
STICKLINE1( DX>=80 AND CX<=80, DX, 80,3, 0),COLORGRAY;
STICKLINE1( DX>=80 AND CX>=80 AND DX>CX, DX, CX,3, 0),RGB(255,128,0);
STICKLINE1( CX<=-80, CX, -80,3, 0),COLORGREEN;
STICKLINE1( CX>=80, CX, 80,3, 0),COLORRED;
STICKLINE1( CX<=-80 AND DX<=-80 AND DX<CX, CX, DX,3, 0),COLORLIGHTGREEN;

DRAWICON( CROSSUP(DX,CX), DX, 'ICO4');
DRAWICON( CROSSDOWN(DX,CX), DX,'ICO5');

公式二:

DXCL := EMA(CLOSE,13) - EMA(CLOSE,34) ;
DXMA: EMA(DXCL,1),LINETHICK2;
CXCL : =EMA(CLOSE,55) - EMA(CLOSE,144);
CXMA: EMA(CXCL,1);

LEND:=SUMBARS(CROSSUP(DXMA,0),1)-1;
LENF:=SUMBARS(CROSSDOWN(DXMA,0),1)-1;

Z1:=DXMA>REF(DXMA,1) AND DXMA<0;
Z21:=DXMA>REF(DXMA,1) AND DXMA>=0  AND LEND<=4;
Z22:=DXMA>REF(DXMA,1) AND DXMA>=0  AND LEND>4;
Z3:=DXMA=REF(DXMA,1) AND DXMA>0  AND LEND>=4;

F1:=DXMA<REF(DXMA,1) AND DXMA>0;
F21:=DXMA<REF(DXMA,1) AND DXMA<=0  AND LENF<=4;
F22:=DXMA<REF(DXMA,1) AND DXMA<=0  AND LENF>=4;
F3:=DXMA=REF(DXMA,1) AND DXMA<0  AND LENF>=4;


STICKLINE1( Z1, DXMA, 0,3, 0),COLORRED;
STICKLINE1( Z21, DXMA, 0, 3, 0),COLORMAGENTA;
STICKLINE1( Z22, DXMA, 0, 3, 0),RGB(255,128,0);
STICKLINE1( Z3, DXMA, 0, 3, 0),COLORLIGHTGREY;

STICKLINE1( F1, DXMA, 0, 3, 0),COLORLIGHTGREEN;
STICKLINE1( F21, DXMA, 0, 3, 0),COLORCYAN;
STICKLINE1( F22, DXMA, 0, 3, 0),COLORBLUE;
STICKLINE1( F3, DXMA, 0, 3, 0),COLORGRAY;


回复

使用道具 举报

3

主题

2万

帖子

2万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-24
曾用名:
发表于 2022-5-27 23:02 | 显示全部楼层
本帖最后由 资深技术02 于 2022-5-27 23:05 编辑

TYP:=(CLOSE+HIGH+LOW)/3;
DX:(TYP-MA(TYP,34))/(0.015*AVEDEV(TYP,34)),LINETHICK2;
CX:(TYP-MA(TYP,144))/(0.015*AVEDEV(TYP,144)),LINETHICK2;
JXPC:ABS(DX-CX),NODRAW;




STICKLINE( DX<=-80 AND CX>-80, DX, -80,3, 0),COLORGRAY;
STICKLINE( DX>=80 AND CX<=80, DX, 80,3, 0),COLORGRAY;
STICKLINE( DX>=80 AND CX>=80 AND DX>CX, DX, CX,3, 0),COLORBLUE;
STICKLINE( CX<=-80, CX, -80,3, 0),COLORGREEN;
STICKLINE( CX>=80, CX, 80,3, 0),COLORRED;
STICKLINE( CX<=-80 AND DX<=-80 AND DX<CX, CX, DX,3, 0),COLORYELLOW;

DRAWICON( CROSS(DX,CX), DX, 'ICO4');
DRAWICON( CROSS(CX,DX), DX,'ICO5');


公式二:
DXCL := EMA(CLOSE,13) - EMA(CLOSE,34) ;
DXMA: EMA(DXCL,1),LINETHICK2;
CXCL : =EMA(CLOSE,55) - EMA(CLOSE,144);
CXMA: EMA(CXCL,1);

LEND:=SUMBARS(CROSS(DXMA,0),1)-1;
LENF:=SUMBARS(CROSS(0,DXMA),1)-1;

Z1:=DXMA>REF(DXMA,1) AND DXMA<0;
Z21:=DXMA>REF(DXMA,1) AND DXMA>=0  AND LEND<=4;
Z22:=DXMA>REF(DXMA,1) AND DXMA>=0  AND LEND>4;
Z3:=DXMA=REF(DXMA,1) AND DXMA>0  AND LEND>=4;

F1:=DXMA<REF(DXMA,1) AND DXMA>0;
F21:=DXMA<REF(DXMA,1) AND DXMA<=0  AND LENF<=4;
F22:=DXMA<REF(DXMA,1) AND DXMA<=0  AND LENF>=4;
F3:=DXMA=REF(DXMA,1) AND DXMA<0  AND LENF>=4;


STICKLINE( Z1, DXMA, 0,3, 0),COLORRED;
STICKLINE( Z21, DXMA, 0, 3, 0),COLORMAGENTA;
STICKLINE( Z22, DXMA, 0, 3, 0),COLORCYAN;
STICKLINE( Z3, DXMA, 0, 3, 0),COLORBLUE;

STICKLINE( F1, DXMA, 0, 3, 0),COLORGREEN;
STICKLINE( F21, DXMA, 0, 3, 0),COLORCYAN;
STICKLINE( F22, DXMA, 0, 3, 0),COLORBLUE;
STICKLINE( F3, DXMA, 0, 3, 0),COLORGRAY;

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-22 18:41 , Processed in 0.223684 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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