一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

開放【五星黃金波段】公式源碼

 2688 2017-02-23

開放【五星黃金波段】公式源碼

 

DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);
范圍高A:=REFDATE(HHV(H,120),DATE)*1.05;
范圍低A:=REFDATE(LLV(L,120),DATE)*0.95;
 MA5:=MA(C,5),COLORCYAN,LINETHICK2;
 MA24:=MA(C,24),COLORGREEN,LINETHICK2;
 MA72:=MA(C,72),COLORRED,LINETHICK2;
 MA200:=IF((MA(C,200)<=范圍高A AND MA(C,200)>=范圍低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;
 {=======================儀表盤=========================}
主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪回調(diào):=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪深調(diào):=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;
底部反彈:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;
探底階段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;
觀望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);
有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);
放棄:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);
 DRAWGBK(顯示儀表盤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)COLOR00BF00;
 DRAWGBK(顯示儀表盤1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;
 DRAWGBK(顯示儀表盤1=1 AND 主浪回調(diào),0,0,0,'主浪回調(diào)',0)COLORFF8080;
 DRAWGBK(顯示儀表盤1=1 AND 主浪深調(diào),0,0,0,'主浪深調(diào)',0)COLOR009500;
 DRAWGBK(顯示儀表盤1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 底部反彈,0,0,0,'底部反彈',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 探底階段,0,0,0,'探底階段',0);
 DRAWGBK(顯示儀表盤1=1 AND 觀望,0,0,0,'觀望',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 放棄,0,0,0,'放棄',0)COLOR00BF00;
引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;
引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,NODRAW;
三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;

 N:=120;
 K:=BARSLAST(CURRBARSCOUNT=N);
 GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高點(diǎn)}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低點(diǎn)}
KJ:=GD-DD;{高低點(diǎn)差值=分區(qū)高度}
GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);
高區(qū):IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
低區(qū):IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2,NODRAW;
平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;
低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00;
高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF;
支撐:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
強(qiáng)勢: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
壓力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00;
低漲:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天數(shù):BARSLAST(L=DD),COLORCYAN,NODRAW;
頂點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT,NODRAW;
低點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT,NODRAW;
 STICKLINE(CCI>=200 AND H>=頂點(diǎn),O,C,2,0),COLORBLUE;
 STICKLINE(CCI<=100 AND L<=低點(diǎn),O,C,2,0),COLORYELLOW;

 DRAWBAND(高區(qū),RGB(0,0,0),平衡,RGB(0,0,0));
 DRAWBAND(平衡,RGB(0,0,0),低區(qū),RGB(0,0,0));
 DRAWBAND(高,RGB(120,100,0),壓力,RGB(0,0,0));
 DRAWBAND(壓力,RGB(258,58,0),警示,RGB(0,0,0));
 DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));
 DRAWBAND(突破,RGB(68,0,0),強(qiáng)勢,RGB(0,0,0));
 DRAWBAND(強(qiáng)勢,RGB(38,0,0),支撐,RGB(0,0,0));
 DRAWBAND(支撐,RGB(38,38,38),低,RGB(0,0,0));
 STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;

 STICKLINE(CURRBARSCOUNT<=N/2,支撐,支撐,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,強(qiáng)勢,強(qiáng)勢,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,壓力,壓力,2,0),COLOR1E1E1E;
 DRAWTEXT(CURRBARSCOUNT=10,壓力,'壓力-0.809'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,強(qiáng)勢,'強(qiáng)勢-0.382'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,支撐,'支撐-0.191'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【風(fēng)險(xiǎn)區(qū)】--高拋避險(xiǎn)'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示區(qū)】--逢高減倉'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破區(qū)】--主力拉升'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升區(qū)】--強(qiáng)勢畜銳'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【關(guān)注區(qū)】--逢低買入'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸區(qū)】--大膽買入'),COLORFFFFFF;

