XA1:=IF(DATE<99999999,1,DRAWNULL);
牛熊線:DMA(MA(CLOSE+REF(CLOSE,5)*XA1/CLOSE*0.098,90),VOL),LINETHICK1,CIRCLEDOT,COLORYELLOW;
小牛:=CROSS(C,牛熊線);
DRAWTEXT(小牛,L,'走強(qiáng)區(qū)')*XA1,COLORRED,LINETHICK4;
DRAWTEXT(ISLASTBAR,牛熊線,'牛熊線'),COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
MXD:=IF((DATETODAY(DATE))<99999999,1,DRAWNULL);
操盤線:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))*MXD/210,NODRAW;
安全線:MA(操盤線,11)*XA1*MXD,COLORGRAY,LINESTICK,LINETHICK1;
MA20:MA(C,20)*MXD,NODRAW;
趨勢(shì)線:MA(C,6)*XA1 COLORGREEN, LINETHICK2;
STICKLINE(趨勢(shì)線>=MA20,CLOSE,OPEN,3,0)*MXD,COLOR0000FF;
STICKLINE(趨勢(shì)線>=MA20,CLOSE,OPEN,0.5,0)*MXD,COLORCC66FF;
STICKLINE(MA20>趨勢(shì)線,CLOSE,OPEN,3,0)*MXD,COLORFF9900;
STICKLINE(MA20>趨勢(shì)線,CLOSE,OPEN,0.5,0)*MXD,COLORFFCC00;
大牛:=CROSS(趨勢(shì)線,MA20)*XA1;
死牛:=CROSS(MA20,趨勢(shì)線)*XA1;
DRAWTEXT(大牛,L,'行情開始')*XA1,COLORYELLOW,LINETHICK4;
DRAWTEXT(死牛,H,'行情結(jié)束')*XA1,COLORWHITE ,LINETHICK4;
STICKLINE(CROSS(趨勢(shì)線,MA20)*MXD,OPEN,CLOSE,2,0),COLOR00FFFF ;
STICKLINE(CROSS(MA20,趨勢(shì)線)*MXD,OPEN,CLOSE,2,0),COLOR00DD00;
VAR2:=O>MA(C,安全線)*MXD AND C<MA(C,安全線)*XA1;
STICKLINE(CROSS(安全線,C),OPEN,CLOSE,2,0)*MXD,COLORFF0000;
AMA3:IF(趨勢(shì)線/REF(趨勢(shì)線,安全線)>0.997,趨勢(shì)線,DRAWNULL)*XA1,COLORBLUE,LINETHICK3;
AMA4:IF(趨勢(shì)線/REF(趨勢(shì)線,安全線)>1.001,趨勢(shì)線,DRAWNULL)*XA1,COLORRED,LINETHICK3;
WH1:=IF(L=LLV(L,9),L,0)*MXD;
WH2:=CONST(BARSLAST(WH1!=0))*MXD;
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)))*MXD;
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1)*MXD;
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)))*MXD;
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1)*MXD;
WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL)*MXD,COLORYELLOW,DOTLINE;
DRAWTEXT(ISLASTBAR,WH7,'進(jìn)場(chǎng)線')*XA1,COLORYELLOW;
DP:=IF(C=INDEXC,0,1)*MXD;
GJ:=AMOUNT/V/100;
明日阻力:=L+(GJ-L)+(C-L)*MXD;
明日支撐:=L+(C-GJ)*MXD;
今日阻力:REF(明日阻力 , 1)NODRAW;
今日支撐:REF(明日支撐 , 1)NODRAW;
{止盈價(jià)是股價(jià)盤中破掉了三十分鐘不再站上來(lái),立即止盈出局};
DRAWTEXT_FIX(1,0,0.05,0,'金【趨勢(shì)線上穿安全線是魚身行情出現(xiàn)的信號(hào)】')*XA1,COLORYELLOW;
DRAWTEXT_FIX(1,0,0.1,0,'木【趨勢(shì)線下穿安全線是行情完全結(jié)束的信號(hào)】')*XA1,COLORGREEN;
DRAWTEXT_FIX(1,0,0.15,0,'水【K線變藍(lán)色下穿安全線是行情提前結(jié)束的信號(hào)】')*XA1,COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.2,0,'火【安全線上的紅色K線就持股,灰藍(lán)色K線就持幣】')*XA1,COLORRED;
DRAWTEXT_FIX(1,0,0.25,0,'土【K線上穿牛熊線為強(qiáng)勢(shì)區(qū),跟著行情死盯一只股買】')*XA1,COLORCYAN;