#最新
文华财经T8多空波段量化自动化交易程序策略源码

2024-05-13 0 49,791

文华财经T8多空波段量化自动化交易程序策略源码:

SJ:=1;

LHS:1,NODRAW;

A:=EMA2(HIGH*SJ,30);

B:=EMA2(LOW*SJ,30);

A1:=EMA2(HIGH*SJ,150),LINETHICK1;

B1:=EMA2(LOW*SJ,150)*LHS,LINETHICK1;

S1:=CROSS(CLOSE,EMA2(HIGH,150))*LHS,LINETHICK1;

X1:=CROSS(EMA2(LOW,150),CLOSE)*LHS,LINETHICK1;

WS1:=BARSLAST(S1)+1*LHS,LINETHICK1;

WX1:=BARSLAST(X1)+1*LHS,LINETHICK1;

SS1:=CROSS(SUM(S1,WX1),0.5)*LHS,LINETHICK1;

XX1:=CROSS(SUM(X1,WS1),0.5)*LHS,LINETHICK1;

S:=CROSS(CLOSE,EMA2(HIGH,30))*LHS,LINETHICK1;

X:=CROSS(EMA2(LOW,30),CLOSE)*LHS,LINETHICK1;

WS:=BARSLAST(S)+1*LHS,LINETHICK1;

WX:=BARSLAST(X)+1,LINETHICK1;

SS:=CROSS(SUM(S,WX),0.5)*LHS,LINETHICK1;

XX:=CROSS(SUM(X,WS),0.5)*LHS,LINETHICK1;

FILLRGN(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),RGB(124,20,126));

FILLRGN(CLOSE<EMA2(LOW*SJ,30),EMA2(LOW,30),EMA2(HIGH,30),RGB(0,75,0));

FILLRGN(CLOSE>EMA2(HIGH*SJ,150),EMA2(HIGH,150),EMA2(LOW,150),RGB(75,0,0));

FILLRGN(CLOSE<EMA2(LOW,150),EMA2(LOW,150),EMA2(HIGH,150),RGB(30,75,158));

PARTLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA);

PARTLINE(CLOSE<EMA2(HIGH,30),EMA2(HIGH,30),COLORGREEN);

PARTLINE(CLOSE>EMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA);

PARTLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),COLORGREEN);

PARTLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),COLORRED);

PARTLINE(CLOSE<EMA2(HIGH,150),EMA2(HIGH,150),COLORBLUE);

PARTLINE(CLOSE>EMA2(LOW,150),EMA2(LOW,150),COLORRED);

PARTLINE(CLOSE<EMA2(LOW*SJ,150),EMA2(LOW,150),COLORBLUE);

STICKLINE(SUM(X,WS)>0.5 && CLOSE>=OPEN,OPEN,CLOSE,COLORCYAN,1);

STICKLINE(SUM(X,WS)>0.5 && CLOSE<OPEN,OPEN,CLOSE,COLORCYAN,0);

DRAWLINE(SUM(X,WS)>0.5,HIGH*SJ,CLOSE>OPEN,CLOSE,COLORCYAN);

DRAWLINE(SUM(X,WS)>0.5,LOW,CLOSE>OPEN,OPEN,COLORCYAN);

DRAWLINE(SUM(X,WS)>0.5,HIGH,CLOSE<OPEN,OPEN,COLORCYAN);

DRAWLINE(SUM(X,WS)>0.5,LOW,CLOSE<OPEN,CLOSE,COLORCYAN);

DRAWLINE(SUM(X,WS)>0.5,HIGH,CLOSE=OPEN,LOW,COLORCYAN);

STICKLINE(SUM(S,WX)>0.5 && CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1);

STICKLINE(SUM(S,WX)>0.5 && CLOSE<OPEN,OPEN,CLOSE,COLORRED,0);

DRAWLINE(SUM(S,WX)>0.5,HIGH,CLOSE>OPEN,CLOSE,COLORRED);

DRAWKLINE1(H,O,L,C);

多:CROSS(CLOSE>EMA2(HIGH,150)&&CLOSE>EMA2(LOW,150),0.5),WORD(0,’多’),VALIGN0,COLORRED,FONTSIZE20;

平多:CROSS(NOT(CLOSE>EMA2(HIGH,150)&&CLOSE>EMA2(LOW,150)),0.5)&&COUNT(CROSS(NOT(CLOSE>EMA2(HIGH,150)&&CLOSE>EMA2(LOW,150)),0.5),BARSLAST(多)),WORD(1,’平多’),COLORGREEN,FONTSIZE20;

空:CROSS(CLOSE<EMA2(HIGH,150)&&CLOSE<EMA2(LOW*SJ,150),0.5),WORD(0,’空’),COLORGREEN,FONTSIZE20,VALIGN0;

平空:CROSS(NOT(CLOSE<EMA2(HIGH,150)&&CLOSE<EMA2(LOW*SJ,150)),0.5)&&COUNT(CROSS(NOT(CLOSE<EMA2(HIGH,150)&&CLOSE<EMA2(LOW*SJ,150)),0.5),BARSLAST(空)),WORD(1,’平空’),COLORRED,FONTSIZE20;

多,BK;

平多,SP;

空,SK;

平空,BP;

AUTOFILTER;

文华财经T8多空波段量化自动化交易程序策略源码

常见问题及下载声明: 1、指标不提供具体的使用方法,详情里一般会说明使用建议,需自行学习研究。 2、指标下载后,代表已对该指标认可,顾不退款! 3、指标不会安装,可在首页点击指标公式安装,各大软件指标安装教程。 4、指标是分析学习工具,不能依赖操作,仅供学习之用,依次操作,盈亏自负! 转载文章声明:本网站转载文章仅为传播更多期货行业信息,并不代表本网站赞同其观点,本网站也不保证文章内容的真实性、准确性和可靠性、完整性。 文章解释权归原作者所有,依次操作,所有后果自行承担,与本站无任何关系。如该文章涉及作品内容、版权或禁止转载的,请及时联系,我们将在第一时间处理。

云析赢指标公式网首席工程师

相关文章

发表评论
暂无评论