变色增减主图 背景均线根据趋势一齐变色
-
相关简介:{变色增减} DRAWGBKLAST(CEMA(C,5) ,STRIP(RGB(0,0,80),RGB(80,0,0),1)); DRAWGBKLAST(C=EMA(C,5),STRIP(RGB(0,0,80),RGB(40,40,0),1)); DRAWGBKLAST(C=EMA(C,10),STRIP(RGB(0,0,180),RGB(0,80,0),1)); DRAWGBKLAST(C=EMA(C,20),STRIP(RGB(0,0,80),RGB(0,0,0),1)); DRAWTEXT
-
文章来源:股海网作者:股海网发布时间:2014-12-10浏览次数:
{变色增减}
DRAWGBKLAST(C>EMA(C,5) ,STRIP(RGB(0,0,80),RGB(80,0,0),1));
DRAWGBKLAST(C<=EMA(C,5),STRIP(RGB(0,0,80),RGB(40,40,0),1));
DRAWGBKLAST(C<=EMA(C,10),STRIP(RGB(0,0,180),RGB(0,80,0),1));
DRAWGBKLAST(C<=EMA(C,20),STRIP(RGB(0,0,80),RGB(0,0,0),1));
DRAWTEXTABS(10,8, '所属板块: '+BKNAME),Color0077FF;
DRAWTEXTABS(10,26,'流通 A股:'+NUMTOSTRN(FINANCE2(37)/10000,2)+'亿股, 市盈率:'+NUMTOSTRn(DYNAINFO(39),1)+'倍'),Color5EFFFF,LINETHICK2;
{以下设置五彩立体K线}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
B1:EMA(C,3),COLORFF9900;
B2:EMA(C,5),COLORFF9900,LINETHICK2;
B3:EMA(C,7),COLORFF9900;
B4:EMA(C,10),COLORFF9900;
B5:EMA(C,15),COLORFF9900;
B6:EMA(C,20),COLORFF9900,LINETHICK2;
B7:EMA(C,25),COLORFF9900;
B8:EMA(C,30),COLORFF9900;
B9:EMA(C,35),COLORFF9900;
B10:EMA(C,40),COLORFF9900;
B11:EMA(C,45),COLORFF9900;
B12:EMA(C,50),COLORFF9900;
B13:EMA(C,55),COLORFF9900;
B14:EMA(C,60),COLORFF9900,LINETHICK2;
B15:EMA(C,85),COLORFF9900;
B16:EMA(C,120),COLORFF9900;
B17:EMA(C,180),COLORFF9900;
B18:EMA(C,240),COLORFF9900,LINETHICK2;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,10)),LINETHICK2;
partline(B3,B3>REF(B3,1),rgb(255,0,20));;
partline(B4,B4>REF(B4,1),rgb(255,0,30));
partline(B5,B5>REF(B5,1),rgb(255,0,40));
partline(B6,B6>REF(B6,1),rgb(255,120,0)),LINETHICK2;
partline(B7,B7>REF(B7,1),rgb(255,0,60));
partline(B8,B8>REF(B8,1),rgb(255,0,70));
partline(B9,B9>REF(B9,1),rgb(255,0,80));
partline(B10,B10>REF(B10,1),rgb(255,0,90));
partline(B11,B11>REF(B11,1),rgb(255,0,100));
partline(B12,B12>REF(B12,1),rgb(255,0,110));
partline(B13,B13>REF(B13,1),rgb(255,0,120));
partline(B14,B14>REF(B14,1),rgb(255,150,0)),LINETHICK2;
partline(B15,B15>REF(B15,1),rgb(255,0,180));
partline(B16,B16>REF(B16,1),rgb(255,0,200));
partline(B17,B17>REF(B17,1),rgb(255,0,220));
partline(B18,B18>REF(B18,1),rgb(255,0,255)),LINETHICK2;
红线1:if(B1>REF(B1,1),1,0),LINETHICK0;
红线2:if(B2>REF(B2,1),1,0),LINETHICK0;
红线3:if(B3>REF(B3,1),1,0),LINETHICK0;
红线4:if(B4>REF(B4,1),1,0),LINETHICK0;
红线5:if(B5>REF(B5,1),1,0),LINETHICK0;
红线6:if(B6>REF(B6,1),1,0),LINETHICK0;
红线7:if(B7>REF(B7,1),1,0),LINETHICK0;
红线8:if(B8>REF(B8,1),1,0),LINETHICK0;
红线9:if(B9>REF(B9,1),1,0),LINETHICK0;
红线10:if(B10>REF(B10,1),1,0),LINETHICK0;
红线11:if(B11>REF(B11,1),1,0),LINETHICK0;
红线12:if(B12>REF(B12,1),1,0),LINETHICK0;
红线13:if(B13>REF(B13,1),1,0),LINETHICK0;
红线14:if(B14>REF(B14,1),1,0),LINETHICK0;
红线15:if(B15>REF(B15,1),1,0),LINETHICK0;
红线16:if(B16>REF(B16,1),1,0),LINETHICK0;
红线17:if(B17>REF(B17,1),1,0),LINETHICK0;
红线18:if(B18>REF(B18,1),1,0),LINETHICK0;
满堂红:红线1+红线2+红线3+红线4+红线5+红线6+红线7+红线8+红线8+红线10+红线11+红线12+红线13+红线14+红线15+红线16+红线17+红线18,PRECIS0,LINETHICK0;
分水岭:红线2+红线4+红线6,PRECIS0,LINETHICK0;
DRAWTEXTABS(550,5,'【满堂红18条线:现在→★红'+NUMTOSTRN(满堂红,0)+'条】'),Color0044ff,LINETHICK5,PRECIS0;
DRAWTEXTABS(545,35,'【其中:MA5,MA10,MA20,3条线:→★红'+NUMTOSTRN(分水岭,0)+'条】'),Color00FFff,LINETHICK3,PRECIS0;
DRAWTEXTABS(10,45,'▓历史最高价: '+NUMTOSTRN(HHV(HIGH,0),2)+'元 ' ),Color00FFFF,LINETHICK3;
DRAWTEXTABS(10,65,'▓历史最低价: '+NUMTOSTRN(LLV(LOW,0),2)+'元 ' ),Color00FF00,LINETHICK3;
DRAWTEXTABS(10,85,'▓十日内最高价: '+NUMTOSTRN(hhv(h,10),2)+'元'),Color0099FF,LINETHICK3;
DRAWTEXTABS(10,105,'▓十日内最低价: '+NUMTOSTRN(LLV(LOW,10),2)+'元'),ColorFF9900,LINETHICK3;
DRAWTEXTABS(10,125,'▓分水岭MA20: '+NUMTOSTRN(B6,2)+'元'),Color0000FF,LINETHICK3;
KD:last(红线2 ),LINETHICK0,PRECIS0;
DRAWTEXT(红线2,B16,''+(KD)+''),color00FFff,LINETHICK1;
STICKLINE(l>ref(h,1),l,ref(h,1),50,1),COLORRED;
STICKLINE(h<ref(l,1),h,ref(l,1),50,1),colorgreen;