{妖龙分时可T0}
{++++++++++++++++++++++原本模块++++++++++++++++++++++++++++++++++++}
MA30:=EMA(CLOSE,30);
强弱:=EMA(CLOSE,900);
DRAWICON(CROSS(MA30,强弱),H,23);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORYELLOW,LINETHICK2;
支撑:L1+P1*0.5/8,COLORLIBLUE,LINETHICK2;
现价:CLOSE,COLORWHITE,LINETHICK2;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★S'),COLORRED;{抛};
DRAWTEXT(FROMOPEN<120 AND CURRBARSCOUNT=2 AND 现价> 阻力,阻力,'强势上攻区'),COLORRED;
DRAWTEXT(FROMOPEN>=120 AND CURRBARSCOUNT=2 AND 现价> 阻力,阻力,'强势整理区'),COLORRED;
DRAWTEXT(FROMOPEN>=120 AND CURRBARSCOUNT=2 AND 现价< 支撑,支撑,'空头进攻区'),COLORRED;
DRAWTEXT(FROMOPEN<120 AND CURRBARSCOUNT=2 AND 现价< 支撑,支撑,'弱势进攻区'),COLORRED;
{+++++++++++++++++++++++附加模块+++++++++++++++++++++++++++++++++++}
均线:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),
1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;
均线H:(均线*1.007 ),COLORFF6600;
均线L:(均线/1.005 ),COLORBLUE;
均线横盘:=C<均线H AND C>均线L;
STICKLINE(均线横盘,均线L,均线,3,0),COLORYELLOW;
放量:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;
横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)<1;
横涨:=横盘 AND 放量 AND (C>均线H);
横跌:=横盘 AND 放量 AND CROSS(均线L,C) ;
突破:=FILTER(横涨,100);
下破:=FILTER(横跌,50);
DRAWTEXT(突破,均线H,'★突破'),COLORFF00FF;
JX:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),
1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;
压力:"MK.明Y#DAY",COLORLIRED,NODRAW;
平衡: "MK.明D#DAY",COLORLIRED,NODRAW;
强势: "MK.明Z#DAY",COLORLIRED,NODRAW;
支持: "MK.明K#DAY",COLORLIRED,NODRAW;
{
DRAWNUMBER(CURRBARSCOUNT=2,压力, VAR2STR(压力,2)),COLORYELLOW,LINETHICK3;
DRAWNUMBER(CURRBARSCOUNT=2,平衡, VAR2STR(平衡,2)),COLORYELLOW,LINETHICK3;
DRAWNUMBER(CURRBARSCOUNT=2,强势, VAR2STR(强势,2)),COLORYELLOW,LINETHICK3;
DRAWNUMBER(CURRBARSCOUNT=2,支持, VAR2STR(支持,2)),COLORYELLOW,LINETHICK3;
{中轴线:0,COLORYELLOW;}
LDM:=(C-REF(C,5))/REF(C,5);
力度:=DYNAINFO(3)*(1+LDM);
STICKLINE(LDM>0,DYNAINFO(3),力度,0.5,0),COLORRED;
STICKLINE(LDM<0,DYNAINFO(3),力度,0.5,0),COLORGREEN;
标志1:=REF(LDM>0,1) AND (力度-DYNAINFO(3))>2*(REF(力度,1)-DYNAINFO(3));
标志:=FILTER(标志1, 3);
DRAWICON( 标志,DYNAINFO(3),1);
DRAWICON( REF(LDM<0,1) AND (DYNAINFO(3)-力度)>2*(DYNAINFO(3)-REF(力度,1)),DYNAINFO(3),2);
柱子统计:=SUM(LDM,0)+ DYNAINFO(3);
IF(柱子统计>=DYNAINFO(3),柱子统计,DRAWNULL),COLORRED;
IF(柱子统计<DYNAINFO(3),柱子统计,DRAWNULL),COLORGREEN;