通达信波段长牛指标公式
2021/4/13 18:59:39
XA_1:=MA(KDJ.K#WEEK(9,3,3),5);
XA_2:=MA(KDJ.D#WEEK(9,3,3),5);
XA_3:=MA(KDJ.J#WEEK(9,3,3),5);
STICKLINE(XA_1>=XA_2,65,68,3,0),NODRAW,COLORGREEN;
STICKLINE(XA_1<XA_2,65,68,3,1),NODRAW,COLOR696969;
DRAWTEXT(CURRBARSCOUNT=15,40,81),NODRAW,COLORGREEN;
STICKLINE(XA_1>=REF(XA_1,1),69,72,3,0),NODRAW,COLORMAGENTA;
STICKLINE(XA_1<REF(XA_1,1),69,72,3,1),NODRAW,COLOR333333;
DRAWTEXT(CURRBARSCOUNT=14,44,82),NODRAW,COLORMAGENTA;
XA_4:=RSI.RSI1#WEEK(14);
STICKLINE(XA_4>=60,72,75,3,0),NODRAW,COLORRED;
STICKLINE(XA_4<60,72,75,3,1),NODRAW,COLOR698989;
DRAWTEXT(CURRBARSCOUNT=13,48,83),NODRAW,COLORRED;
XA_5:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
XA_6:=EMA(XA_5,9/2);
STICKLINE(XA_5>=XA_6,57,60,3,0),NODRAW,COLORRED;
DRAWTEXT(CURRBARSCOUNT=13,32,79),NODRAW,COLORRED;
XA_7:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
XA_8:=SMA(XA_7,3,1);
XA_9:=SMA(XA_8,3,1);
STICKLINE(XA_8>=XA_9,61,64,3,0),NODRAW,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=13,36,80),NODRAW,COLORYELLOW;
XA_10:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X1:XA_4>=60,NODRAW,COLORRED;
X2:XA_1>=REF(XA_1,1),NODRAW,COLORMAGENTA;
X3:XA_1>=XA_2,NODRAW,COLORGREEN;
X4:XA_5>=XA_6,NODRAW,COLORRED;
X5:XA_8>=XA_9,NODRAW,COLORYELLOW;
底仓:X1 AND X2;
STICKLINE(底仓,底仓,3,5,0),COLORGREEN;
加仓:X1 AND X2 AND X3;
STICKLINE(加仓,加仓,4,3,0),COLORRED;
追涨:X1 AND X2 AND X3 AND X4 AND X5;
STICKLINE(追涨,追涨,5,1,0),COLORMAGENTA;
XG3:X4 AND X5;
STICKLINE(XG3,XG3,7,0,0),COLORYELLOW;
重点:X1 AND X2 AND X5;
STICKLINE(重点,重点,6,0.1,0),COLORCYAN;
投股 票网 www.tou1 8.cn
[源码翻译]通达信软件动态翻译的结果
XA_1赋值:KDJ的K[取周线数据](9,3,3)的5日简单移动平均
XA_2赋值:KDJ的D[取周线数据](9,3,3)的5日简单移动平均
XA_3赋值:KDJ的J[取周线数据](9,3,3)的5日简单移动平均
当满足条件XA_1>=XA_2时,在65和68位置之间画柱状线,宽度为3,0不为0则画空心柱.,NODRAW,画绿色
当满足条件XA_1<XA_2时,在65和68位置之间画柱状线,宽度为3,1不为0则画空心柱.,NODRAW,COLOR696969
当满足条件到最后交易的周期=15时,在40位置书写文字,NODRAW,画绿色
当满足条件XA_1>=1日前的XA_1时,在69和72位置之间画柱状线,宽度为3,0不为0则画空心柱.,NODRAW,画洋红色
当满足条件XA_1<1日前的XA_1时,在69和72位置之间画柱状线,宽度为3,1不为0则画空心柱.,NODRAW,COLOR333333
当满足条件到最后交易的周期=14时,在44位置书写文字,NODRAW,画洋红色
XA_4赋值:RSI的RSI1[取周线数据](14)
当满足条件XA_4>=60时,在72和75位置之间画柱状线,宽度为3,0不为0则画空心柱.,NODRAW,画红色
当满足条件XA_4<60时,在72和75位置之间画柱状线,宽度为3,1不为0则画空心柱.,NODRAW,COLOR698989
当满足条件到最后交易的周期=13时,在48位置书写文字,NODRAW,画红色
XA_5赋值:收盘价的12/2日指数移动平均-收盘价的26/2日指数移动平均
XA_6赋值:XA_5的9/2日指数移动平均
当满足条件XA_5>=XA_6时,在57和60位置之间画柱状线,宽度为3,0不为0则画空心柱.,NODRAW,画红色
当满足条件到最后交易的周期=13时,在32位置书写文字,NODRAW,画红色
XA_7赋值:(收盘价-36日内最低价的最低值)/(36日内最高价的最高值-36日内最低价的最低值)
XA_8赋值:XA_7的3日[1日权重]移动平均
XA_9赋值:XA_8的3日[1日权重]移动平均
当满足条件XA_8>=XA_9时,在61和64位置之间画柱状线,宽度为3,0不为0则画空心柱.,NODRAW,画黄色
当满足条件到最后交易的周期=13时,在36位置书写文字,NODRAW,画黄色
XA_10赋值:成交量(手)/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出X1:XA_4>=60,NODRAW,画红色
输出X2:XA_1>=1日前的XA_1,NODRAW,画洋红色
输出X3:XA_1>=XA_2,NODRAW,画绿色
输出X4:XA_5>=XA_6,NODRAW,画红色
输出X5:XA_8>=XA_9,NODRAW,画黄色
输出底仓:X1 AND X2
当满足条件底仓时,在底仓和3位置之间画柱状线,宽度为5,0不为0则画空心柱.,画绿色
输出加仓:X1 AND X2 AND X3
当满足条件加仓时,在加仓和4位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
输出追涨:X1 AND X2 AND X3 AND X4 AND X5
当满足条件追涨时,在追涨和5位置之间画柱状线,宽度为1,0不为0则画空心柱.,画洋红色
输出XG3:X4 AND X5
当满足条件XG3时,在XG3和7位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色
输出重点:X1 AND X2 AND X5
当满足条件重点时,在重点和6位置之间画柱状线,宽度为0.1,0不为0则画空心柱.,画青色
股市公式下载推荐