一组依照红K线操盘的组合指标

{飘红持股【主图指标】}

{通用型参数设置: SHORT 2 200 12 LONG 2 200 26 MID 2 200 9}

提示1:DRAWTEXT_FIX(C!=0,0.01,0.08,0,'     操盘须知 : ★ 系统出现首红信号后,在设定好止损的前提下,即可酌情买入个股(不想买股亦可观望)。'),COLORLICYAN;

提示2:DRAWTEXT_FIX(C!=0,0.01,0.15,0,'     风控指标 : ★ 设,风险收益比 1 : 2 。正常情况下,止损 <= -3%,止盈 >= +6%。【震荡市时段,止盈 >= +3% 亦可接受。】'),COLORLICYAN;

提示3:DRAWTEXT_FIX(C!=0,0.01,0.22,0,'     交易原则 : ★ 尾盘买股,等额交易。弃弱留强,严格止损。设,一个单笔交易单位 3万元。'),COLORLICYAN;

提示4:DRAWTEXT_FIX(C!=0,0.01,0.29,0,'     参考指标 : ★ 《飘红持股》,《多空一线》,《布林多空》,《买卖比差》,《牛熊多空》,《大道七线》,《主力进场》。'),COLORLICYAN;

平均成本线:COST(50), COLOR0099FF,DOTLINE,NODRAW;

MA5:MA(C,05)COLORFFEFD5,DOTLINE;

AMV0:=VOL*(O+C+H+L)/4;

势:EMA(AMV0,21)/EMA(VOL,21)COLORLICYAN,LINETHICK1;

压:6*HHV(势,2)-5*势,COLORGREEN,NODRAW;

托:2*势-压,COLORYELLOW,NODRAW;

多:IF(势>REF(势,1),势,DRAWNULL),COLORRED;

空:IF(势<REF(势,1),势,DRAWNULL),COLORGREEN;

多1:=CROSS(C,压),NODRAW;

势1:STICKLINE(CLOSE>势,OPEN,CLOSE,3,1),  COLORRED;

势2:STICKLINE(CLOSE=势,OPEN,CLOSE,3,0),  COLORRED;

势3:STICKLINE(CLOSE>势 AND CLOSE>(OPEN),LOW,OPEN,0,1),  COLORRED;

势4:STICKLINE(CLOSE=势,LOW,OPEN,0,0),  COLORRED;

势5:STICKLINE(CLOSE>势 AND CLOSE>(OPEN),CLOSE,HIGH,0,1),COLORRED;

势6:STICKLINE(CLOSE=势,CLOSE,HIGH,0,0),COLORRED;

势7:STICKLINE(CLOSE>势 AND CLOSE<(OPEN),LOW,OPEN,0,1),  COLORRED;

势8:STICKLINE(CLOSE>势 AND CLOSE<(OPEN),CLOSE,HIGH,0,1),COLORRED;

势9:STICKLINE(CLOSE>势 AND CLOSE<(OPEN),OPEN,CLOSE,3,0),COLORRED;

势01:STICKLINE(CLOSE<势,OPEN,CLOSE,3,1),  COLORCYAN;

势02:STICKLINE(CLOSE=势,OPEN,CLOSE,3,0),  COLORCYAN;

势03:STICKLINE(CLOSE<势 AND CLOSE>(OPEN),LOW,OPEN,0,1),  COLORCYAN;

势04:STICKLINE(CLOSE=势,LOW,OPEN,0,0),  COLORCYAN;

势05:STICKLINE(CLOSE<势 AND CLOSE>(OPEN),CLOSE,HIGH,0,1),COLORCYAN;

势06:STICKLINE(CLOSE=势,CLOSE,HIGH,0,0),COLORCYAN;

势07:STICKLINE(CLOSE<势 AND CLOSE<(OPEN),LOW,OPEN,0,1),  COLORCYAN;

势08:STICKLINE(CLOSE<势 AND CLOSE<(OPEN),CLOSE,HIGH,0,1),COLORCYAN;

势09:STICKLINE(CLOSE<势 AND CLOSE<(OPEN),OPEN,CLOSE,3,0),COLORCYAN;

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORGREEN,LINETHICK1;

DEA:=EMA(DIF,MID)COLORFFFF33,LINETHICK1;

MACD:=(DIF-DEA)/0.5,COLORSTICK;

{多空 K线【副图指标】}

AAA:=(MA (CLOSE,13)+MA (CLOSE,17))/2;

CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;

BBB:=AAA+2.1*CCC;

DDD:=AAA+0.72*CCC;

ZZZ:=IF(CCC>1.88 ,MA (DDD,3),DDD);

平仓:ZZZ*1.145,COLORCYAN,NODRAW;

风险:ZZZ*1.095,COLORGREEN,NODRAW;

