=MA200);放棄:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<><>
DRAWGBK(顯示儀表盤(pán)1=1 AND 主升浪=0 AND 主浪回調(diào)=0 AND 主浪深調(diào)=0 AND 初升浪=0 AND 底部反彈=0 AND 探底階段=0 AND 觀望=0 AND 有牛=0 AND 放棄=0,0,0,0,'觀望',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 主升浪,0,0,0,'主升浪',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 主浪回調(diào),0,0,0,'主浪回調(diào)',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 主浪深調(diào),0,0,0,'主浪深調(diào)',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 初升浪,0,0,0,'初升浪',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 底部反彈,0,0,0,'底部反彈',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 探底階段,0,0,0,'探底階段',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 觀望,0,0,0,'觀望',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 有牛,0,0,0,'有牛',0);
DRAWGBK(顯示儀表盤(pán)1=1 AND 放棄,0,0,0,'放棄',0);
{===================彩色K線========================}
STICKLINE(C>O,C,O,3,0),COLOR0000AA;
STICKLINE(C>O,C,O,2.5,0),COLOR0000BB;
STICKLINE(C>O,C,O,1.5,0),COLOR0000CC;
STICKLINE(C>O,C,O,1,0),COLOR0000EE;
STICKLINE(C>O,H,L,0,0),COLOR0000FF;
STICKLINE(C<>
STICKLINE(C<>
STICKLINE(C<>
STICKLINE(C<>
STICKLINE(C<>
STICKLINE(C=O,C,O,3,0),COLORWHITE;
STICKLINE(C=O,H,L,0,0),COLORWHITE;
{======================================================}
高點(diǎn)位:=REFDATE(HHV(H,總漲幅周期),DATE);
低點(diǎn)位:=REFDATE(LLV(L,總漲幅周期),DATE);
低位價(jià):=REF(L,BARSLAST(低點(diǎn)位=L)),COLORGREEN;
高位價(jià):=REF(H,BARSLAST(高點(diǎn)位=H)),COLORRED,NODRAW;
曾最大漲幅:=(高位價(jià)-低位價(jià))/低位價(jià)*100;
當(dāng)前漲幅:=(C-低位價(jià))/低位價(jià)*100;
ZFA:=CON2STR(CONST(曾最大漲幅),2);
ZFB:=CON2STR(CONST(當(dāng)前漲幅),2);
ZFC:=STRCAT('【曾最大漲幅】:',ZFA);
ZFD:=STRCAT(ZFC,'%');
ZFE:=STRCAT(ZFD,'【當(dāng)前總漲幅】:');
ZFF:=STRCAT(ZFE,ZFB);
ZFG:=STRCAT(ZFF,'%');
DRAWTEXT_FIX(ISLASTBAR,0,1,0,'▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,1,0,ZFG),COLORYELLOW;
{========================額外==========================}
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;
DRAWTEXT_FIX(1,0,0.075,0,STRCAT('【自定板塊】:',ZDBLOCK)),COLORYELLOW;
{======================================================}
DRAWRECTREL(IF(CODELIKE('999999') OR CODELIKE('399001'),0,760),IF(CODELIKE('999999') OR CODELIKE('399001'),0,12),IF(CODELIKE('999999') OR CODELIKE('399001'),0,890),IF(CODELIKE('999999') OR CODELIKE('399001'),0,70),RGB(255,0,0));
DRAWRECTREL(IF(CODELIKE('999999') OR CODELIKE('399001'),0,760),IF(CODELIKE('999999') OR CODELIKE('399001'),0,12),IF(CODELIKE('999999') OR CODELIKE('399001'),0,890),IF(CODELIKE('999999') OR CODELIKE('399001'),0,70),IF(CONST(DYNAINFO(51))>=1,RGB(0,255,0),RGB(255,0,0)));
NNN1:=CON2STR(CONST(DYNAINFO(51)),2);
NNN2:=STRCAT('【 內(nèi)外比:',NNN1);
NNN3:=STRCAT(NNN2,' 】');
DRAWTEXT_FIX(IF(CODELIKE('999999') OR CODELIKE('399001'),DRAWNULL,1),0.76,0.015,0,NNN3),COLORYELLOW;
DRAWTEXT_FIX(IF(CODELIKE('999999') OR CODELIKE('399001'),DRAWNULL,CONST(DYNAINFO(51))>=1),0.76,0.015,0,NNN3),COLORBLACK;
{=======================均線解盤(pán)===============================}
DRAWRECTREL(0,IF(顯示儀表盤(pán)1=0,135,0),IF(顯示儀表盤(pán)1=0,288,0),IF(顯示儀表盤(pán)1=0,630,0),RGB(0,0,255));
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0.08,0.16,0,'【 均線解盤(pán) 】'),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.23,0,'主升浪: 5>24>72>200 '),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>MA200,0.238,0.23,0,'≡★≡'),COLORRED;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.285,0,'主浪回調(diào): 24>5>72>200 '),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>MA200,0.238,0.285,0,'≡★≡'),COLORRED;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.34,0,'主浪深調(diào): 24>72>5>200 '),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>MA200,0.238,0.34,0,'≡★≡'),COLORMAGENTA;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.395,0,'初升浪: 200>5>24>72'),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA200>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72,0.238,0.395,0,'≡★≡'),COLOR0080FF;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.45,0,'底部反彈: 200>72>5>24'),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA200>MA72 AND MA72>MA24 AND MA5>MA24,0.238,0.45,0,'≡★≡'),COLORYELLOW;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0,0,0.51,0,'探底階段: 200>72>24>5'),COLORWHITE;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA200>MA72 AND MA72>MA24 AND MA24>MA5,0.238,0.51,0,'≡★≡'),COLORGREEN;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72>MA200 AND C>=MA200,0,0.565,0,'▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇'),COLORRED;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72>MA200 AND C>=MA200,0,0.565,0,'牛市行情: 72>200 C>200 牛市 ---'),COLORYELLOW;
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72>MA200 AND C
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72=MA200,0,0.565,0,'▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇'),COLORMAGENTA;DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72=MA200,0,0.565,0,'初入牛市: 72<200 C>200 牛到 ---'),COLORWHITE;DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72<>
DRAWTEXT_FIX(顯示儀表盤(pán)1=0 AND ISLASTBAR AND MA72