【BOLL-金】是个主图.副图都可以用的公式.根据个人喜好使用.是个相同于布林线类型的公式.但是公式的元素大不相同.新同学马上就会明显看出买卖点.我们抄月殳就是为的找一个合适的买卖位置.尽可能使利润最大化.其实小散第一就【怕套】.第二就怕【挂在半山腰】.这个公式基本是能够明确显示买卖点.十次成功七次.这个公式就可以使用.不过信不信由你.公式的信号仅仅是提醒而已.真的买卖还是你说了算. 公式的源码其实就是一个为了适应加加减减而已.当然你不会两个同时用在一个版面上的.我发图仅仅是为了展示而已.
用在主图的源码:---------------------------------------------
{BOLL-金z}
DRAWGBKlast(c>0,strip(RGB(80,0,80),RGB(0,0,80),1));
{1.重心线}
HH:=HHV(H,3);LL:=LLV(L,3);
ZXC:=WMA((2*C+HH+LL)/4,4);
ZXO:=REF(ZXC,1);
ZXC,COLOR00FF00,LINETHICK2,LAYER0;
PARTLINE(ZXC,ZXC>REF(ZXC,1),rgb(255,80,0)),LINETHICK3,LAYER0;
{3.BOLL-金}
MID:MA(ZXC,18),COLOR00FFFF,DOTLINE;
UPPER:MID + 1.8*STD(ZXC,18),COLORFF66FF;
LOWER:MID - 1.8*STD(ZXC,18),COLORFF9900;
{4.高抛.低吸}
RC:=(H+L+C*2)/4;
R2D:=WMA(RC,27);
R2E:=STD(RC,27);
R3F:=(RC-R2D)/R2E*100;
R40:=WMA(R3F,3);
R41:=WMA(R40,3);
JD:=WMA(R41,2);
AJ:=3*R41-2*JD;
DRAWTEXT(CROSS(AJ,JD) ,L-0.2,'←买呗'),COLOR00FFFF,LINETHICK2,LAYER0;
DRAWTEXT(CROSS(JD,AJ) ,H+0.2,'←跑哇'),COLOR00FFFF,LINETHICK2,LAYER0;
{5.K线}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),color0000FF;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),color906600;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),color908800;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),color90AA00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),color90BB00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),color90CC00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),color90DD00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),color90EE00;
STICKLINE((OPEN > CLOSE),HIGH,LOW,0,0),color90FF00;
用在副图源码如下:----------------------------------------------------------------------------
{BOLL-金f}
DRAWGBKlast(c>0,strip(RGB(0,50,0),RGB(0,0,80),1));
{1.重心线}
HH:=HHV(H,3);LL:=LLV(L,3);
ZXC:=WMA((2*C+HH+LL)/4,4);
ZXO:=REF(ZXC,1);
ZXC,COLOR00FF00,LINETHICK2,LAYER0;
PARTLINE(ZXC,ZXC>REF(ZXC,1),rgb(255,80,0)),LINETHICK3,LAYER0;
{2.重心K线--------可以加减大括弧-------}
STICKLINE(ZXO>=ZXC,ZXO,ZXC,9,500 ),COLOR003300,LAYER0;
STICKLINE(ZXO>=ZXC,ZXO,ZXC,6,500 ),COLOR005500,LAYER0;
STICKLINE(ZXO>=ZXC,ZXO,ZXC,3,500 ),COLOR007700,LAYER0;
STICKLINE(ZXO>=ZXC,ZXO,ZXC,1,500 ),COLOR009900,LAYER0;
STICKLINE(ZXO<ZXC,ZXO,ZXC,9,500 ),COLOR0099FF,LAYER0;
STICKLINE(ZXO<ZXC,ZXO,ZXC,6,500 ),COLOR0077FF,LAYER0;
STICKLINE(ZXO<ZXC,ZXO,ZXC,3,500 ),COLOR0055FF,LAYER0;
STICKLINE(ZXO<ZXC,ZXO,ZXC,1,500 ),COLOR0033FF,LAYER0;
{3.BOLL-金}
MID:MA(ZXC,18),COLOR00FFFF,DOTLINE;
UPPER:MID + 1.8*STD(ZXC,18),COLORFF66FF;
LOWER:MID - 1.8*STD(ZXC,18),COLORFF9900;
{4.高抛.低吸}
RC:=(H+L+C*2)/4;
R2D:=WMA(RC,27);
R2E:=STD(RC,27);
R3F:=(RC-R2D)/R2E*100;
R40:=WMA(R3F,3);
R41:=WMA(R40,3);
JD:=WMA(R41,2);
AJ:=3*R41-2*JD;
DRAWTEXT(CROSS(AJ,JD) ,L-0.2,'←买呗'),COLOR00FFFF,LINETHICK2,LAYER0;
DRAWTEXT(CROSS(JD,AJ) ,H+0.2,'←跑哇'),COLOR00FFFF,LINETHICK2,LAYER0;
|