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

要求在高九的最高价位置和低九的最低价位置处向右延伸画水平线 [博易POBO]

咨询内容:

要求在高九的最高价位置和低九的最低价位置处向右延伸画水平线

A1:=C>=REF(C,4);A2:=REF(C,0)<REF(C,4);
T1:=A2 AND REF(A1,1);
T2:=A2 AND REF(T1,1);
T3:=A2 AND REF(T2,1);
T4:=A2 AND REF(T3,1);
T5:=A2 AND REF(T4,1);
T6:=A2 AND REF(T5,1);
T7:=A2 AND REF(T6,1);
T8:=A2 AND REF(T7,1);
T9:=A2 AND REF(T8,1);

A:=T1 AND T2 AND T3 AND T4 AND T5 AND T6 AND T7 AND T8 AND T9;

DRAWTEXT(T9,LOW,'低9'),COLOR00FF00,ALIGN1,VALIGN0;
DRAWICON(T9,LOW,7);

DRAWTEXT(T1,LOW,'1'),COLOR00FF00,ALIGN1,VALIGN0;


A11:=C<=REF(C,4);A21:=REF(C,0)>REF(C,4);
T11:=A21 AND REF(A11,1);
T21:=A21 AND REF(T11,1);
T31:=A21 AND REF(T21,1);
T41:=A21 AND REF(T31,1);
T51:=A21 AND REF(T41,1);
T61:=A21 AND REF(T51,1);
T71:=A21 AND REF(T61,1);
T81:=A21 AND REF(T71,1);
T91:=A21 AND REF(T81,1);
DRAWTEXT(T91,HIGH,'高9'),COLOR00FFFF,ALIGN1,VALIGN2;
DRAWICON(T91,H,5);
DRAWTEXT(T11,HIGH,'1'),COLOR00FFFF,ALIGN1,VALIGN2;
A3:=BARSLAST(T91);
DRAWLINE(T91,TH,REFX(T91,1),REF(T91,A3),0);
 
要求在高九的最高价位置和低九的最低价位置处向右延伸画水平线,直到下次再出高九和低九时结束此水平线段。我自己弄出来的是斜线而非水平线,不知问题出何处。








 

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: A1:=C>=REF(C,4);A2:=REF(C,0)<REF(C,4);
T1:=A2 AND REF(A1,1);
T2:=A2 AND REF(T1,1);
T3:=A2 AND REF(T2,1);
T4:=A2 AND REF(T3,1);
T5:=A2 AND REF(T4,1);
T6:=A2 AND REF(T5,1);
T7:=A2 AND REF(T6,1);
T8:=A2 AND REF(T7,1);
T9:=A2 AND REF(T8,1);

A:=T1 AND T2 AND T3 AND T4 AND T5 AND T6 AND T7 AND T8 AND T9;

DRAWTEXT(T9,LOW,'低9'),COLOR00FF00,ALIGN1,VALIGN0;
DRAWICON(T9,LOW,7);

DRAWTEXT(T1,LOW,'1'),COLOR00FF00,ALIGN1,VALIGN0;


A11:=C<=REF(C,4);A21:=REF(C,0)>REF(C,4);
T11:=A21 AND REF(A11,1);
T21:=A21 AND REF(T11,1);
T31:=A21 AND REF(T21,1);
T41:=A21 AND REF(T31,1);
T51:=A21 AND REF(T41,1);
T61:=A21 AND REF(T51,1);
T71:=A21 AND REF(T61,1);
T81:=A21 AND REF(T71,1);
T91:=A21 AND REF(T81,1);
DRAWTEXT(T91,HIGH,'高9'),COLOR00FFFF,ALIGN1,VALIGN2;
DRAWICON(T91,H,5);
DRAWTEXT(T11,HIGH,'1'),COLOR00FFFF,ALIGN1,VALIGN2;

A11:=BARSLAST(T91);
A22:=BARSLAST(T9);
DRAWLINE(T91,HIGH,REFX(T91,1),REF(HIGH,A11),0);
DRAWLINE(T9,LOW,REFX(T9,1),REF(LOW,A22),0); 首先感谢   基本是这个结果了,美中不足是画线只能在出后一个九时才显示。我希望的是出第一个九就开始自然画线直到下一个九出现结束本次画线
来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


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

相关文章

    没有相关内容