老师帮忙一下 [博易POBO]
咨询内容:
XG1:=HIGH>=HHV(HIGH,10);
XD1:=LOW<=LLV(LOW,3);
XG2:=HIGH>=HHV(HIGH,3);
XD2:=LOW<=LLV(LOW,10);
XG1JL:=BARSLAST(XG1);
XD1JL:=BARSLAST(XD1);
XG2JL:=BARSLAST(XG2);
XD2JL:=BARSLAST(XD2);
XG1FZ:=BACKSET(XD1,XG1JL+1);
XD1FZ:=BACKSET(XG1 OR (ISLASTBAR AND XD1JL<XG1JL),XD1JL+1);
XD2FZ:=BACKSET(XG2,XD2JL+1);
XG2FZ:=BACKSET(XD2 OR (ISLASTBAR AND XG2JL<XD2JL),XG2JL+1);
XG1FH:=XG1FZ=1 AND XG1;
XD1FH:=XD1FZ=1 AND XD1;
XD2FH:=XD2FZ=1 AND XD2;
XG2FH:=XG2FZ=1 AND XG2;
DRAWLINE(XG1FH AND REFX(XG1FH,1)=0,HIGH,XD1FH,HHV(HIGH,3),0),COLORBLUE,LINETHICK2;
DRAWLINE(XD2FH AND REFX(XD2FH,1)=0,LOW,XG2FH,LLV(LOW,3),0),COLOR0099FF,LINETHICK2;
S1JL:=BARSLAST(XD1FH);
S2JL:=BARSLAST(XG1FH);
S1BS:=(HHV(H,3)-REF(H,S2JL))/S2JL;
PARTLINE(S1JL<S2JL AND S1JL>0,S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),LINETHICK2,COLORBLUE;
U1JL:=BARSLAST(XG2FH);
U2JL:=BARSLAST(XD2FH);
U1BS:=(LLV(LOW,3)-REF(L,U2JL))/U2JL;
PARTLINE(U1JL>0 AND U1JL<U2JL,U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),LINETHICK2,COLOR0099FF;
XG1ZHG:=BACKSET(ISLASTBAR,S2JL+1);
XD2ZHG:=BACKSET(ISLASTBAR,U2JL+1);
下降压力线:=IF(S2JL=0,HHV(H,3),S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),COLORBLUE,LINETHICK2;
上升支撑线:=IF(U2JL=0,LLV(L,3),U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),COLOR0099FF,LINETHICK2;
DRAWNUMBER(ISLASTBAR,下降压力线,下降压力线,1),COLORBLUE;
DRAWNUMBER(ISLASTBAR,上升支撑线,上升支撑线,2),COLOR0099FF
XD1:=LOW<=LLV(LOW,3);
XG2:=HIGH>=HHV(HIGH,3);
XD2:=LOW<=LLV(LOW,10);
XG1JL:=BARSLAST(XG1);
XD1JL:=BARSLAST(XD1);
XG2JL:=BARSLAST(XG2);
XD2JL:=BARSLAST(XD2);
XG1FZ:=BACKSET(XD1,XG1JL+1);
XD1FZ:=BACKSET(XG1 OR (ISLASTBAR AND XD1JL<XG1JL),XD1JL+1);
XD2FZ:=BACKSET(XG2,XD2JL+1);
XG2FZ:=BACKSET(XD2 OR (ISLASTBAR AND XG2JL<XD2JL),XG2JL+1);
XG1FH:=XG1FZ=1 AND XG1;
XD1FH:=XD1FZ=1 AND XD1;
XD2FH:=XD2FZ=1 AND XD2;
XG2FH:=XG2FZ=1 AND XG2;
DRAWLINE(XG1FH AND REFX(XG1FH,1)=0,HIGH,XD1FH,HHV(HIGH,3),0),COLORBLUE,LINETHICK2;
DRAWLINE(XD2FH AND REFX(XD2FH,1)=0,LOW,XG2FH,LLV(LOW,3),0),COLOR0099FF,LINETHICK2;
PARTLINE(XG1FH AND REFX(XG1FH,1)=0,H),CIRCLEDOT,LINETHICK8,COLORBLUE;
PARTLINE(XD2FH AND REFX(XD2FH,1)=0,L),CIRCLEDOT,LINETHICK8,COLOR0099FF;
S1JL:=BARSLAST(XD1FH);
S2JL:=BARSLAST(XG1FH);
S1BS:=(HHV(H,3)-REF(H,S2JL))/S2JL;
PARTLINE(S1JL<S2JL AND S1JL>0,S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),LINETHICK2,COLORBLUE;
U1JL:=BARSLAST(XG2FH);
U2JL:=BARSLAST(XD2FH);
U1BS:=(LLV(LOW,3)-REF(L,U2JL))/U2JL;
PARTLINE(U1JL>0 AND U1JL<U2JL,U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),LINETHICK2,COLOR0099FF;
XG1ZHG:=BACKSET(ISLASTBAR,S2JL+1);
XD2ZHG:=BACKSET(ISLASTBAR,U2JL+1);
下降压力线:=IF(S2JL=0,HHV(H,3),S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),COLORBLUE,LINETHICK2;
上升支撑线:=IF(U2JL=0,LLV(L,3),U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),COLOR0099FF,LINETHICK2;
DRAWNUMBER(ISLASTBAR,下降压力线,下降压力线,1),COLORBLUE;
DRAWNUMBER(ISLASTBAR,上升支撑线,上升支撑线,2),COLOR0099FF 来源 程序化久久网
老师帮忙一下
帮忙把开始的圆点搞大一点,但线不要变粗XG1:=HIGH>=HHV(HIGH,10);
XD1:=LOW<=LLV(LOW,3);
XG2:=HIGH>=HHV(HIGH,3);
XD2:=LOW<=LLV(LOW,10);
XG1JL:=BARSLAST(XG1);
XD1JL:=BARSLAST(XD1);
XG2JL:=BARSLAST(XG2);
XD2JL:=BARSLAST(XD2);
XG1FZ:=BACKSET(XD1,XG1JL+1);
XD1FZ:=BACKSET(XG1 OR (ISLASTBAR AND XD1JL<XG1JL),XD1JL+1);
XD2FZ:=BACKSET(XG2,XD2JL+1);
XG2FZ:=BACKSET(XD2 OR (ISLASTBAR AND XG2JL<XD2JL),XG2JL+1);
XG1FH:=XG1FZ=1 AND XG1;
XD1FH:=XD1FZ=1 AND XD1;
XD2FH:=XD2FZ=1 AND XD2;
XG2FH:=XG2FZ=1 AND XG2;
DRAWLINE(XG1FH AND REFX(XG1FH,1)=0,HIGH,XD1FH,HHV(HIGH,3),0),COLORBLUE,LINETHICK2;
DRAWLINE(XD2FH AND REFX(XD2FH,1)=0,LOW,XG2FH,LLV(LOW,3),0),COLOR0099FF,LINETHICK2;
S1JL:=BARSLAST(XD1FH);
S2JL:=BARSLAST(XG1FH);
S1BS:=(HHV(H,3)-REF(H,S2JL))/S2JL;
PARTLINE(S1JL<S2JL AND S1JL>0,S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),LINETHICK2,COLORBLUE;
U1JL:=BARSLAST(XG2FH);
U2JL:=BARSLAST(XD2FH);
U1BS:=(LLV(LOW,3)-REF(L,U2JL))/U2JL;
PARTLINE(U1JL>0 AND U1JL<U2JL,U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),LINETHICK2,COLOR0099FF;
XG1ZHG:=BACKSET(ISLASTBAR,S2JL+1);
XD2ZHG:=BACKSET(ISLASTBAR,U2JL+1);
下降压力线:=IF(S2JL=0,HHV(H,3),S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),COLORBLUE,LINETHICK2;
上升支撑线:=IF(U2JL=0,LLV(L,3),U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),COLOR0099FF,LINETHICK2;
DRAWNUMBER(ISLASTBAR,下降压力线,下降压力线,1),COLORBLUE;
DRAWNUMBER(ISLASTBAR,上升支撑线,上升支撑线,2),COLOR0099FF
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: XG1:=HIGH>=HHV(HIGH,10);XD1:=LOW<=LLV(LOW,3);
XG2:=HIGH>=HHV(HIGH,3);
XD2:=LOW<=LLV(LOW,10);
XG1JL:=BARSLAST(XG1);
XD1JL:=BARSLAST(XD1);
XG2JL:=BARSLAST(XG2);
XD2JL:=BARSLAST(XD2);
XG1FZ:=BACKSET(XD1,XG1JL+1);
XD1FZ:=BACKSET(XG1 OR (ISLASTBAR AND XD1JL<XG1JL),XD1JL+1);
XD2FZ:=BACKSET(XG2,XD2JL+1);
XG2FZ:=BACKSET(XD2 OR (ISLASTBAR AND XG2JL<XD2JL),XG2JL+1);
XG1FH:=XG1FZ=1 AND XG1;
XD1FH:=XD1FZ=1 AND XD1;
XD2FH:=XD2FZ=1 AND XD2;
XG2FH:=XG2FZ=1 AND XG2;
DRAWLINE(XG1FH AND REFX(XG1FH,1)=0,HIGH,XD1FH,HHV(HIGH,3),0),COLORBLUE,LINETHICK2;
DRAWLINE(XD2FH AND REFX(XD2FH,1)=0,LOW,XG2FH,LLV(LOW,3),0),COLOR0099FF,LINETHICK2;
PARTLINE(XG1FH AND REFX(XG1FH,1)=0,H),CIRCLEDOT,LINETHICK8,COLORBLUE;
PARTLINE(XD2FH AND REFX(XD2FH,1)=0,L),CIRCLEDOT,LINETHICK8,COLOR0099FF;
S1JL:=BARSLAST(XD1FH);
S2JL:=BARSLAST(XG1FH);
S1BS:=(HHV(H,3)-REF(H,S2JL))/S2JL;
PARTLINE(S1JL<S2JL AND S1JL>0,S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),LINETHICK2,COLORBLUE;
U1JL:=BARSLAST(XG2FH);
U2JL:=BARSLAST(XD2FH);
U1BS:=(LLV(LOW,3)-REF(L,U2JL))/U2JL;
PARTLINE(U1JL>0 AND U1JL<U2JL,U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),LINETHICK2,COLOR0099FF;
XG1ZHG:=BACKSET(ISLASTBAR,S2JL+1);
XD2ZHG:=BACKSET(ISLASTBAR,U2JL+1);
下降压力线:=IF(S2JL=0,HHV(H,3),S1JL*REF(S1BS,S1JL)+REF(HHV(H,3),S1JL)),COLORBLUE,LINETHICK2;
上升支撑线:=IF(U2JL=0,LLV(L,3),U1JL*REF(U1BS,U1JL)+REF(LLV(LOW,3),U1JL)),COLOR0099FF,LINETHICK2;
DRAWNUMBER(ISLASTBAR,下降压力线,下降压力线,1),COLORBLUE;
DRAWNUMBER(ISLASTBAR,上升支撑线,上升支撑线,2),COLOR0099FF 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容