第一防線:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;
第二防線:REFDATE(支撐,DATE),DOTLINE,COLORWHITE,NODRAW;
 {今日保護(hù)價(jià):(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}
 DRAWKLINE(H,O,L,C);
 AHC1:=CLOSE*VOL;
 AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上軌:=1.06*AHC22,COLOR40FF00,LINETHICK1;
下軌:=AHC22*0.94;
 {STICKLINE(上軌>下軌,上軌,下軌,5,0),COLOR555555;}
 ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
啟爆:=CROSS(C,上軌) OR CROSS(C,下軌) AND ZT;
 DRAWTEXT(啟爆,L,'啟爆'),COLORCYAN;
 STICKLINE(啟爆,C,O,3,1),COLORWHITE;
 STICKLINE(啟爆,C,O,1,0),COLORGREEN;
 STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
 STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
 STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;
 STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;
 STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
 STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
 STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
 STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;
 STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
 CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止贏:1.05*CC,COLORMAGENTA,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止贏,'止贏'),LINETHICK1;
止損:0.97*CC,COLORYELLOW,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止損,'止損'),LINETHICK1;
 DRAWNUMBER(ISLASTBAR  ,C,C),COLORWHITE;
 AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);
 F:=100*(C-REF(C,1))/REF(C,1);
博爾:=IF(C<REF(O,1) AND F<0,1,0);
 P1:=博爾;
量化:=IF(C<REF(O,2) AND F<0,1,0);
 P2:=量化;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;
操作30日均線:EMA(C,30),COLORYELLOW,LINETHICK4;
紅升:IF(操作30日均線>REF(操作30日均線,1),操作30日均線,DRAWNULL),COLORRED,LINETHICK4;
綠降:IF(操作30日均線<REF(操作30日均線,1),操作30日均線,DRAWNULL),COLOR009300,LINETHICK4;
趨勢55日線:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;
紅升4:IF(趨勢55日線>REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLOR0080FF,LINETHICK1;
綠降4:IF(趨勢55日線<REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

年線:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;
年紅升:IF(年線>REF(年線,1),年線,DRAWNULL),COLOR8000FF,LINETHICK1;
年綠降:IF(年線<REF(年線,1),年線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;開放【五星黃金波段】公式源碼

 

DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);
范圍高A:=REFDATE(HHV(H,120),DATE)*1.05;
范圍低A:=REFDATE(LLV(L,120),DATE)*0.95;
 MA5:=MA(C,5),COLORCYAN,LINETHICK2;
 MA24:=MA(C,24),COLORGREEN,LINETHICK2;
 MA72:=MA(C,72),COLORRED,LINETHICK2;
 MA200:=IF((MA(C,200)<=范圍高A AND MA(C,200)>=范圍低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;
 {=======================儀表盤=========================}
主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪回調(diào):=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪深調(diào):=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;
底部反彈:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;
探底階段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;
觀望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);
有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);
放棄:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);
 DRAWGBK(顯示儀表盤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)COLOR00BF00;
 DRAWGBK(顯示儀表盤1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;
 DRAWGBK(顯示儀表盤1=1 AND 主浪回調(diào),0,0,0,'主浪回調(diào)',0)COLORFF8080;
 DRAWGBK(顯示儀表盤1=1 AND 主浪深調(diào),0,0,0,'主浪深調(diào)',0)COLOR009500;
 DRAWGBK(顯示儀表盤1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 底部反彈,0,0,0,'底部反彈',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 探底階段,0,0,0,'探底階段',0);
 DRAWGBK(顯示儀表盤1=1 AND 觀望,0,0,0,'觀望',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 放棄,0,0,0,'放棄',0)COLOR00BF00;
引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;
引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,NODRAW;
三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;

 N:=120;
 K:=BARSLAST(CURRBARSCOUNT=N);
 GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高點(diǎn)}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低點(diǎn)}
