实用: 给博易K线加上高低点的指标,并可在K线上显示分时图上的均价线 [博易POBO]
咨询内容:
计算日内均线:=1;
{DRAWKLINE(H,O,L,C);}
ISINDAY:= DATAPERIOD<6 OR DATAPERIOD=11;
ISOUTER:= IF(BETWEEN(HOUR,16,20), 1, REF(ISOUTER,1));
DBARS:= IF(REF(HOUR,1)=15 AND HOUR<>15,1, REF(DBARS,1)+1);
DVOL:= IF(DBARS=1,VOL,REF(DVOL,1)+VOL);
DVC:= IF(DBARS=1, VOL*CLOSE, REF(DVC,1)+VOL*CLOSE);
DMAC:= DVC/DVOL; IF(DATAPERIOD<6 OR DATAPERIOD=11, DMAC, CLOSE),PRECIS0,LINETHICK0,COLOR009999;
PARTLINE(ISINDAY AND NOT(ISOUTER) AND DBARS<>1 AND REF(DMAC,1), DMAC),COLOR009999;
高低点:=1;
STEP:=20/2;
DIGIT:=IF(FRACPART(HIGH-LOW)*100>0,2,IF(FRACPART(C)*1000>0,3,0));
FILTERD:=COUNT(REFX(ISLASTBAR,STEP/2-1),0)=0;
HH:= IF(FILTER(H+0.001 > REFX(HHV(H,STEP*2), STEP) AND FILTERD, STEP), H, 0);
LL:= IF(FILTER(L-0.001 < REFX(LLV(L,STEP*2), STEP) AND FILTERD, STEP), L, 0);
DRAWNUMBER(HH, HH, HH, DIGIT), VALIGN2, COLORGRAY;
DRAWNUMBER(LL, LL, LL, DIGIT), VALIGN0, COLORGRAY;
------------------------------------------------------
2015-01-06 追加一个将持仓量和成交量放到一起的指标:
VL:= VOL;
VLMA5:= MA(VOL,5);
VLMA20:= MA(VOL,20);
OI:=AMOUNT;
成交量: VOL, PRECIS0, VOLSTICK;
成交量5日均线: MA(VOL,5), PRECIS0, COLORYELLOW;
持仓量: OI, PRECIS0,LINETHICK0,COLORCYAN;
持仓曲线:=1;
DISP:=100;
VH :=REFX(HHV(V,DISP*2),DISP);
OIH:=REFX(HHV(OI,DISP*2),DISP);
OIL:=REFX(LLV(OI,DISP*2),DISP);
OIV:=(OI-OIL)/(OIH-OIL)*VH;
PARTLINE(STKTYPE<>1 AND REF(VH,1)>0,OIV),COLOR999900;
<!-- 咨询内容:
我变色的分时图均线都有哩。
哦哦,没看到你的帖子,呵呵,贴上来多份参考也好。
实用: 给博易K线加上高低点的指标,并可在K线上显示分时图上的均价线
本帖最后由 riverszhao 于 2015-1-24 02:52 编辑计算日内均线:=1;
{DRAWKLINE(H,O,L,C);}
ISINDAY:= DATAPERIOD<6 OR DATAPERIOD=11;
ISOUTER:= IF(BETWEEN(HOUR,16,20), 1, REF(ISOUTER,1));
DBARS:= IF(REF(HOUR,1)=15 AND HOUR<>15,1, REF(DBARS,1)+1);
DVOL:= IF(DBARS=1,VOL,REF(DVOL,1)+VOL);
DVC:= IF(DBARS=1, VOL*CLOSE, REF(DVC,1)+VOL*CLOSE);
DMAC:= DVC/DVOL; IF(DATAPERIOD<6 OR DATAPERIOD=11, DMAC, CLOSE),PRECIS0,LINETHICK0,COLOR009999;
PARTLINE(ISINDAY AND NOT(ISOUTER) AND DBARS<>1 AND REF(DMAC,1), DMAC),COLOR009999;
高低点:=1;
STEP:=20/2;
DIGIT:=IF(FRACPART(HIGH-LOW)*100>0,2,IF(FRACPART(C)*1000>0,3,0));
FILTERD:=COUNT(REFX(ISLASTBAR,STEP/2-1),0)=0;
HH:= IF(FILTER(H+0.001 > REFX(HHV(H,STEP*2), STEP) AND FILTERD, STEP), H, 0);
LL:= IF(FILTER(L-0.001 < REFX(LLV(L,STEP*2), STEP) AND FILTERD, STEP), L, 0);
DRAWNUMBER(HH, HH, HH, DIGIT), VALIGN2, COLORGRAY;
DRAWNUMBER(LL, LL, LL, DIGIT), VALIGN0, COLORGRAY;
------------------------------------------------------
2015-01-06 追加一个将持仓量和成交量放到一起的指标:
VL:= VOL;
VLMA5:= MA(VOL,5);
VLMA20:= MA(VOL,20);
OI:=AMOUNT;
成交量: VOL, PRECIS0, VOLSTICK;
成交量5日均线: MA(VOL,5), PRECIS0, COLORYELLOW;
持仓量: OI, PRECIS0,LINETHICK0,COLORCYAN;
持仓曲线:=1;
DISP:=100;
VH :=REFX(HHV(V,DISP*2),DISP);
OIH:=REFX(HHV(OI,DISP*2),DISP);
OIL:=REFX(LLV(OI,DISP*2),DISP);
OIV:=(OI-OIL)/(OIH-OIL)*VH;
PARTLINE(STKTYPE<>1 AND REF(VH,1)>0,OIV),COLOR999900;
<!-- 咨询内容:
附件 :
-->博易技术人员: 我变色的分时图均线都有哩。 http://210.14.65.65:13168/foru...D1285
我变色的分时图均线都有哩。
哦哦,没看到你的帖子,呵呵,贴上来多份参考也好。
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容