加色带源码附图
-
相关简介:过年了,也凑热闹加色带 FILLRGN(MA(CLOSE,5)MA(CLOSE,24),MA(CLOSE,5),MA(CLOSE,24)),{COLORbb}color330066; FILLRGN(MA(CLOSE,5)MA(CLOSE,24),MA(CLOSE,5),MA(CLOSE,24)),COLOR5a9a00; STICKLINE(CO OR (C=O AND CREF(C,1)),H,L,0,0),COLOR5454FF; STICKLINE(CO OR (C=O AND CREF
-
文章来源:股海网作者:股海网发布时间:2014-12-13浏览次数:
过年了,也凑热闹加色带
FILLRGN(MA(CLOSE,5)>MA(CLOSE,24),MA(CLOSE,5),MA(CLOSE,24)),{COLORbb}color330066;
FILLRGN(MA(CLOSE,5)<MA(CLOSE,24),MA(CLOSE,5),MA(CLOSE,24)),COLOR5a9a00;
STICKLINE(C>O OR (C=O AND C>REF(C,1)),H,L,0,0),COLOR5454FF;
STICKLINE(C>O OR (C=O AND C>REF(C,1)),C,O,7.5,0),COLOR000000;
STICKLINE(C>O OR (C=O AND C>REF(C,1)),C,O,7.5,1),COLOR5454FF;
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),H,L,0,0),COLORFFFF00;
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),C,O,7.5,0),COLORFFFF00;
M105:EMA(C,105);
VAR6:=(( ABS((OPEN-CLOSE))/(HIGH-LOW))*VOL);
VAR7:=(( (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN))/(HIGH-LOW))*VOL);
VAR8:=(( (IF((CLOSE>OPEN),OPEN,CLOSE)-LOW)/(HIGH-LOW))*VOL);
VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);
STICKLINE(C,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),6,0),COLORred;
STICKLINE(C,REF(C,BARSLAST(LJL)),REF(C,BARSLAST(LJL)),6,0),COLORyellow;
DLX:=(指数平滑移动平均(收盘价,17)-向前引用(指数平滑移动平均(收盘价,17),1));
DLX1:=求和(DLX,3);
DLX2:=简单移动平均(DLX1,5);
S1:=持续存在(DLX1<DLX2 and DLX1<向前引用(DLX1,1),-1,0);
S2:=持续存在(DLX1>=DLX2 and DLX1>=向前引用(DLX1,1),-1,0);
显示数字(S1>0,最高价*1.02,上一次条件成立位置(S1=0),0),color00FF00,LINETHICK1;
显示数字(S2>0,最低价*1,上一次条件成立位置(S2=0),0),color0000FF,LINETHICK1;