var1:= "dmi.pdi"(12,6);
var2:= "dmi.mdi"(12,6);
var3:= var1>65 and var1>ref(var1,1);
var4:= llv(var1,0);
var5:= barslast(var4=var1);
var6:= (0-ref(var2,4))/(var4-ref(var2,var5))>2;
var7:= var1>ref(var1,1);
var8:= vol>2*ma(VOL,30);
var9:= "dmi.adx"(12,6);
vara:= "dmi.adxr"(12,6);
varb:= close>ma(close,30) and close
{ _股票大智慧指标公式}
vard:= barslast(cross(ma(close,5),ma(close,10)))
varf:= troughbars(3,15,1)<4;
var10:= ema(close,30)>ref(ema(close,30),2);
var11:= if(varf=1,50,0);
var12:= cross(var2,var1) and cross(vara,var9);
var13:= cross(var2,var1) and cross(var9,vara);
var14:= varb and varc and vard and var10 and var6 and var7 and var8*50;
var15:= barslast(cross(var2,var1)=1);
var16:= barslast(cross(var1,var2)=1);
var17:= hhv(var1,var16);
var18:= barslast(var1=var17);
多空: ema((close-ma((2*close+high+low)/4,30))/ma((2*close+high+low)/4,30)*100,3),linethick0,colorwhite;
0,colorred;
stickline(filter(varf=1,5) and 多空<(-10),50,0,5,0),colorred;
stickline(filter(varf=1,5),50,0,5,0),colorred;
var19:= var3 or var12 or var13*100;
var1a:= var13*100;
drawicon(filter(varf=1,3),50,1),colorffff00;
drawtext(filter(varf=1,3),25,'股神提示'),coloryellow;
stickline(多空<(-10),0,多空,1,0),coloryellow;
stickline(多空>10,0,多空,1,0),coloryellow;