变色三带趋势类公式通达信公式 主图 源码附图
A:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=9.8/100;
B:=(REF(CLOSE,1)-CLOSE)/CLOSE>=9.8/100;
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1:=(EMA(VAR1,14)+EMA(VAR1,14)+EMA(VAR1,14)+EMA(VAR1,14))/4;
IF(A1>=REF(A1,1),A1,DRAWNULL),COLORLIRED;
IF(A1<=REF(A1,1),A1,DRAWNULL),COLORGREEN,LINETHICK1;
A2:=EMA(A1,3);{股票指标网 整理}
IF(A2>=REF(A2,1),A2,DRAWNULL),COLORLIRED,LINETHICK2;
IF(A2<=REF(A2,1),A2,DRAWNULL),COLORGREEN,LINETHICK2;
A3:=EMA(A2,4);
IF(A3>=REF(A3,1),A3,DRAWNULL),COLORLIRED;
IF(A3<=REF(A3,1),A3,DRAWNULL),COLORGREEN;
MA1:=EMA(CLOSE,4);
IF(MA1>=REF(MA1,1),MA1,DRAWNULL ),COLORC0C0C0,LINETHICK1;
IF(MA1<=REF(MA1,1),MA1,DRAWNULL ),COLORBLUE,LINETHICK1;
MA2:=EMA(CLOSE,5);
IF(MA2>=REF(MA2,1),MA2,DRAWNULL ),COLORC0C0C0,LINETHICK3;
IF(MA2<=REF(MA2,1),MA2,DRAWNULL ),COLORBLUE,LINETHICK3;
MA3:=EMA(CLOSE,6);
IF(MA3>=REF(MA3,1),MA3,DRAWNULL ),COLORC0C0C0,LINETHICK1;
IF(MA2<=REF(MA3,1),MA3,DRAWNULL ),COLORBLUE,LINETHICK1;
A55:=EMA(A1,18);
IF(A55>=REF(A55,1),A55,DRAWNULL),COLORRED,LINETHICK1;
IF(A55<=REF(A55,1),A55,DRAWNULL),COLORFF00FF,LINETHICK1;
A56:=EMA(A55,3);
IF(A56>=REF(A56,1),A56,DRAWNULL),COLORRED,LINETHICK3;
IF(A56<=REF(A56,1),A56,DRAWNULL),COLORFF00FF,LINETHICK3;
A57:EMA(A55,5);
IF(A57>=REF(A57,1),A57,DRAWNULL),COLORRED,LINETHICK1;
IF(A57<=REF(A57,1),A57,DRAWNULL),COLORFF00FF,LINETHICK1;
DRAWKLINE(H,O,L,C);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A赋值:(收盘价-1日前的收盘价)/1日前的收盘价>=9.8/100
B赋值:(1日前的收盘价-收盘价)/收盘价>=9.8/100
VAR1:=(2*收盘价+最高价+最低价+开盘价)/5
A1:=(VAR1的14日指数移动平均+VAR1的14日指数移动平均+VAR1的14日指数移动平均+VAR1的14日指数移动平均)/4
IF(A1>=1日前的A1,A1,DRAWNULL),COLORLIRED
IF(A1<=1日前的A1,A1,DRAWNULL),画绿色,LINETHICK1
A2:=A1的3日指数移动平均
{股票指标网 整理}
IF(A2>=1日前的A2,A2,DRAWNULL),COLORLIRED, 线宽为2
IF(A2<=1日前的A2,A2,DRAWNULL),画绿色, 线宽为2
A3:=A2的4日指数移动平均
IF(A3>=1日前的A3,A3,DRAWNULL),COLORLIRED
IF(A3<=1日前的A3,A3,DRAWNULL),画绿色
MA1:=收盘价的4日指数移动平均
IF(MA1>=1日前的MA1,MA1,DRAWNULL ),COLORC0C0C0,LINETHICK1
IF(MA1<=1日前的MA1,MA1,DRAWNULL ),COLORBLUE,LINETHICK1
MA2:=收盘价的5日指数移动平均
IF(MA2>=1日前的MA2,MA2,DRAWNULL ),COLORC0C0C0, 线宽为3
IF(MA2<=1日前的MA2,MA2,DRAWNULL ),COLORBLUE, 线宽为3
MA3:=收盘价的6日指数移动平均
IF(MA3>=1日前的MA3,MA3,DRAWNULL ),COLORC0C0C0,LINETHICK1
IF(MA2<=1日前的MA3,MA3,DRAWNULL ),COLORBLUE,LINETHICK1
A55:=A1的18日指数移动平均
IF(A55>=1日前的A55,A55,DRAWNULL),画红色,LINETHICK1
IF(A55<=1日前的A55,A55,DRAWNULL),COLORFF00FF,LINETHICK1
A56:=A55的3日指数移动平均
IF(A56>=1日前的A56,A56,DRAWNULL),画红色, 线宽为3
IF(A56<=1日前的A56,A56,DRAWNULL),COLORFF00FF, 线宽为3
A57:A55的5日指数移动平均
IF(A57>=1日前的A57,A57,DRAWNULL),画红色,LINETHICK1
IF(A57<=1日前的A57,A57,DRAWNULL),COLORFF00FF,LINETHICK1
DRAWKLINE(H,O,L,C)