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X(1,0.06,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.12,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.18,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.24,0,0,DYBLOCK)COLOR00FFFF;
HH:DYNAINFO(5),COLORDDAADD,LINETHICK1;
LL:DYNAINFO(6),COLOR888800,LINETHICK1;
中G:(HH+LL)/2,COLOR999999,LINETHICK1;
ZYG22:=DYNAINFO(5);
ZYG23:=DYNAINFO(6);
ZYG25:=ZYG22-ZYG23;
上顶:ZYG23+ZYG25*7/8,COLOR008800,DOTLINE;
阻力:ZYG23+ZYG25*2/3,COLOR777700,DOTLINE;
支撑:ZYG23+ZYG25/3,COLOR777700,DOTLINE;
下底:ZYG23+ZYG25*1/8,COLOR447777,DOTLINE;
DRAWNUMBER(CURRBARSCOUNT=232,ZYG22*0.9995,ZYG22),COLORFFAAFF;
DRAWNUMBER(CURRBARSCOUNT=232,ZYG23,ZYG23),COLORDDDD00;
DRAWNUMBER(CURRBARSCOUNT=232,中G,中G),COLORDDDDDD;
DRAWNUMBER(CURRBARSCOUNT=232,上顶,上顶),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=232,阻力,阻力),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=232,支撑,支撑),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=232,下底,下底),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=240,ZYG22*0.9995,'最高:'),COLORFFAAFF;
DRAWTEXT(CURRBARSCOUNT=240,ZYG23,'最低:'),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=240,上顶,'上顶:'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=240,阻力,'阻力:'),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=240,支撑,'支撑:'),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=240,下底,'下底:'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=240,中G,'平衡:'),COLOREEEEEE;
金钻指标精选:=BARSCOUNT(C);
均价黄:=SUM(C*V,金钻指标精选)/SUM(V,金钻指标精选);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
DRAWICON(每日一点,C,13);
DRAWTEXT(每日一点,L-0.01,'←日内起爆'),COLORYELLOW;
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
章鱼哥1:=SE;
章鱼哥2:=BU;
章鱼1:=SE;
章鱼2:=BU;
鱼哥:=章鱼哥1>章鱼哥2 AND 章鱼1>章鱼2;
鱼哥1:=章鱼哥1>章鱼哥2 AND 章鱼1< 章鱼2;
N鱼哥:=章鱼哥2>章鱼哥1 AND 章鱼2>章鱼1;
N鱼哥1:=章鱼哥2>章鱼哥1 AND 章鱼2< 章鱼1;
DRAWICON(FILTER(CROSS(章鱼哥1,章鱼哥2),60),OPEN*1,9);
DRAWTEXT(FILTER(CROSS(章鱼哥1,章鱼哥2),60) ,OPEN*0.995,'←拐点'),COLORRED;