★短线梯加零【主图指标】
{★短线梯加零【主图指标】}
{★短线梯加零【主图指标】做T用3分钟K线比较好}
MA5:MA(C,5)COLORYELLOW,DOTLINE;
短线5日均多头:IF(MA5>REF(MA5,1),MA5,DRAWNULL)LINETHICK1,COLORRED;
短线5日均空头:IF(MA5<REF(MA5,1),MA5,DRAWNULL)LINETHICK2,COLORLICYAN;
0,NODRAW,COLORBLACK;
短:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))NODRAW,COLORRED;
中:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10))NODRAW,COLORGREEN;
长:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20))NODRAW,COLORYELLOW;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30))NODRAW,COLORMAGENTA,LINETHICK2;
短线预警:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短=(100)AND 中=(100)AND 长=(100)AND 长期=(100),0.90,0.01,0,'小心短线见顶 ★★★')COLOR0099FF;
短线提醒:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短<=(6)AND 中<=(6)AND 长<=(6)AND 长期<=(6),0.90,0.98,0,'短线已然超跌 ★★★')COLORGREEN;
{蓝色打底K线}
标识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<MA5 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;
标识10:STICKLINE(CLOSE<MA5 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN;
标识11:STICKLINE(CLOSE<MA5 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN;
标识12:STICKLINE(CLOSE<MA5 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN;
标识13:STICKLINE(CLOSE<MA5 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN;
{红K线系列}
标识14:STICKLINE(CLOSE>MA5 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
标识15:STICKLINE(CLOSE>MA5 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
标识16:STICKLINE(CLOSE>MA5 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
标识17:STICKLINE(CLOSE>MA5 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
标识18:STICKLINE(CLOSE>MA5 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;
标识19:STICKLINE(CLOSE>MA5 AND MA5>REF(MA5,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
标识20:STICKLINE(CLOSE>MA5 AND MA5>REF(MA5,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
标识22:STICKLINE(CLOSE>MA5 AND MA5>REF(MA5,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
标识23:STICKLINE(CLOSE>MA5 AND MA5>REF(MA5,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
标识24:STICKLINE(CLOSE>MA5 AND MA5>REF(MA5,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;
{压力与支撑}
压力均线画线:HHV(HIGH,30),COLOR666666,DOTLINE;
支撑均线画线:LLV(LOW,30),COLOR666666,DOTLINE;
压力均线30:=HHV(LOW,30),COLORFFCC00,DOTLINE;
支撑均线30:=LLV(HIGH,30),COLORFFCC00,DOTLINE;
向上突破:DRAWICON(FILTERX(CROSS(C,支撑均线30),10),L*0.995,1);
向上突破支撑:=DRAWTEXT(FILTERX(CROSS(C,支撑均线30),10),L*0.985,' 支撑位')COLORRED;
向下突破支撑:DRAWICON(FILTERX(CROSS(压力均线30,C),10),H*1.015,2);
{现价止盈、止损价位}
现价:DYNAINFO(7)COLORWHITE,NODRAW;
赚四点五止盈:REF(现价*1.045,1)COLORRED,NODRAW;
亏三个点止损:REF(现价*0.97,1)COLORGREEN,NODRAW;
所属行业:DRAWTEXT_FIX(1,0.02,0.02,0,'所属行业:'),COLORFF6000;
行业标识:DRAWTEXT_FIX(1,0.059,0.02,0,HYBLOCK),COLORRED;
地域标识:DRAWTEXT_FIX(1,0.095,0.02,0,DYBLOCK),COLORGREEN;
名称代码:=STRCAT(STRCAT(STRCAT(STRCAT('名称: ',STKNAME),' 代码: '),CODE),' ' );
概念板块:=STRCAT('概念板块: ',GNBLOCK);
名称代码标识:DRAWTEXT_FIX(ISLASTBAR,0.14,0.02,0,STRCAT(名称代码,概念板块)),COLORYELLOW;
SAR持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLOR0099FF,CIRCLEDOT;
SAR空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORCYAN,CIRCLEDOT;