KJ:=GD-DD;{高低點(diǎn)差值=分區(qū)高度}
GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);
高區(qū):IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
低區(qū):IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2,NODRAW;
平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;
低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00;
高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF;
支撐:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
強(qiáng)勢: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
壓力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00;
低漲:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天數(shù):BARSLAST(L=DD),COLORCYAN,NODRAW;
頂點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT,NODRAW;
低點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT,NODRAW;
 STICKLINE(CCI>=200 AND H>=頂點(diǎn),O,C,2,0),COLORBLUE;
 STICKLINE(CCI<=100 AND L<=低點(diǎn),O,C,2,0),COLORYELLOW;

 DRAWBAND(高區(qū),RGB(0,0,0),平衡,RGB(0,0,0));
 DRAWBAND(平衡,RGB(0,0,0),低區(qū),RGB(0,0,0));
 DRAWBAND(高,RGB(120,100,0),壓力,RGB(0,0,0));
 DRAWBAND(壓力,RGB(258,58,0),警示,RGB(0,0,0));
 DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));
 DRAWBAND(突破,RGB(68,0,0),強(qiáng)勢,RGB(0,0,0));
 DRAWBAND(強(qiáng)勢,RGB(38,0,0),支撐,RGB(0,0,0));
 DRAWBAND(支撐,RGB(38,38,38),低,RGB(0,0,0));
 STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;

 STICKLINE(CURRBARSCOUNT<=N/2,支撐,支撐,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,強(qiáng)勢,強(qiáng)勢,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,壓力,壓力,2,0),COLOR1E1E1E;
 DRAWTEXT(CURRBARSCOUNT=10,壓力,'壓力-0.809'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,強(qiáng)勢,'強(qiáng)勢-0.382'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,支撐,'支撐-0.191'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【風(fēng)險(xiǎn)區(qū)】--高拋避險(xiǎn)'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示區(qū)】--逢高減倉'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破區(qū)】--主力拉升'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升區(qū)】--強(qiáng)勢畜銳'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【關(guān)注區(qū)】--逢低買入'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸區(qū)】--大膽買入'),COLORFFFFFF;

第一防線:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;
第二防線:REFDATE(支撐,DATE),DOTLINE,COLORWHITE,NODRAW;
 {今日保護(hù)價(jià):(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}
 DRAWKLINE(H,O,L,C);
 AHC1:=CLOSE*VOL;
 AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上軌:=1.06*AHC22,COLOR40FF00,LINETHICK1;
下軌:=AHC22*0.94;
 {STICKLINE(上軌>下軌,上軌,下軌,5,0),COLOR555555;}
 ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
啟爆:=CROSS(C,上軌) OR CROSS(C,下軌) AND ZT;
 DRAWTEXT(啟爆,L,'啟爆'),COLORCYAN;
 STICKLINE(啟爆,C,O,3,1),COLORWHITE;
 STICKLINE(啟爆,C,O,1,0),COLORGREEN;
 STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
 STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
 STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;
 STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;
 STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
 STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
 STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
 STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;
 STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
 CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止贏:1.05*CC,COLORMAGENTA,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止贏,'止贏'),LINETHICK1;
止損:0.97*CC,COLORYELLOW,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止損,'止損'),LINETHICK1;
 DRAWNUMBER(ISLASTBAR  ,C,C),COLORWHITE;
 AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);
 F:=100*(C-REF(C,1))/REF(C,1);
博爾:=IF(C<REF(O,1) AND F<0,1,0);
 P1:=博爾;
量化:=IF(C<REF(O,2) AND F<0,1,0);
 P2:=量化;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;
