均 线 看 盘 【主图指标】
{均线看盘【主图指标】均线趋势看盘、操作系统}
{均线看盘【主图指标】均线趋势看盘、操作系统}
MA05:MA(CLOSE,5)COLORWHITE,DOTLINE;
MA10:MA(CLOSE,10)COLOR009FFF,DOTLINE;
MA20:MA(CLOSE,20)COLORRED,LINETHICK2;
MA30:MA(CLOSE,30)COLORGREEN;
MA60:MA(CLOSE,60)COLORMAGENTA;
MA120:MA(CLOSE,120)COLORCYAN;
MA250:MA(CLOSE,250)COLOR009998;
平均成本线:COST(50)COLORYELLOW,DOTLINE,NODRAW;
警示:DRAWTEXT_FIX(BARSTATUS=2 AND C<COST(50),0.87,0.03,0,'注意:该股股价目前低于平均成本线'),COLORGREEN;
0,NODRAW,COLORBLACK;
红K线持股做票:C,NODRAW,COLORRED;
绿K线持币观望:C,NODRAW,COLORGREEN;
{绿色打底K线}
标识1:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN;
标识2:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN;
标识3:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN;
标识4:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN;
标识5:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN;
标识6:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN;
标识7:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN;
标识8:STICKLINE(CLOSE<MA20 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;
标识9:STICKLINE(CLOSE<MA20 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN;
标识10:STICKLINE(CLOSE<MA20 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN;
标识11:STICKLINE(CLOSE<MA20 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN;
标识12:STICKLINE(CLOSE<MA20 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN;
{红K线系列}
标识13:STICKLINE(CLOSE>MA20 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
标识14:STICKLINE(CLOSE>MA20 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
标识15:STICKLINE(CLOSE>MA20 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
标识16:STICKLINE(CLOSE>MA20 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
标识17:STICKLINE(CLOSE>MA20 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;
标识18:STICKLINE(CLOSE>MA20 AND MA05>REF(MA05,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
标识19:STICKLINE(CLOSE>MA20 AND MA05>REF(MA05,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
标识20:STICKLINE(CLOSE>MA20 AND MA05>REF(MA05,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
标识21:STICKLINE(CLOSE>MA20 AND MA05>REF(MA05,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
标识22:STICKLINE(CLOSE>MA20 AND MA05>REF(MA05,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;
所属行业: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;
{压力与支撑}
压力线:HHV(HIGH,20),COLOR888888,DOTLINE;
支撑线:LLV(LOW,30),COLOR888888,DOTLINE;
压力均线20:=HHV(LOW,20),COLORFFCC00,DOTLINE;
支撑均线30:=LLV(HIGH,30),COLORFFCC00,DOTLINE;
向上突破支撑:DRAWICON(FILTERX(CROSS(C,支撑均线30),10),L*0.995,1);
向下突破支撑:DRAWICON(FILTERX(CROSS(压力均线20,C),10),H*1.015,2);
{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,'●')COLORRED;
SAR空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLORGREEN;