以下是大智慧乾坤线副图指标
大智慧乾坤线副图指标
源码
{234、乾坤线}
input:N1(8,1,100),N2 (20,1,100),N3(50,1,100),P(0.38,0,1);
{Var1:=IF(YEAR>2003 AND MONTH>1,0,1);}
Var2:=MA(CLOSE,55);
牛: STICKLINE(Var2-REF(Var2,1)>0,Var2,Var2,1,0);
熊: STICKLINE(Var2-REF(Var2,1)<0,Var2,Var2,1,0);
Var3:=EMA(CLOSE,60);
X1: EMA(CLOSE,8),COLORffff99;
X2: EMA(CLOSE,20),COLORYELLOW;
X3: EMA(X1,20),color0000ff;
Var4:=EMA(X1,50);
Var5:=EMA(X1,100);
Var6:=EMA(X1,150);
Var7:=(MA(CLOSE,3)+MA(CLOSE,8)+MA(CLOSE,34))/3;
Var8:=EMA(Var7,21);
Var9:=CLOSE*VOL;
VarA:=EMA(CLOSE,34);
顶: EMA(EMA(HIGH,5),10)*1.12,COLORWHITE;
底: MA(VarA*0.82,5);
中线: (顶+底)/2,color0099ff,linethick2;
阻力: EMA(EMA(HIGH,5),5)*1.04,color00ff00,POINTDOT;
支撑: EMA(EMA(LOW,5),5)*0.94,COLORffff99,POINTDOT;
超买上: IF(HIGH>顶,顶+1,顶),COLORffcc66;
超卖下: IF(LOW<底,底-1,底),COLORff9933;
DRAWTEXT(CROSS(CLOSE,底),底-1,\’★\’);
DRAWTEXT(HIGH>顶,顶+1,\’★\’);
VarB:=HHV(HIGH,500);
VarC:=LLV(LOW,500);
VarD:=HHV(HIGH,250);
VarE:=LLV(LOW,250);
VarF:=HHV(HIGH,125);
Var10:=LLV(LOW,125);
Var11:=MA((VarB*0.45+VarD*0.5+VarC+VarE+Var10)/5,35);
Var12:=MA((VarD*0.62+Var10)/2,35);
Var13:=MA((VarD*0.75+Var10)/2,18);
Var14:=MA((VarD*0.93+Var11*2+Var12*1.8+Var13*1.5)/4,18);
Var15:=MA((VarB*0.95+Var11*3+Var12*2)/3,35);
底线: Var11,colorred;