让这三根线显示出价位数字吗 [文华财经]
-
咨询内容:
OO:=VALUEWHEN(DAYBARPOS=1,O);ZG:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-REF(OO,DAYBARPOS),COLORRED,NODRAW;ZD:=REF(OO,DAYBARPOS)-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORGREEN,NODRAW;A1:=MAX(ZG,ZD);ZG1:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))-REF(OO,SUMBARS(DAYBARPOS=1,2)),COLORRED,NODRAW;ZD1:=REF(OO,SUMBARS(DAYBARPOS=1,2))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,2)),COLORGREEN,NODRAW;A2:=MAX(ZG1,ZD1);ZG2:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))-REF(OO,SUMBARS(DAYBARPOS=1,3)),COLORRED,NODRAW;ZD2:=REF(OO,SUMBARS(DAYBARPOS=1,3))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,3)),COLORGREEN,NODRAW;A3:=MAX(ZG2,ZD2);AA:=MIN1(A1,A2,A3);多单目标:REFX1((OO+AA),9999),COLORRED;空单目标:REFX1((OO-AA),9999),COLORGREEN;方向线:REFX1((OO),9999),COLORYELLOW;
XX:=BACKSET(ISLASTBAR,DAYBARPOS);
DD:CROSS(EVERY(ISUP&&L>方向线,2),0.5)&&XX,WORD(0,'',VALIGN0;KK:CROSS(EVERY(ISDOWN&&H<方向线,2),0.5)&&XX,WORD(1,'';
EVERY(ISDOWN,3)&&COUNT(EVERY(ISDOWN,3),BARSLAST(DD))=1,WORD(1,'多';EVERY(ISUP,3)&&COUNT(EVERY(ISUP,3),BARSLAST(KK))=1,WORD(1,'空';
文件名:4k5`ton)afb%z7%j77v6(y.png来源:程序化99
-
文华技术人员:
参考:
OO:=VALUEWHEN(DAYBARPOS=1,O); ZG:=REF(HHV(H,DAYBARPOS),DAYBARPOS)-REF(OO,DAYBARPOS),COLORRED,NODRAW; ZD:=REF(OO,DAYBARPOS)-REF(LLV(L,DAYBARPOS),DAYBARPOS),COLORGREEN,NODRAW; A1:=MAX(ZG,ZD); ZG1:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))-REF(OO,SUMBARS(DAYBARPOS=1,2)),COLORRED,NODRAW; ZD1:=REF(OO,SUMBARS(DAYBARPOS=1,2))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,2)),COLORGREEN,NODRAW; A2:=MAX(ZG1,ZD1); ZG2:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))-REF(OO,SUMBARS(DAYBARPOS=1,3)),COLORRED,NODRAW; ZD2:=REF(OO,SUMBARS(DAYBARPOS=1,3))-REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,3)),COLORGREEN,NODRAW; A3:=MAX(ZG2,ZD2); AA:=MIN1(A1,A2,A3); 多单目标:REFX1((OO+AA),9999),COLORRED; DRAWNUMBER(ISLASTBAR,多单目标,多单目标,0,COLORRED),VALIGN1,ALIGN0; 空单目标:REFX1((OO-AA),9999),COLORGREEN; DRAWNUMBER(ISLASTBAR,空单目标,空单目标,0,COLORGREEN),VALIGN1,ALIGN0;
方向线:REFX1((OO),9999),COLORYELLOW; DRAWNUMBER(ISLASTBAR,方向线,方向线,0,COLORYELLOW),VALIGN1,ALIGN0;
XX:=BACKSET(ISLASTBAR,DAYBARPOS);
DD:CROSS(EVERY(ISUP&&L>方向线,2),0.5)&&XX,WORD(0,'',VALIGN0; KK:CROSS(EVERY(ISDOWN&&H<方向线,2),0.5)&&XX,WORD(1,'';
EVERY(ISDOWN,3)&&COUNT(EVERY(ISDOWN,3),BARSLAST(DD))=1,WORD(1,'多'; EVERY(ISUP,3)&&COUNT(EVERY(ISUP,3),BARSLAST(KK))=1,WORD(1,'空';
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容