通达信【弘历太极VIP】+【六彩游龙进阶版】指标源码分享,强势信号一网打尽!
N1:=9;
STICKLINE(KDJ.J>50,O,C,3,0) COLORFF3300;
STICKLINE(KDJ.J,L,H,0,1) COLORFF3300;
STICKLINE(KDJ.J<50,O,C,2.5,0) COLORLIBLUE;
STICKLINE(KDJ.J<50,L,H,0,1) COLORLIBLUE;
STICKLINE(CROSS(KDJ.J,20),O,C,4,0) COLORRED;
STICKLINE(CROSS(KDJ.J,20),L,H,0,1) COLORRED;
STICKLINE(CROSS(80,KDJ.J),O,C,3.5,0) COLORYELLOW;
STICKLINE(CROSS(80,KDJ.J),L,H,0,1) COLORYELLOW;
STICKLINE(CROSS(50,KDJ.J),O,C,4.5,0) COLORGREEN;
STICKLINE(CROSS(50,KDJ.J),L,H,0,1) COLORGREEN;
黄飞:CROSS(80,KDJ.J) ,COLORYELLOW,NODRAW;
鸿:BARSLAST(KDJ.J<20) ,COLORRED,NODRAW;
绿:CROSS(50,KDJ.J) ,COLORGREEN,NODRAW;
黄金眼:BARSLAST(MA(CLOSE,10)<MA(CLOSE,21)),COLORMAGENTA,NODRAW;
X1:EMA(C,8),COLORWHITE;
X2:EMA(C,20),COLORYELLOW;
X3:EMA(X2,20),COLORGREEN;
IF(X3<REF(X3,1),X3,IF(REFX(X3<REF(X3,1),1),X3,DRAWNULL)),COLORRED,LINETHICK1;
VAR4: EMA(CLOSE,8),COLORWHITE;
VAR5: EMA(CLOSE,20),COLORYELLOW;
STICKLINE(VAR4>VAR5,VAR5,VAR4,0.01,0),COLORRED;
STICKLINE(VAR4<VAR5,VAR4,VAR5,0.01,0),COLORGREEN;
DRAWTEXT(CROSS(VAR5,VAR4),VAR4,'★止损'),COLORGREEN;
DRAWTEXT(CROSS(VAR4,VAR5),VAR4,'★'),COLORMAGENTA;
STICKLINE(ISLASTBAR,HHV(C,5),HHV(C,5),218,1)COLORBLUE;
STICKLINE(ISLASTBAR,HHV(C,5)*0.95,HHV(C,5)*0.95,218,1)COLORRED;
红五星:BARSLAST((VAR4,VAR5)/VAR4>=1),COLORRED,NODRAW;
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),LOW,HIGH,0.8,0),COLORMAGENTA;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),CLOSE,OPEN,5,0),COLORMAGENTA;
底:BARSLAST(STICKLINE((REF(RSI,1)>20 AND RSI<=20),CLOSE,OPEN,8,0)),COLORMAGENTA,NODRAW;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),LOW,HIGH,0.8,0),COLORBROWN;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),CLOSE,OPEN,5,0),COLORBROWN;
顶:BARSLAST(STICKLINE((REF(RSI,1)<=80 AND RSI>80),CLOSE,OPEN,8,0)),COLORBROWN,NODRAW;
T:BARSLAST(EMA(CLOSE,12)<EMA(CLOSE,50)),COLORWHITE,NODRAW;
未来函数检测结果如下:
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:9
当满足条件KDJ.J>50时,在O和C之间画柱状线
当满足条件KDJ.J时,在L和H之间画柱状线
当满足条件KDJ.J<50时,在O和C之间画柱状线
当满足条件KDJ.J<50时,在L和H之间画柱状线
STICKLINE(KDJ.J上穿20,O,C,4,0) 画红色
STICKLINE(KDJ.J上穿20,L,H,0,1) 画红色
STICKLINE(80上穿KDJ.J,O,C,3.5,0) 画黄色
STICKLINE(80上穿KDJ.J,L,H,0,1) 画黄色
STICKLINE(50上穿KDJ.J,O,C,4.5,0) 画绿色
STICKLINE(50上穿KDJ.J,L,H,0,1) 画绿色
输出黄飞:80上穿KDJ.J ,画黄色,NODRAW
输出鸿:上次KDJ.J<20距今天数 ,画红色,NODRAW
输出绿:50上穿KDJ.J ,画绿色,NODRAW
输出黄金眼:上次收盘价的10日简单移动平均<收盘价的21日简单移动平均距今天数,COLORMAGENTA,NODRAW
输出X1:C的8日指数移动平均,COLORWHITE
输出X2:C的20日指数移动平均,画黄色
输出X3:X2的20日指数移动平均,画绿色
IF(X3<1日前的X3,X3,IF(REFX(X3<1日前的X3,1),X3,DRAWNULL)),画红色,LINETHICK1
输出VAR4: 收盘价的8日指数移动平均,COLORWHITE
输出VAR5: 收盘价的20日指数移动平均,画黄色
当满足条件VAR4>VAR5时,在VAR5和VAR4之间画柱状线
当满足条件VAR4
DRAWTEXT(VAR5上穿VAR4,VAR4,'★止损'),画绿色
DRAWTEXT(VAR4上穿VAR5,VAR4,'★'),COLORMAGENTA
STICKLINE(ISLASTBAR,5日内C最高值,5日内C最高值,218,1) 画蓝色
STICKLINE(ISLASTBAR,5日内C最高值*0.95,5日内C最高值*0.95,218,1)画红色
输出红五星:上次(VAR4,VAR5距今天数/VAR4>=1),画红色,NODRAW
LC := 1日前的收盘价
RSI赋值:SMA(收盘价-LC和0较大值,N1,1)/SMA(收盘价-LC的绝对值,N1,1)*100
STICKLINE((1日前的RSI<=20 AND RSI>20),最低价,最高价,0.8,0),COLORMAGENTA
STICKLINE((1日前的RSI<=20 AND RSI>20),收盘价,开盘价,5,0),COLORMAGENTA
输出底:上次STICKLINE((1日前的RSI>20 AND RSI<=20距今天数,收盘价,开盘价,8,0)),COLORMAGENTA,NODRAW
STICKLINE((1日前的RSI>=80 AND RSI<80),最低价,最高价,0.8,0),COLORBROWN
STICKLINE((1日前的RSI>=80 AND RSI<80),收盘价,开盘价,5,0),COLORBROWN
输出顶:上次STICKLINE((1日前的RSI<=80 AND RSI>80距今天数,收盘价,开盘价,8,0)),COLORBROWN,NODRAW
输出T:上次收盘价的12日指数移动平均<收盘价的50日指数移动平均距今天数,COLORWHITE,NODRAW