DRAWGBK(C 0,RGB(10,160,0),RGB(25,15,0),0,' ',0);
爆发线:80,COLORRED;
即将爆发线: 65,COLORMAGENTA;
警戒线: 50,COLORCYAN;
低进线:=10,NODRAW;{第二版新加此线}
抄底线:7.5,COLORBROWN;{原为20,后10,现7.5可提前发现抄底时机}
趋势线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE,LINETHICK2;
LC:= REF(C,1);
F1:=ZIG(3,15);
上行:IF((F1 REF(F1,1)),105,5),COLORYELLOW,LINETHICK1;
IF(上行 50 AND (C MA(C,10) OR C REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORRED;
IF(上行 50 AND (C MA(C,10) OR C REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORRED;
IF(上行 50 AND (C MA(C,10) OR C REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
IF(上行 50 AND (C MA(C,10) OR C REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
DRAWTEXT(CROSS(趋势线,即将爆发线) AND 上行 50,趋势线,'涨') ,COLORMAGENTA;{原爆发线}
DRAWTEXT(CROSS(趋势线,抄底线) AND 上行 50,趋势线,'抄底') ,COLORWHITE;
DRAWTEXT(CROSS(趋势线,警戒线) AND 上行 50,趋势线,'关注') ,COLORWHITE;
DRAWTEXT(CROSS(趋势线,警戒线) AND 上行 50,趋势线,'加仓'),COLORCYAN;{原即将爆发线}
DRAWTEXT(CROSS(爆发线,趋势线),爆发线,'') ,COLORWHITE;
DRAWTEXT(((CROSS(上行,低进线)AND(趋势线 = 10)) OR CROSS(趋势线,低进线)) AND 上行 50,趋势线,'低进') ,COLORYELLOW;{原为(上行,抄底线)}
DRAWTEXT(CROSS(爆发线,上行),趋势线,'★高出') ,COLORRED;
抄底XG:CROSS(趋势线,抄底线) AND 上行 50,NODRAW,COLORWHITE;{曾上行 50}
低进XG:((CROSS(上行,低进线)AND(趋势线 = 10)) OR CROSS(趋势线,低进线)) AND 上行 50,NODRAW,COLORYELLOW;{原(趋势线,抄底线),后(主力资金,低进线)}
加仓XG:CROSS(趋势线,警戒线) AND 上行 50,NODRAW,COLORCYAN;{原即将爆发线}
拉涨XG:CROSS(趋势线,即将爆发线) AND 上行 50,NODRAW,COLORMAGENTA;{原爆发线};
{增加基于MACD的钝化分析数字1~9}
YY:=((C-MA(C,6))/MA(C,6)*100+(C-XMA(C,24))/MA(C,24)*100+(C-XMA(C,32))/MA(C,32)*100)/3;
{PP:=BARSLAST(CROSS(MA(C,5),MA(C,10)));
大趋势:=BARSLAST(CROSS(MA(C,10),MA(C,5))),COLOR00FFFF;
PP1:=IF(PP 大趋势,PP+1,0);
PP3:=MA(C,5) MA(C,20) AND MA(C,10) MA(C,20) AND MA(C,20) REF(MA(C,20),1) AND MA(C,30) REF(MA(C,30),1);
MC:=HHV(PP1,5) =2 AND PP3 AND MA(C,5) REF(MA(C,5),1) AND MA(C,5) MA(C,10);}
{准备跑:MC*PP1,COLORFF0000,LINETHICK1;
STICKLINE(YY -9 AND YY REF(YY,1),抄底线,0,3,0),COLOR0000FF;
STICKLINE(YY 9 AND FILTER(YY REF(YY,1),5),抄底线,0,3,0),COLOR80FF80;
STICKLINE(YY 20 AND FILTER(YY REF(YY,1),5),抄底线,0,3,0),COLOR80FF80;
STICKLINE(HHV(YY 20,10) AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(C,20)+2*STD(C,20)),抄底线,0,3,0)COLORFF0033;}
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
爆发警戒线: 50,COLOR00FF00;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,'加') ,COLORWHITE;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,'加') ,COLORWHITE;
DRAWTEXT(CROSS(爆发线,主力资金),爆发线,'空') ,COLORWHITE;
方向:IF((F1 REF(F1,1)),5,105),COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(抄底线,方向),抄底线,'进!') ,COLORRED;
DRAWTEXT(CROSS(方向,抄底线),方向+20,'出!') ,COLORWHITE;