求老师帮忙改写修正一下指标 [博易POBO]
咨询内容:
多空分界:=(REF(HHV(H,DAYBARPOS),DAYBARPOS)+REF(LLV(L,DAYBARPOS),DAYBARPOS)+REF(C,DAYBARPOS))/3,RGB(255,128,64);
HR:=REF(HHV(H,DAYBARPOS),DAYBARPOS);
LR:=REF(LLV(L,DAYBARPOS),DAYBARPOS);
支撑1:=多空分界*2-REF(HHV(H,DAYBARPOS),DAYBARPOS),COLORGREEN;
压力1:=多空分界*2-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORRED;
支撑2:=多空分界-(压力1-支撑1),COLORGREEN;
压力2:=多空分界+(压力1-支撑1),COLORRED;
支撑3:=REF(LLV(L,DAYBARPOS),DAYBARPOS)-2*(HR-多空分界),COLORGREEN;
压力3:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-2*(LR-多空分界),COLORRED;
AA:=BACKSET(ISLASTBAR,DAYBARPOS);
R3:IF(AA,压力3,NULL),DOT,COLORRED;
R2:IF(AA,压力2,NULL),DOT,COLORRED;
R1:IF(AA,压力1,NULL),DOT,COLORRED;
P:IF(AA,多空分界,NULL),LINETHICK1,RGB(255,128,64);
S1:IF(AA,支撑1,NULL),DOT,COLORGREEN;
S2:IF(AA,支撑2,NULL),DOT,COLORGREEN;
S3:IF(AA,支撑3,NULL),DOT,COLORGREEN;
DRAWNUMBER1(ISLASTBAR,多空分界,多空分界,2),ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑1,支撑1,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力1,压力1,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑2,支撑2,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力2,压力2,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑3,支撑3,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力3,压力3,2),VALIGN1,ALIGN0;
多空分界:=(REF(HHV(H,DAYBARPOS),DAYBARPOS)+REF(LLV(L,DAYBARPOS),DAYBARPOS)+REF(C,DAYBARPOS))/3,COLOR4080FF;
HR:=REF(HHV(H,DAYBARPOS),DAYBARPOS);
LR:=REF(LLV(L,DAYBARPOS),DAYBARPOS);
支撑1:=多空分界*2-REF(HHV(H,DAYBARPOS),DAYBARPOS),COLORGREEN;
压力1:=多空分界*2-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORRED;
支撑2:=多空分界-(压力1-支撑1),COLORGREEN;
压力2:=多空分界+(压力1-支撑1),COLORRED;
支撑3:=REF(LLV(L,DAYBARPOS),DAYBARPOS)-2*(HR-多空分界),COLORGREEN;
压力3:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-2*(LR-多空分界),COLORRED;
AA:=BACKSET(ISLASTBAR,DAYBARPOS);
R3:IF(AA,压力3,DRAWNULL),POINTDOT,COLORRED;
R2:IF(AA,压力2,DRAWNULL),POINTDOT,COLORRED;
R1:IF(AA,压力1,DRAWNULL),POINTDOT,COLORRED;
P:IF(AA,多空分界,DRAWNULL),LINETHICK1,COLOR4080FF;
S1:IF(AA,支撑1,DRAWNULL),POINTDOT,COLORGREEN;
S2:IF(AA,支撑2,DRAWNULL),POINTDOT,COLORGREEN;
S3:IF(AA,支撑3,DRAWNULL),POINTDOT,COLORGREEN;
DRAWNUMBER(ISLASTBAR,多空分界,多空分界,2),ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑1,支撑1,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力1,压力1,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑2,支撑2,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力2,压力2,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑3,支撑3,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力3,压力3,2),VALIGN1,ALIGN0; 来源 程序化久久网
求老师帮忙改写修正一下指标
老师帮忙改编博易大师可用的指标,其中特别提醒指标为主图指标,并且线段只在当日时间范围内显示,谢谢老师。多空分界:=(REF(HHV(H,DAYBARPOS),DAYBARPOS)+REF(LLV(L,DAYBARPOS),DAYBARPOS)+REF(C,DAYBARPOS))/3,RGB(255,128,64);
HR:=REF(HHV(H,DAYBARPOS),DAYBARPOS);
LR:=REF(LLV(L,DAYBARPOS),DAYBARPOS);
支撑1:=多空分界*2-REF(HHV(H,DAYBARPOS),DAYBARPOS),COLORGREEN;
压力1:=多空分界*2-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORRED;
支撑2:=多空分界-(压力1-支撑1),COLORGREEN;
压力2:=多空分界+(压力1-支撑1),COLORRED;
支撑3:=REF(LLV(L,DAYBARPOS),DAYBARPOS)-2*(HR-多空分界),COLORGREEN;
压力3:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-2*(LR-多空分界),COLORRED;
AA:=BACKSET(ISLASTBAR,DAYBARPOS);
R3:IF(AA,压力3,NULL),DOT,COLORRED;
R2:IF(AA,压力2,NULL),DOT,COLORRED;
R1:IF(AA,压力1,NULL),DOT,COLORRED;
P:IF(AA,多空分界,NULL),LINETHICK1,RGB(255,128,64);
S1:IF(AA,支撑1,NULL),DOT,COLORGREEN;
S2:IF(AA,支撑2,NULL),DOT,COLORGREEN;
S3:IF(AA,支撑3,NULL),DOT,COLORGREEN;
DRAWNUMBER1(ISLASTBAR,多空分界,多空分界,2),ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑1,支撑1,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力1,压力1,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑2,支撑2,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力2,压力2,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,支撑3,支撑3,2),VALIGN1,ALIGN0;
DRAWNUMBER1(ISLASTBAR,压力3,压力3,2),VALIGN1,ALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 麻烦老师抽空帮忙改一下,谢谢了。 DAYBARPOS:=BARSLAST(REF(HOUR,1)=15ANDHOUR<>15);多空分界:=(REF(HHV(H,DAYBARPOS),DAYBARPOS)+REF(LLV(L,DAYBARPOS),DAYBARPOS)+REF(C,DAYBARPOS))/3,COLOR4080FF;
HR:=REF(HHV(H,DAYBARPOS),DAYBARPOS);
LR:=REF(LLV(L,DAYBARPOS),DAYBARPOS);
支撑1:=多空分界*2-REF(HHV(H,DAYBARPOS),DAYBARPOS),COLORGREEN;
压力1:=多空分界*2-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORRED;
支撑2:=多空分界-(压力1-支撑1),COLORGREEN;
压力2:=多空分界+(压力1-支撑1),COLORRED;
支撑3:=REF(LLV(L,DAYBARPOS),DAYBARPOS)-2*(HR-多空分界),COLORGREEN;
压力3:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-2*(LR-多空分界),COLORRED;
AA:=BACKSET(ISLASTBAR,DAYBARPOS);
R3:IF(AA,压力3,DRAWNULL),POINTDOT,COLORRED;
R2:IF(AA,压力2,DRAWNULL),POINTDOT,COLORRED;
R1:IF(AA,压力1,DRAWNULL),POINTDOT,COLORRED;
P:IF(AA,多空分界,DRAWNULL),LINETHICK1,COLOR4080FF;
S1:IF(AA,支撑1,DRAWNULL),POINTDOT,COLORGREEN;
S2:IF(AA,支撑2,DRAWNULL),POINTDOT,COLORGREEN;
S3:IF(AA,支撑3,DRAWNULL),POINTDOT,COLORGREEN;
DRAWNUMBER(ISLASTBAR,多空分界,多空分界,2),ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑1,支撑1,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力1,压力1,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑2,支撑2,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力2,压力2,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,支撑3,支撑3,2),VALIGN1,ALIGN0;
DRAWNUMBER(ISLASTBAR,压力3,压力3,2),VALIGN1,ALIGN0; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容