同花顺炒股三柱线副图指标 源码介绍
同花顺炒股三柱线副图指标 源码
发一个自己用的指标,非常简单你一看就明白。红线为多,绿线为空。
Var0:=(H+L+C+O)/4;
Var1:=EMA((VAR0-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,13);
VAR2:=EMA(0.667*REF(Var1,1)+0.333*Var1,2);
多线: EMA(VAR1,1),colorred,linethick1;
空线: EMA(VAR2,1),colorgreen,linethick1;
趋势线: EMA(VAR1+VAR2,30)/2,coloryellow,linethick1,DOTLINE;
STICKLINE((Var1-VAR2)*5>=0,0,(Var1-VAR2)*5*1,8,0),color0000ff;
STICKLINE((Var1-VAR2)*5>=0,0,(Var1-VAR2)*5*0.8,8,0),color0066ff;
STICKLINE((Var1-VAR2)*5>=0,0,(Var1-VAR2)*5*0.6,8,0),color0099ff;
STICKLINE((Var1-VAR2)*5>=0,0,(Var1-VAR2)*5*0.4,8,0),color00ccff;
STICKLINE((Var1-VAR2)*5>=0,0,(Var1-VAR2)*5*0.2,8,0),color00ffff;
STICKLINE((Var1-VAR2)*5<=0,0,(Var1-VAR2)*5*1,8,0),colorgreen;
STICKLINE((Var1-VAR2)*5<=0,0,(Var1-VAR2)*5*0.8,8,0),COLOR33CC00;
STICKLINE((Var1-VAR2)*5<=0,0,(Var1-VAR2)*5*0.6,8,0),COLOR339900;
STICKLINE((Var1-VAR2)*5<=0,0,(Var1-VAR2)*5*0.4,8,0),COLOR337700;
STICKLINE((Var1-VAR2)*5<=0,0,(Var1-VAR2)*5*0.2,8,0),COLOR005500;
炒股:IF(CROSS(多线,空线) ,10,0),colorliblue;
DRAWTEXT(CROSS(多线,趋势线),0,'金叉'),colorwhite;
gd48558