请老师帮助 [博易POBO]
咨询内容:
HH:=HHV(H,N);
LL:=LLV(L,N);
M1:HHVBARS(H,N),NODRAW;
M2:LLVBARS(L,N),NODRAW;
S0:BACKSET(H=HH,N),NODRAW;
S1:=BARSLAST(CROSS(S0,0.5));
Q:BACKSET(L=LL,N),NODRAW;
Q1:=BARSLAST(CROSS(Q,0.5));
DRAWLINE(REFX(N<REF(N,1),1),HH,1,LL,RGB(128,128,64));
DRAWSL(REFX(N<REF(N,1),1)||ISLASTBAR,HH,0,-N+1,0,RGB(128,128,64));
DRAWSL(REFX(N<REF(N,1),1)||ISLASTBAR,LL,0,-N+1,0,RGB(128,128,64));
DRAWLINE3(H=HH&&M1<M2,HH,S1,1,LL,S1,0),RGB(128,128,64);
DRAWLINE3(L=LL&&M1>M2,HH,Q1,1,LL,Q1,0),RGB(128,128,64);
DRAWNUMBER(ISLASTBAR||REFX(N<REF(N,1),1),HH,HH-LL,2,RGB(128,128,128));
DRAWSL(ISLASTBAR,HH,0,-N+1,0,RGB(128,128,64)),COLOR008800,LINETHICK4;
DRAWSL(ISLASTBAR,LL,0,-N+1,0,RGB(128,128,64)),COLOR008800,LINETHICK4;
A01:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;
VAR1:FORCAST(A01,6),LINETHICK5,COLORRED;
IF(VAR1<REF(VAR1,1),VAR1,NULL),LINETHICK5,COLOR006666;
N0:=10;
X:=2*EMA2(C,ROUND(N0/2,0))-EMA2(C,N0);
HULLMA:EMA2(X,ROUND(SQRT(N0),0)),COLORWHITE,LINETHICK4;
DRAWCOLORLINE(HULLMA>REF(HULLMA,1),HULLMA,COLORCC2222,COLORFFFFFF),LINETHICK4;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1,NODRAW;
N2:=BARSLAST(SC)+1,NODRAW;
NN1:=HHVBARS(H,N1),NODRAW;
A1:=BACKSET(JC,LLVBARS(L,N2)+1);
B1:=BACKSET(SC,HHVBARS(H,N1)+1);
DRAWHORIZONTALLINE(CROSS(A1,0.5),L,COLORRED);
DRAWHORIZONTALLINE(CROSS(B1,0.5),H,COLORLIGHTGREEN);
请老师帮助
N:BARSLAST(DATE<>REF(DATE,1))+1,NODRAW;HH:=HHV(H,N);
LL:=LLV(L,N);
M1:HHVBARS(H,N),NODRAW;
M2:LLVBARS(L,N),NODRAW;
S0:BACKSET(H=HH,N),NODRAW;
S1:=BARSLAST(CROSS(S0,0.5));
Q:BACKSET(L=LL,N),NODRAW;
Q1:=BARSLAST(CROSS(Q,0.5));
DRAWLINE(REFX(N<REF(N,1),1),HH,1,LL,RGB(128,128,64));
DRAWSL(REFX(N<REF(N,1),1)||ISLASTBAR,HH,0,-N+1,0,RGB(128,128,64));
DRAWSL(REFX(N<REF(N,1),1)||ISLASTBAR,LL,0,-N+1,0,RGB(128,128,64));
DRAWLINE3(H=HH&&M1<M2,HH,S1,1,LL,S1,0),RGB(128,128,64);
DRAWLINE3(L=LL&&M1>M2,HH,Q1,1,LL,Q1,0),RGB(128,128,64);
DRAWNUMBER(ISLASTBAR||REFX(N<REF(N,1),1),HH,HH-LL,2,RGB(128,128,128));
DRAWSL(ISLASTBAR,HH,0,-N+1,0,RGB(128,128,64)),COLOR008800,LINETHICK4;
DRAWSL(ISLASTBAR,LL,0,-N+1,0,RGB(128,128,64)),COLOR008800,LINETHICK4;
A01:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;
VAR1:FORCAST(A01,6),LINETHICK5,COLORRED;
IF(VAR1<REF(VAR1,1),VAR1,NULL),LINETHICK5,COLOR006666;
N0:=10;
X:=2*EMA2(C,ROUND(N0/2,0))-EMA2(C,N0);
HULLMA:EMA2(X,ROUND(SQRT(N0),0)),COLORWHITE,LINETHICK4;
DRAWCOLORLINE(HULLMA>REF(HULLMA,1),HULLMA,COLORCC2222,COLORFFFFFF),LINETHICK4;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1,NODRAW;
N2:=BARSLAST(SC)+1,NODRAW;
NN1:=HHVBARS(H,N1),NODRAW;
A1:=BACKSET(JC,LLVBARS(L,N2)+1);
B1:=BACKSET(SC,HHVBARS(H,N1)+1);
DRAWHORIZONTALLINE(CROSS(A1,0.5),L,COLORRED);
DRAWHORIZONTALLINE(CROSS(B1,0.5),H,COLORLIGHTGREEN);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,此类公式无法修改,很多函数无对应函数。 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容