操作30日均線:EMA(C,30),COLORYELLOW,LINETHICK4;
紅升:IF(操作30日均線>REF(操作30日均線,1),操作30日均線,DRAWNULL),COLORRED,LINETHICK4;
綠降:IF(操作30日均線<REF(操作30日均線,1),操作30日均線,DRAWNULL),COLOR009300,LINETHICK4;
趨勢55日線:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;
紅升4:IF(趨勢55日線>REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLOR0080FF,LINETHICK1;
綠降4:IF(趨勢55日線<REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

年線:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;
年紅升:IF(年線>REF(年線,1),年線,DRAWNULL),COLOR8000FF,LINETHICK1;
年綠降:IF(年線<REF(年線,1),年線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;開放【五星黃金波段】公式源碼

 

DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'BJ1',0);
范圍高A:=REFDATE(HHV(H,120),DATE)*1.05;
范圍低A:=REFDATE(LLV(L,120),DATE)*0.95;
 MA5:=MA(C,5),COLORCYAN,LINETHICK2;
 MA24:=MA(C,24),COLORGREEN,LINETHICK2;
 MA72:=MA(C,72),COLORRED,LINETHICK2;
 MA200:=IF((MA(C,200)<=范圍高A AND MA(C,200)>=范圍低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;
 {=======================儀表盤=========================}
主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪回調(diào):=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
主浪深調(diào):=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;
底部反彈:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;
探底階段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;
觀望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);
有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);
放棄:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);
 DRAWGBK(顯示儀表盤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)COLOR00BF00;
 DRAWGBK(顯示儀表盤1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;
 DRAWGBK(顯示儀表盤1=1 AND 主浪回調(diào),0,0,0,'主浪回調(diào)',0)COLORFF8080;
 DRAWGBK(顯示儀表盤1=1 AND 主浪深調(diào),0,0,0,'主浪深調(diào)',0)COLOR009500;
 DRAWGBK(顯示儀表盤1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 底部反彈,0,0,0,'底部反彈',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 探底階段,0,0,0,'探底階段',0);
 DRAWGBK(顯示儀表盤1=1 AND 觀望,0,0,0,'觀望',0)COLORFFFF00;
 DRAWGBK(顯示儀表盤1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;
 DRAWGBK(顯示儀表盤1=1 AND 放棄,0,0,0,'放棄',0)COLOR00BF00;
引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;
引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,NODRAW;
三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;

 N:=120;
 K:=BARSLAST(CURRBARSCOUNT=N);
 GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0)),NODRAW;{高點(diǎn)}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0)),NODRAW;{低點(diǎn)}
KJ:=GD-DD;{高低點(diǎn)差值=分區(qū)高度}
GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);
高區(qū):IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
低區(qū):IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2,NODRAW;
平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;
低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00;
高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF;
支撐:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
強(qiáng)勢: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
壓力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00;
低漲:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天數(shù):BARSLAST(L=DD),COLORCYAN,NODRAW;
頂點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT,NODRAW;
低點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT,NODRAW;
 STICKLINE(CCI>=200 AND H>=頂點(diǎn),O,C,2,0),COLORBLUE;
 STICKLINE(CCI<=100 AND L<=低點(diǎn),O,C,2,0),COLORYELLOW;

 DRAWBAND(高區(qū),RGB(0,0,0),平衡,RGB(0,0,0));
 DRAWBAND(平衡,RGB(0,0,0),低區(qū),RGB(0,0,0));
 DRAWBAND(高,RGB(120,100,0),壓力,RGB(0,0,0));
 DRAWBAND(壓力,RGB(258,58,0),警示,RGB(0,0,0));
 DRAWBAND(警示,RGB(128,58,0),突破,RGB(0,0,0));
 DRAWBAND(突破,RGB(68,0,0),強(qiáng)勢,RGB(0,0,0));
 DRAWBAND(強(qiáng)勢,RGB(38,0,0),支撐,RGB(0,0,0));
 DRAWBAND(支撐,RGB(38,38,38),低,RGB(0,0,0));
 STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080,NODRAW;

 STICKLINE(CURRBARSCOUNT<=N/2,支撐,支撐,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,強(qiáng)勢,強(qiáng)勢,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR1E1E1E;
 STICKLINE(CURRBARSCOUNT<=N/2,壓力,壓力,2,0),COLOR1E1E1E;
 DRAWTEXT(CURRBARSCOUNT=10,壓力,'壓力-0.809'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,強(qiáng)勢,'強(qiáng)勢-0.382'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=10,支撐,'支撐-0.191'),COLOR00FFFF,NODRAW;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【風(fēng)險(xiǎn)區(qū)】--高拋避險(xiǎn)'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示區(qū)】--逢高減倉'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破區(qū)】--主力拉升'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升區(qū)】--強(qiáng)勢畜銳'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【關(guān)注區(qū)】--逢低買入'),COLORFFFFFF;
 DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸區(qū)】--大膽買入'),COLORFFFFFF;

第一防線:REFDATE(低,DATE),DOTLINE,COLORYELLOW,NODRAW;
第二防線:REFDATE(支撐,DATE),DOTLINE,COLORWHITE,NODRAW;
 {今日保護(hù)價(jià):(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}
 DRAWKLINE(H,O,L,C);
 AHC1:=CLOSE*VOL;
 AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上軌:=1.06*AHC22,COLOR40FF00,LINETHICK1;
下軌:=AHC22*0.94;
 {STICKLINE(上軌>下軌,上軌,下軌,5,0),COLOR555555;}
 ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
啟爆:=CROSS(C,上軌) OR CROSS(C,下軌) AND ZT;
 DRAWTEXT(啟爆,L,'啟爆'),COLORCYAN;
 STICKLINE(啟爆,C,O,3,1),COLORWHITE;
 STICKLINE(啟爆,C,O,1,0),COLORGREEN;
 STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
 STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
 STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;
 STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;
 STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
 STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
 STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
 STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;
 STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
 STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
 CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止贏:1.05*CC,COLORMAGENTA,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止贏,'止贏'),LINETHICK1;
止損:0.97*CC,COLORYELLOW,LINETHICK1;
 DRAWTEXT(ISLASTBAR,止損,'止損'),LINETHICK1;
 DRAWNUMBER(ISLASTBAR  ,C,C),COLORWHITE;
 AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);
 F:=100*(C-REF(C,1))/REF(C,1);
