HLH红蓝灰主图-精品通达信指标公式源码分享
N1:=8;
N2:=20;
N3:=50;
SG:EMA(HHV(H,1),8),COLORFF9900;
X1:EMA(CLOSE,8),COLORYELLOW;
JJ:=(H+L+3*C)/5;
VAR21:=EMA(JJ,5);
VAR22:=EMA(JJ,13);
VAR23:=EMA(JJ,21);
VAR24:=EMA(JJ,34);
H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
成本和谐:MA(H1A,5),COLORRED,LINETHICK2;
X6:EMA(X1,50*3),COLORWHITE,CIRCLEDOT,LINETHICK2;
X7:EMA(X1,50*5),COLORFF00FF,LINETHICK4;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
LL:=LLV(C,100),COLORGRAY;
X11:STICKLINE(成本和谐>REF(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),COLORRED,LINETHICK2;
X30:=X1<REF(X1,1) AND C<X1;
X31:STICKLINE(SG<REF(SG,1) OR X30, SG*0.998,SG*1.004,8,0),COLORBLUE,LINETHICK3;
X21:STICKLINE(成本和谐<REF(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),COLORGRAY,LINETHICK4;
X66:EMA(X1,50*3),COLORGREEN,CIRCLEDOT;
MAV:=(2*CLOSE+HIGH+LOW)/4;
SK:SLOPE(EMA(MAV,2),7)*5+LL,COLORFF9900;
SD:EMA(SK,2),COLORFF00FF;
SJ:2.8*SK-1.8*SD,COLORGREEN;
DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,L*1.02,1);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,H*0.98,2);
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!