回档:ZZZ*1.04,COLORYELLOW,NODRAW;

平衡:ZZZ*0.986,COLORLICYAN,NODRAW;

反弹:ZZZ*0.918,COLORMAGENTA,NODRAW;

超跌:ZZZ*0.880,COLORRED,NODRAW;

满仓:ZZZ*0.83,COLORBLUE,LINETHICK1,NODRAW;

多2:=CROSS(C,平衡);

{布林多空【副图指标】42 布林带 参数: N:2 100 11, M:2 100 6}

CV:=CLOSE;

BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLORFFFF00,LINETHICK1;

UPR:=BBIBOLL+M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR0099FF}

DWN:=BBIBOLL-M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR00FF99}

多3:=CROSS(C,BBIBOLL);

{SAR指标}

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORRED;

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORGREEN;

BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;

SAR持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●')COLOR0099FF;

SAR空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLOR33FF00;

持股:DRAWICON((多1 AND 多2 AND 多3)OR(多1 AND C>BBIBOLL AND C>平衡 AND DIF>0),L,5);

{名称代码所属行业及概念板块}

所属行业:DRAWTEXT_FIX(1,0.02,0.01,0,'所属行业:'),COLORFF6000;

行业标识:DRAWTEXT_FIX(1,0.059,0.01,0,HYBLOCK),COLORRED;

地域标识:DRAWTEXT_FIX(1,0.095,0.01,0,DYBLOCK),COLORGREEN;

名称代码:=STRCAT(STRCAT(STRCAT(STRCAT('名称: ',STKNAME),' 代码: '),CODE),' ' );

概念板块:=STRCAT('概念板块: ',GNBLOCK);

名称代码标识:DRAWTEXT_FIX(ISLASTBAR,0.14,0.01,0,STRCAT(名称代码,概念板块)),COLORYELLOW;

LY:=9;

BL:=36;

CJQS:=XMA(CLOSE,LY);{CJQS:=XMA(CLOSE,LY)}

JBQS:=XMA(CLOSE,BL);{JBQS:=XMA(CLOSE,BL)}

N2:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);

M2:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);

外上轨多头:=IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N2,BL/2+1-CURRBARSCOUNT)*1.1)COLORYELLOW,LINETHICK1;

外下轨多头:=IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N2,BL/2+1-CURRBARSCOUNT)*0.9)COLOR0099FF,LINETHICK1;

外上下轨间差额:=外上轨多头-外下轨多头,NODRAW,COLORRED;

外上下轨间差额%:=(外上轨多头-外下轨多头)/外上轨多头*100,NODRAW,COLORCYAN;

预期上涨额_元:=外上轨多头-CLOSE,NODRAW,COLORGREEN;

预留上涨空间%:=REF(预期上涨额_元,0)/REF(外上轨多头,0)*100,NODRAW,COLORCYAN;

预期上涨百分比:=DRAWTEXT_FIX(C!=0,0.75,0.96,0,STRCAT(' 预期上涨百分比 ',STRCAT(CON2STR(预留上涨空间%,2),' % '))),COLOR00FFFF;

短:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE,NODRAW;

中:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW,NODRAW;

长:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORRED,NODRAW;

超:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORMAGENTA,NODRAW;

外上通道空头:=IF(外上轨多头<REF(外上轨多头,1),外上轨多头,DRAWNULL),COLORLICYAN,LINETHICK1,{淡蓝色};

外下通道空头:=IF(外下轨多头<REF(外下轨多头,1),外下轨多头,DRAWNULL),COLORFF0000,LINETHICK1,{士官服蓝色};

内上轨多头:=IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M2,LY/2+1-CURRBARSCOUNT)*1.05)COLOR555555,DOTLINE;

内下轨多头:=IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M2,LY/2+1-CURRBARSCOUNT)*0.95)COLOR555555,DOTLINE;

内上通道空头:=IF(内上轨多头<REF(内上轨多头,1),内上轨多头,DRAWNULL),COLOR555555,DOTLINE{绿色};

内下通道空头:=IF(内下轨多头<REF(内下轨多头,1),内下轨多头,DRAWNULL),COLOR555555,DOTLINE{紫罗蓝 COLORE66878};

顶:=DRAWTEXT(FILTER(EXIST(LONGCROSS(内上轨多头,外上轨多头,25),10)AND CROSS(REF(内上轨多头,1),REF(内上轨多头,0)),5),H+0.1,'顶')COLORYELLOW;

底:=DRAWTEXT(FILTER(EXIST(LONGCROSS(外下轨多头,内下轨多头,25),10)AND CROSS(REF(内下轨多头,0),REF(内下轨多头,1)),5),L-0.8,'底')COLORMAGENTA;

外上轨多头线:DRAWTEXT(ISLASTBAR,外上轨多头,STRCAT('  ★ ',CON2STR(外上轨多头,2))),COLOR00FFFF;

外下轨多头线:DRAWTEXT(ISLASTBAR,外下轨多头,STRCAT('  ★ ',CON2STR(外下轨多头,2))),COLOR0099FF;

选股:DRAWICON(底,L-0.1,7);

大趋势空头:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND REF(外下轨多头,0)<REF(外下轨多头,1),0.846,0.96,0,'★ 大趋势空头,宜空仓观望。')COLORGREEN;

大趋势多头:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND REF(外下轨多头,0)>REF(外下轨多头,1),0.846,0.96,0,'★ 大趋势多头,可寻机做多。') COLORRED;

{多空 K线【副图指标】}

AAA:=(MA (CLOSE,13)+MA (CLOSE,17))/2;

CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;

BBB:=AAA+2.1*CCC;

DDD:=AAA+0.72*CCC;

ZZZ:=IF(CCC>1.88 ,MA (DDD,3),DDD);

平仓:ZZZ*1.145,COLORCYAN,DOTLINE;

风险:ZZZ*1.095,COLORGREEN,DOTLINE;

回档:ZZZ*1.04,COLORYELLOW,DOTLINE;

平衡:ZZZ*0.986,COLORLICYAN,LINETHICK2;

反弹:ZZZ*0.918,COLORMAGENTA,DOTLINE;

超跌:ZZZ*0.880,COLORRED,DOTLINE;

满仓:ZZZ*0.83,COLORBLUE,LINETHICK1;

{蓝色打底K线}

标识02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN;

标识03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN;

标识04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN;

标识05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN;

标识06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN;

标识07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN;

标识08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN;

标识09:STICKLINE(CLOSE<平衡 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN;

标识10:STICKLINE(CLOSE<平衡 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN;

标识11:STICKLINE(CLOSE<平衡 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN;

标识12:STICKLINE(CLOSE<平衡 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN;

标识13:STICKLINE(CLOSE<平衡 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN;

{红K线系列}

标识14:STICKLINE(CLOSE>平衡 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

标识15:STICKLINE(CLOSE>平衡 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;

标识16:STICKLINE(CLOSE>平衡 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标识17:STICKLINE(CLOSE>平衡 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标识18:STICKLINE(CLOSE>平衡 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

标识19:STICKLINE(CLOSE>平衡 AND 满仓>REF(满仓,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

标识20:STICKLINE(CLOSE>平衡 AND 满仓>REF(满仓,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;

标识22:STICKLINE(CLOSE>平衡 AND 满仓>REF(满仓,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标识23:STICKLINE(CLOSE>平衡 AND 满仓>REF(满仓,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标识24:STICKLINE(CLOSE>平衡 AND 满仓>REF(满仓,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

{布林多空【副图指标】42 布林带 参数: N:2 100 11, M:2 100 6}

CV:=CLOSE;

BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLORFFFF00,LINETHICK1;

UPR:BBIBOLL+M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR0099FF}

DWN:BBIBOLL-M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR00FF99}

多:IF(BBIBOLL>REF(BBIBOLL,1),BBIBOLL,DRAWNULL),COLORRED,LINETHICK1;

空:IF(BBIBOLL<REF(BBIBOLL,1),BBIBOLL,DRAWNULL),COLORGREEN,LINETHICK1;

关注:=DRAWICON(CROSS(C,BBIBOLL),L-0.2,42)COLORRED;

{SAR指标}

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORRED;

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORGREEN;

BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;

SAR持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●')COLOR0099FF;

SAR空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLOR33FF00;

{蓝色打底K线}

标识01:=DRAWTEXT(CROSS(DWN,BBIBOLL),DWN,2),COLORWHITE,LINETHICK3;

标识02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN;

标识03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN;

标识04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN;

标识05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN;

标识06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN;

标识07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN;

标识08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN;

标识09:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;

标识10:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN;

标识11:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN;

标识12:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN;

标识13:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN;

{红K线系列}

标识14:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

标识15:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;

标识16:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标识17:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标识18:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

标识19:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;

标识22:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

标识23:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

标识24:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

{用法注释}

D00:=1;

AA00:=DRAWGBK('     ★★★ 股价上穿中轨并在其中轨上方运行视为强势,反之,视为弱势。','.','.','.','.','.');

AA00图标:DRAWTEXT_FIX(D00=1,0.01,0.03,0,AA00),COLOR3300FF;

D01:=1;

AA01:=DRAWGBK('     ★★★ 要密切关注布林线(虚线)收口后(向上或是向下)的变盘方向。','.','.','.','.','.');

AA01图标:DRAWTEXT_FIX(D01=1,0.01,0.12,0,AA01),COLOR00FF99;

(0)

相关推荐