您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

请问一下现在开盘价画线如何写 [博易POBO]

咨询内容:

请问一下现在开盘价画线如何写

请问一下现在有了晚盘后的开盘价画线如何写(请老师帮改一下,谢谢)

原来是这样的
KPX:=IF(DAY<>REF(DAY,1),O,REF(KPX,1)),LINETHICK0,PRECIS0;
TV:=IF(DATE<>REF(DATE,1),0,REF(TV,1))+V;
TT:=IF(DATE<>REF(DATE,1),0,REF(TT,1))+(C+O+H+L)*0.25*V;
AP:=TT/TV,CIRCLEDOT,COLORYELLOW;
开盘:REF(O,BARSLAST(DAY>REF(DAY,1))),LINETHICK0;
NN:=IFELSE(DATE<>REF(DATE,1),0,BARSLAST(DATE<>REF(DATE,1)))+1;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
C1:=VALUEWHEN(DATE<>REF(DATE,1),REF(CLOSE,1));
均价:=MA((C+O+H+L)/4,130),LINETHICK2,COLORFF00FF;
均价2:=MA((C+O+H+L)/4,2);
开盘高:REF(H,BARSLAST(DAY>REF(DAY,1))),LINETHICK0;
开盘低:REF(L,BARSLAST(DAY>REF(DAY,1))),LINETHICK0;
昨高:REF(H1,BARSLAST(DAY>REF(DAY,1))),LINETHICK0;
昨低:REF(L1,BARSLAST(DAY>REF(DAY,1))),LINETHICK0;
PARTLINE(DAY=REF(DAY,1),昨高),LINETHICK1,COLOR8080FF,POINTDOT;
PARTLINE(DAY=REF(DAY,1),昨低),LINETHICK1,COLORFF8000,POINTDOT;
PARTLINE(DAY=REF(DAY,1),开盘高),LINETHICK1,COLOR00FFFF,POINTDOT;
PARTLINE(DAY=REF(DAY,1),开盘低),LINETHICK1,COLORFFFF80,POINTDOT;
PARTLINE(DAY=REF(DAY,1),开盘),LINETHICK1,COLOR00FF00;
QQ图片20150212123041.png

 

博易技术人员:


KPX:=IF(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23,O,REF(KPX,1)),LINETHICK0,PRECIS0;
TV:=IF(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23,0,REF(TV,1))+V;
TT:=IF(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23,0,REF(TT,1))+(C+O+H+L)*0.25*V;
AP:=TT/TV,CIRCLEDOT,COLORYELLOW;
开盘:REF(O,BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)),LINETHICK0;
NN:=BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)+1;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
C1:=VALUEWHEN(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23,REF(CLOSE,1));
均价:=MA((C+O+H+L)/4,130),LINETHICK2,COLORFF00FF;
均价2:=MA((C+O+H+L)/4,2);
开盘高:REF(H,BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)),LINETHICK0;
开盘低:REF(L,BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)),LINETHICK0;
昨高:REF(H1,BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)),LINETHICK0;
昨低:REF(L1,BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23)),LINETHICK0;
PARTLINE(BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23),昨高),LINETHICK1,COLOR8080FF,POINTDOT;
PARTLINE(BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23),昨低),LINETHICK1,COLORFF8000,POINTDOT;
PARTLINE(BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23),开盘高),LINETHICK1,COLOR00FFFF,POINTDOT;
PARTLINE(BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23),开盘低),LINETHICK1,COLORFFFF80,POINTDOT;
PARTLINE(BARSLAST(ABS(HOUR-REF(HOUR,1))>5ANDABS(HOUR-REF(HOUR,1))<23),开盘),LINETHICK1,COLOR00FF00;

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容