红蓝起爆点副图红蓝趋势源码
分水岭: DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL),COLOR00FFFF,LINETHICK2;CCC:C,COLORFFFFFF;UPPER : MA(CLOSE,14)*1.06,POINTDOT,COLORFF99FF,LINETHICK2;LOWER : MA(CLOSE,14)*0.94,POINTDOT,COLORFF00FF,LINETHICK2;MID:(UPPER+LOWER)/2,NODRAW,COLOR00FFFF,LINETHICK1;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1: (EMA(VAR1,1)+EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,4))/4,colorcyan,LINETHICK1;W1:=(EMA(VAR1,1)+EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,4))/4;A2: EMA(A1,2),colorcyan,LINETHICK1;W2:=EMA(A1,2);A3: EMA(A2,2),colorcyan,LINETHICK1;W3:=EMA(A2,2);A4: EMA(A3,2),colorcyan,LINETHICK1;W4:=EMA(A3,2);A5: EMA(A4,2),colorcyan,LINETHICK1;W5:=EMA(A4,2);A6: EMA(A5,2),colorcyan,LINETHICK1;W6:= EMA(A5,2);A7: EMA(A6,2),colorcyan,LINETHICK1;W7:= EMA(A6,2);IF(W1>REF(W1,1),A1,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W2,1),A2,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W3,1),A3,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W4,1),A4,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W5,1),A5,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W6,1),A6,DRAWNULL),colorred,LINETHICK1;IF(W2>REF(W7,1),A7,DRAWNULL),colorred,LINETHICK1;DRAWICON(CROSS(CCC,LOWER ) AND CROSS(CCC,A3 ),LOWER,23);DRAWICON(CROSS(UPPER,CCC),UPPER,15);DRAWTEXT(CROSS(CCC,UPPER),UPPER,'A'),coloryellow;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出分水岭: D收盘价的12日指数移动平均的5的成交量日累和/3/当前流通股本日简单移动平均,COLOR00FFFF, 线宽为2
输出CCC:C,COLORFFFFFF
UPPER : 收盘价的14日简单移动平均*1.06,POINTDOT,COLORFF99FF, 线宽为2
LOWER : 收盘价的14日简单移动平均*0.94,POINTDOT,COLORFF00FF, 线宽为2
输出MID:(UPPER+LOWER)/2,NODRAW,COLOR00FFFF,LINETHICK1
VAR1赋值:(2*收盘价+最高价+最低价+开盘价)/5
输出A1: (VAR1的1日指数移动平均+VAR1的2日指数移动平均+VAR1的3日指数移动平均+VAR1的4日指数移动平均)/4,画青色,LINETHICK1
W1赋值:(VAR1的1日指数移动平均+VAR1的2日指数移动平均+VAR1的3日指数移动平均+VAR1的4日指数移动平均)/4
输出A2: A1的2日指数移动平均,画青色,LINETHICK1
W2赋值:A1的2日指数移动平均
输出A3: A2的2日指数移动平均,画青色,LINETHICK1
W3赋值:A2的2日指数移动平均
输出A4: A3的2日指数移动平均,画青色,LINETHICK1
W4赋值:A3的2日指数移动平均
输出A5: A4的2日指数移动平均,画青色,LINETHICK1
W5赋值:A4的2日指数移动平均
输出A6: A5的2日指数移动平均,画青色,LINETHICK1
W6赋值: A5的2日指数移动平均
输出A7: A6的2日指数移动平均,画青色,LINETHICK1
W7赋值: A6的2日指数移动平均
IF(W1>1日前的W1,A1,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W2,A2,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W3,A3,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W4,A4,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W5,A5,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W6,A6,DRAWNULL),画红色,LINETHICK1
IF(W2>1日前的W7,A7,DRAWNULL),画红色,LINETHICK1
DRAWICON(CCC上穿LOWER AND CCC上穿A3 ,LOWER,23)
DRAWICON(UPPER上穿CCC,UPPER,15)
DRAWTEXT(CCC上穿UPPER,UPPER,'A'),画黄色