博爾:=IF(C<REF(O,1) AND F<0,1,0);
 P1:=博爾;
量化:=IF(C<REF(O,2) AND F<0,1,0);
 P2:=量化;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;
操作30日均線:EMA(C,30),COLORYELLOW,LINETHICK4;
紅升:IF(操作30日均線>REF(操作30日均線,1),操作30日均線,DRAWNULL),COLORRED,LINETHICK4;
綠降:IF(操作30日均線<REF(操作30日均線,1),操作30日均線,DRAWNULL),COLOR009300,LINETHICK4;
趨勢55日線:EMA(C,55),COLORYELLOW,LINETHICK1,NODRAW;
紅升4:IF(趨勢55日線>REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLOR0080FF,LINETHICK1;
綠降4:IF(趨勢55日線<REF(趨勢55日線,1),趨勢55日線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

年線:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;
年紅升:IF(年線>REF(年線,1),年線,DRAWNULL),COLOR8000FF,LINETHICK1;
年綠降:IF(年線<REF(年線,1),年線,DRAWNULL),COLORFFFF00,DOTLINE,LINETHICK1;

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    人妻熟女中文字幕在线| 2019年国产最新视频| 激情图日韩精品中文字幕| 在线观看中文字幕91| 色婷婷视频国产一区视频| 日韩综合国产欧美一区| 狠狠亚洲丁香综合久久| 国产精品丝袜一二三区| 99久久人妻中文字幕| 欧美区一区二区在线观看| 久久精品少妇内射毛片| 亚洲最新中文字幕在线视频| 成年人黄片大全在线观看| 久久精品国产在热亚洲| 麻豆91成人国产在线观看| 国产精品亚洲欧美一区麻豆 | 99久热只有精品视频免费看| 国产日韩中文视频一区| 亚洲超碰成人天堂涩涩| 日本熟女中文字幕一区| 精品国产品国语在线不卡| 亚洲一区二区亚洲日本| 精品人妻一区二区三区四区久久| 国产一区二区三区香蕉av| 老司机精品视频在线免费看| 夜色福利久久精品福利| 老司机精品线观看86| 国产熟女高清一区二区| 欧美日韩黑人免费观看| 蜜桃传媒视频麻豆第一区| 人妻偷人精品一区二区三区不卡| 色婷婷激情五月天丁香| 大香蕉再在线大香蕉再在线| 欧美激情中文字幕综合八区| 日韩精品少妇人妻一区二区| 久久午夜福利精品日韩| 国产成人精品一区二三区在线观看| 日本不卡在线视频中文国产| 久久99精品日韩人妻| 在线观看免费无遮挡大尺度视频 | 精品日韩国产高清毛片|