变色买卖. 每个波段都能赚钱就是好公式机会由自己把握(源码.幅图.说明.加通达信)介绍
变色买卖. 每个波段都能赚钱就是好公式机会由自己把握(源码.幅图.说明.加通达信)
每个波段都能赚钱就是好公式机会由你自己把握.这个公式有【背景】【变色K线】【变色彩条】哪买哪卖一清二楚. 这个公式用副图显示目的就是避免K线与主图混绕.看不清买卖点.具体操作你必须配合主图判断你到底使用那个信号. 但是你目的必须清楚就是多赚钱. --------【买在低处.卖在高处】 所以公式仅仅是提醒.具体买卖还是在于你. 不会有【万无一失】【完满无缺】 其实最重要还是【人脑】 公式就是工具而已.
---------这个公式还有个缺点就是【横盘】阶段忽上忽下不好用.---------------不过此时你还是观望的好----------
大智慧源码:
DRAWGBK(C,Strip(RGB(60,40,40),RGB(0,0,120),0));
{------K线-----------}
X1:=(2*CLOSE+LOW+HIGH+OPEN)/5;
XCLOSE:=EMA(X1,3);
XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);
{买卖K线}
STICKLINE(XOPEN>=XCLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(XOPEN>=XCLOSE,C,O,6,0 ),COLOR990000;
STICKLINE(XOPEN>=XCLOSE,C,O,5,0 ),COLORCC0000;
STICKLINE(XOPEN>=XCLOSE,C,O,4,0 ),COLORFF4400;
STICKLINE(XOPEN>=XCLOSE,C,O,3,0 ),COLORFF8800;
STICKLINE(XOPEN>=XCLOSE,C,O,2,0 ),COLORFFCC00;
STICKLINE(XOPEN>=XCLOSE,C,O,1,0 ),COLORCYAN;
STICKLINE(XOPEN<XCLOSE,H,L,0.5,0 ),COLOR00FFFF;
STICKLINE(XOPEN<XCLOSE,C,O,6,0 ),COLOR009955;
STICKLINE(XOPEN<XCLOSE,C,O,5,0 ),COLOR009977;
STICKLINE(XOPEN<XCLOSE,C,O,4,0 ),COLOR009999;
STICKLINE(XOPEN<XCLOSE,C,O,3,0 ),COLOR0099BB;
STICKLINE(XOPEN<XCLOSE,C,O,2,0 ),COLOR0099DD;
STICKLINE(XOPEN<XCLOSE,C,O,1,0 ),COLOR0099FF;
DRAWGBK(XOPEN<XCLOSE ,STRIP(RGB(0,0,255),RGB(0,80,0),0)),LAYER0; {-------KD波段背景------};
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
红持:var9Q,color0000ff,LINETHICK0;
STICKLINE(VAR9Q,H,L,0.5,0),COLOR0000FF;
STICKLINE(VAR9Q,C,O,7,0),COLOR0000AA;
STICKLINE(VAR9Q,C,O,6,0),COLOR0000BB;
STICKLINE(VAR9Q,C,O,4,0),COLOR0000CC;
STICKLINE(VAR9Q,C,O,3,0),COLOR0000DD;
STICKLINE(VAR9Q,C,O,2,0),COLOR0000EE;
STICKLINE(VAR9Q,C,O,1,0),COLOR0000FF;
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
绿买:varcQ,color00ff00,LINETHICK0;
STICKLINE(VARCQ,H,L,0.5,0),COLOR00FF00;
STICKLINE(VARCQ,O,C,7,0),COLOR00AA00;
STICKLINE(VARCQ,O,C,6,0),COLOR00BB00;
STICKLINE(VARCQ,O,C,4,0),COLOR00CC00;
STICKLINE(VARCQ,O,C,3,0),COLOR00DD00;
STICKLINE(VARCQ,O,C,2,0),COLOR00EE00;
STICKLINE(VARCQ,O,C,1,0),COLOR00FF00;
VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
蓝抛:vardQ,colorff9900,LINETHICK0;
STICKLINE(VARDQ AND C<O,H,L,0.5,0),COLORFF9900;
STICKLINE(VARDQ AND C<O,O,C,7,0),COLORFF2200;
STICKLINE(VARDQ AND C<O,O,C,6,0),COLORFF4400;
STICKLINE(VARDQ AND C<O,O,C,4,0),COLORFF6600;
STICKLINE(VARDQ AND C<O,O,C,3,0),COLORFF7700;
STICKLINE(VARDQ AND C<O,O,C,2,0),COLORFF8800;
STICKLINE(VARDQ AND C<O,O,C,1,0),COLORFF9900;
X:=BARSLAST(DISPSTATUS=1)+1;
{------创新高-----}
高:=HHvall(HHv(H,X));
跑:=高=H AND ((C-L)<(O-C) OR (O-L)<(C-O));
STICKLINE(跑,C,O,8,0),COLOR555555;
STICKLINE(跑,C,O,5,0),COLOR777777;
STICKLINE(跑,C,O,3,0),COLORAAAAAA;
STICKLINE(跑,C,O,1,0),COLORCCCCCC;
STICKLINE(跑,C,O,0.5,0),COLORFFFFFF;
STICKLINE(跑,L,H,0,0),COLORFFFFFF;
{变色彩带}
VAR1:=(2*CLOSE+HIGH+LOW)/4;
A1: (EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,11)+EMA(VAR1,13))/6.1,COLORff9900;
A2: EMA(A1,2),COLORff9900;
A3: EMA(A2,2),COLORff9900;
A4: EMA(A3,2),COLORff9900;
A5: EMA(A4,2),COLORff9900;
A6: EMA(A5,2),COLORff9900;
A7: EMA(A6,2),COLORff9900;
A8: EMA(A7,2),COLORff9900;
A9: EMA(A8,2),COLORff9900;
A10: EMA(A9,2),COLORff9900;
PARTLINE(A1,A1>REF(A1,1)),COLOR0ffff0;
PARTLINE(A2,A2>REF(A2,1)),COLOR0ffff0;
PARTLINE(A3,A3>REF(A3,1)),COLOR0ffff0;
PARTLINE(A4,A4>REF(A4,1)),COLOR0ffff0;
PARTLINE(A5,A5>REF(A5,1)),COLOR0ffff0;
PARTLINE(A6,A6>REF(A6,1)),COLOR0ffff0;
PARTLINE(A7,A7>REF(A7,1)),COLOR0ffff0;
PARTLINE(A8,A8>REF(A8,1)),COLOR0ffff0;
PARTLINE(A9,A9>REF(A9,1)),COLOR0ffff0;
PARTLINE(A10,A10>REF(A10,1)),COLOR0ffff0;
PARTLINE(A1,A1>REF(A1,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;
通达信源码:
DRAWGBK(C>0,RGB(80,0,80),RGB(0,0,140),0,'01',0); {背景不要可删除}
{------K线-----------}
X1:=(2*CLOSE+LOW+HIGH+OPEN)/5;
XCLOSE:=EMA(X1,3);
XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);
STICKLINE(XOPEN<XCLOSE,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR003303; {-------KD波段背景------};
{买卖K线}
STICKLINE(XOPEN>=XCLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(XOPEN>=XCLOSE,C,O,3.5,0 ),COLORFF4400;
STICKLINE(XOPEN>=XCLOSE,C,O,3,0 ),COLORFF8800;
STICKLINE(XOPEN>=XCLOSE,C,O,2,0 ),COLORFFCC00;
STICKLINE(XOPEN>=XCLOSE,C,O,1,0 ),COLORCYAN;
STICKLINE(XOPEN<XCLOSE,H,L,0,0 ),COLOR00FFFF;
STICKLINE(XOPEN<XCLOSE,C,O,3.5,0 ),COLOR009999;
STICKLINE(XOPEN<XCLOSE,C,O,3,0 ),COLOR0099BB;
STICKLINE(XOPEN<XCLOSE,C,O,2,0 ),COLOR0099DD;
STICKLINE(XOPEN<XCLOSE,C,O,1,0 ),COLOR0099FF;
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
STICKLINE(VAR9Q,H,L,0,0),COLOR0000FF;
STICKLINE(VAR9Q,C,O,3.5,0),COLOR0000CC;
STICKLINE(VAR9Q,C,O,3,0),COLOR0000DD;
STICKLINE(VAR9Q,C,O,2,0),COLOR0000EE;
STICKLINE(VAR9Q,C,O,1,0),COLOR0000FF;
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(VARCQ,H,L,0,0),COLOR00FF00;
STICKLINE(VARCQ,O,C,3.5,0),COLOR00CC00;
STICKLINE(VARCQ,O,C,3,0),COLOR00DD00;
STICKLINE(VARCQ,O,C,2,0),COLOR00EE00;
STICKLINE(VARCQ,O,C,1,0),COLOR00FF00;
VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
STICKLINE(VARDQ AND C<O,H,L,0,0),COLORFF9900;
STICKLINE(VARDQ AND C<O,O,C,3.5,0),COLORFF2200;
STICKLINE(VARDQ AND C<O,O,C,3,0),COLORFF4400;
STICKLINE(VARDQ AND C<O,O,C,2,0),COLORFF6600;
STICKLINE(VARDQ AND C<O,O,C,1,0),COLORFF8800;
{变色彩带}
VAR1:=(2*CLOSE+HIGH+LOW)/4;
A1: (EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,11)+EMA(VAR1,13))/6.4,COLORFF9900,LINETHICK3;
A2: EMA(A1,2),COLORFF9900;
A3: EMA(A2,2),COLORFF9900;
A4: EMA(A3,2),COLORFF9900;
A5: EMA(A4,2),COLORFF9900;
A6: EMA(A5,2),COLORFF9900;
A7: EMA(A6,2),COLORFF9900;
A8: EMA(A7,2),COLORFF9900;
A9: EMA(A8,2),COLORFF9900;
A10: EMA(A9,2),COLORFF9900;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR0FFFF0;
IF(A2>REF(A2,1),A2,DRAWNULL),COLOR0FFFF0;
IF(A3>REF(A3,1),A3,DRAWNULL),COLOR0FFFF0;
IF(A4>REF(A4,1),A4,DRAWNULL),COLOR0FFFF0;
IF(A5>REF(A5,1),A5,DRAWNULL),COLOR0FFFF0;
IF(A6>REF(A6,1),A6,DRAWNULL),COLOR0FFFF0;
IF(A7>REF(A7,1),A7,DRAWNULL),COLOR0FFFF0;
IF(A8>REF(A8,1),A8,DRAWNULL),COLOR0FFFF0;
IF(A9>REF(A9,1),A9,DRAWNULL),COLOR0FFFF0;
IF(A10>REF(A10,1),A10,DRAWNULL),COLOR0FFFF0;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR0000FF,LINETHICK3;
gd33130