麻烦老师给改一下 [博易POBO]
咨询内容:
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,5);
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
AAA:=IF(DATACOUNT-BARPOS<100,DATACOUNT-BARPOS-1,100);
GDCS1:=REFX(DINGBUTS,AAA);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX(DINGBUTS1,AAA);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,0),COLORGREEN,LINETHICK0;
DRAWSL(CURRBARSCOUNT=GDCS1,H,0,100,0),COLOR0000FF;
DRAWSL(CURRBARSCOUNT=GDCS2,H,0,100,0),COLORBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,4);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX(DDTS1,AAA);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX(DDTS2,AAA);
DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,0),COLORRED,LINETHICK0;
ZGSTAR:=(H+L)/2;
ZGEND:=REFX((H+L)/2,AAA);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,0),COLORFF55BB,LINETHICK0;
DRAWSL(CURRBARSCOUNT=DDCS1,L,0,100,0),COLOR808080;
DRAWSL(CURRBARSCOUNT=DDCS2,L,0,100,0),COLORYELLOW;
这个指标更改成就要箭头,别的横线全部不显示。谢谢
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,5);
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
AAA:=IF(DATACOUNT-BARPOS<100,DATACOUNT-BARPOS-1,100);
GDCS1:=REFX(DINGBUTS,AAA);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX(DINGBUTS1,AAA);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
//DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,0),COLORGREEN,LINETHICK0;
//DRAWSL(CURRBARSCOUNT=GDCS1,H,0,100,0),COLOR0000FF;
//DRAWSL(CURRBARSCOUNT=GDCS2,H,0,100,0),COLORBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,4);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX(DDTS1,AAA);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX(DDTS2,AAA);
//DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,0),COLORRED,LINETHICK0;
ZGSTAR:=(H+L)/2;
ZGEND:=REFX((H+L)/2,AAA);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
//DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,0),COLORFF55BB,LINETHICK0;
//DRAWSL(CURRBARSCOUNT=DDCS1,L,0,100,0),COLOR808080;
//DRAWSL(CURRBARSCOUNT=DDCS2,L,0,100,0),COLORYELLOW; 来源 程序化久久网
麻烦老师给改一下
MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,5);
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
AAA:=IF(DATACOUNT-BARPOS<100,DATACOUNT-BARPOS-1,100);
GDCS1:=REFX(DINGBUTS,AAA);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX(DINGBUTS1,AAA);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,0),COLORGREEN,LINETHICK0;
DRAWSL(CURRBARSCOUNT=GDCS1,H,0,100,0),COLOR0000FF;
DRAWSL(CURRBARSCOUNT=GDCS2,H,0,100,0),COLORBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,4);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX(DDTS1,AAA);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX(DDTS2,AAA);
DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,0),COLORRED,LINETHICK0;
ZGSTAR:=(H+L)/2;
ZGEND:=REFX((H+L)/2,AAA);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,0),COLORFF55BB,LINETHICK0;
DRAWSL(CURRBARSCOUNT=DDCS1,L,0,100,0),COLOR808080;
DRAWSL(CURRBARSCOUNT=DDCS2,L,0,100,0),COLORYELLOW;
这个指标更改成就要箭头,别的横线全部不显示。谢谢
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,5);
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
AAA:=IF(DATACOUNT-BARPOS<100,DATACOUNT-BARPOS-1,100);
GDCS1:=REFX(DINGBUTS,AAA);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX(DINGBUTS1,AAA);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
//DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,0),COLORGREEN,LINETHICK0;
//DRAWSL(CURRBARSCOUNT=GDCS1,H,0,100,0),COLOR0000FF;
//DRAWSL(CURRBARSCOUNT=GDCS2,H,0,100,0),COLORBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,4);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX(DDTS1,AAA);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX(DDTS2,AAA);
//DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,0),COLORRED,LINETHICK0;
ZGSTAR:=(H+L)/2;
ZGEND:=REFX((H+L)/2,AAA);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
//DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,0),COLORFF55BB,LINETHICK0;
//DRAWSL(CURRBARSCOUNT=DDCS1,L,0,100,0),COLOR808080;
//DRAWSL(CURRBARSCOUNT=DDCS2,L,0,100,0),COLORYELLOW; 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 或微信号:cxh99cxh99 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容