四线金叉拐点主图 指标源码分享
A1:=MA(C,5);
A2:=MA(C,21);
A3:=(A1+A2)/2;
IF (A1>A2,A1,A3),COLOR0000AA,LINETHICK4;
IF (A1>A2,A1,A3),COLOR0000CC,LINETHICK3;
IF (A1>A2,A1,A3),COLOR0000EE,LINETHICK2;
IF (A1>A2,A1,A3),COLOR5555FF,LINETHICK1;
IF (A1>A2,A1,A3),COLOR8080FF,LINETHICK0;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1>A2,A2,A3),COLORRED,LINETHICK2;
IF (A1<=A2,A1,A3),COLOR00FF00,LINETHICK3;
IF (A1<=A2,A1,A3),COLOR00AA00,LINETHICK2;
IF (A1<=A2,A1,A3),COLOR00FF7F,LINETHICK1;
IF (A1<=A2,A2,A3),COLOR00FF00,LINETHICK3;
IF (A1<=A2,A2,A3),COLOR00AA00,LINETHICK2;
IF (A1<=A2,A2,A3),COLOR00FF7F,LINETHICK1;
A3,COLOR770077,LINETHICK4;
A3,COLOR990099,LINETHICK3;
A3,COLORBB00BB,LINETHICK2;
A3,COLORDD00DD,LINETHICK0;
A3,COLORFF00FF,LINETHICK0;
股道:=(1-C/SMA(C,13,1))*100;
基础:=EMA(C,43);
中线强弱拐点:EMA(股道*C/100+基础,3),COLORFF0000,LINETHICK4;
中线强弱拐点1:EMA(股道*C/100+基础,3),COLORFF5500,LINETHICK3;
中线强弱拐点2:EMA(股道*C/100+基础,3),COLORFF9900,LINETHICK2;
中线强弱拐点3:EMA(股道*C/100+基础,3),COLORFFFF00,LINETHICK0;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A1赋值:C的5日简单移动平均
A2赋值:C的21日简单移动平均
A3赋值:(A1+A2)/2
IF (A1>A2,A1,A3),COLOR0000AA,LINETHICK4
IF (A1>A2,A1,A3),COLOR0000CC, 线宽为3
IF (A1>A2,A1,A3),COLOR0000EE, 线宽为2
IF (A1>A2,A1,A3),COLOR5555FF,LINETHICK1
IF (A1>A2,A1,A3),COLOR8080FF,LINETHICK0
IF (A1>A2,A2,A3),画红色, 线宽为2
IF (A1>A2,A2,A3),画红色, 线宽为2
IF (A1>A2,A2,A3),画红色, 线宽为2
IF (A1>A2,A2,A3),画红色, 线宽为2
IF (A1>A2,A2,A3),画红色, 线宽为2
IF (A1<=A2,A1,A3),COLOR00FF00, 线宽为3
IF (A1<=A2,A1,A3),COLOR00AA00, 线宽为2
IF (A1<=A2,A1,A3),COLOR00FF7F,LINETHICK1
IF (A1<=A2,A2,A3),COLOR00FF00, 线宽为3
IF (A1<=A2,A2,A3),COLOR00AA00, 线宽为2
IF (A1<=A2,A2,A3),COLOR00FF7F,LINETHICK1
A3,COLOR770077,LINETHICK4
A3,COLOR990099, 线宽为3
A3,COLORBB00BB, 线宽为2
A3,COLORDD00DD,LINETHICK0
A3,COLORFF00FF,LINETHICK0
C的13日[1日权重]移动平均
基础赋值:C的43日指数移动平均
输出中线强弱拐点:股道*C/100+基础的3日指数移动平均,COLORFF0000,LINETHICK4
中线强弱拐点1:股道*C/100+基础的3日指数移动平均,COLORFF5500, 线宽为3
中线强弱拐点2:股道*C/100+基础的3日指数移动平均,COLORFF9900, 线宽为2
中线强弱拐点3:股道*C/100+基础的3日指数移动平均,COLORFFFF00,LINETHICK0