55均线改为PUBU中的P6线 [文华财经]
-
咨询内容:
YY:=H>REF(H,1)&&L>=REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISUP;GG:=H<=REF(H,1)&&L<REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISDOWN;DRAWCOLORKLINE(H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)<BARSLAST(GG),COLORRED,0);DRAWCOLORKLINE(H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)>BARSLAST(GG),COLORCYAN,0);MA55:MA(C,55);A:(H>REF(H,1)&&L>=REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISUP||H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)<BARSLAST(GG))&&H>MA55,NODRAW;AA:(H<=REF(H,1)&&L<REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISDOWN||H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)>BARSLAST(GG))&&L<MA55,NODRAW;
X:=A&&SUM(A,BARSLAST(AA))=1;XX:=AA&&SUM(AA,BARSLAST(A))=1;DRAWLINE3(X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),XX||ISLASTBAR,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),0),COLORMAGENTA,LINETHICK2;DRAWLINE3(XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),X||ISLASTBAR,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),0),COLORGREEN,LINETHICK2;
X1:=BARSLAST(X)+1;X2:=BARSLAST(XX)+1;P1:=BACKSET(ISLASTBAR&&X1<X2,X1);P2:=BACKSET(ISLASTBAR&&X1>=X2,X2);DRAWICON(P1>REF(P1,1),H,4);DRAWICON(P2>REF(P2,1),H,5);REF(A&&SUM(A,BARSLAST(AA))=1,1),SOUND('A');REF(AA&&SUM(AA,BARSLAST(A))=1,1),SOUND('B');DRAWLINE3(X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1)-6,0),COLORRED,DOT;DRAWLINE3(XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1)-6,0),COLORGREEN,DOT;LX1:=VALUEWHEN(X,LLV(L,BARSLAST(XX)+1));LX2:=VALUEWHEN(X,REF(LX1,1));HX1:=VALUEWHEN(XX,HHV(H,BARSLAST(X)+1));HX2:=VALUEWHEN(XX,REF(HX1,1));DRAWLINE3(X&&LX1>=LX2,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1)-6,0),COLORRED;DRAWLINE3(XX&&HX1>=HX2,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1)-6,0),COLORGREEN;HH:=VALUEWHEN(XX,HHV(H,BARSLAST(X)+1));LL:=VALUEWHEN(X, LLV(L,BARSLAST(XX)+1));老师将55均线改为PUBU中的P6线来源:程序化99
-
文华技术人员:
参考:
N:=5;
YY:=H>REF(H,1)&&L>=REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISUP; GG:=H<=REF(H,1)&&L<REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISDOWN; DRAWCOLORKLINE(H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)<BARSLAST(GG),COLORRED,0); DRAWCOLORKLINE(H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)>BARSLAST(GG),COLORCYAN,0); MA55:(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3; A:(H>REF(H,1)&&L>=REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISUP||H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)<BARSLAST(GG))&&H>MA55,NODRAW; AA:(H<=REF(H,1)&&L<REF(L,1)||H>REF(H,1)&&L<REF(L,1)&&ISDOWN||H>REF(H,1)&&L<REF(L,1)&&ISEQUAL&&BARSLAST(YY)>BARSLAST(GG))&&L<MA55,NODRAW;
X:=A&&SUM(A,BARSLAST(AA))=1; XX:=AA&&SUM(AA,BARSLAST(A))=1; DRAWLINE3(X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),XX||ISLASTBAR,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),0),COLORMAGENTA,LINETHICK2; DRAWLINE3(XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),X||ISLASTBAR,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),0),COLORGREEN,LINETHICK2;
X1:=BARSLAST(X)+1; X2:=BARSLAST(XX)+1; P1:=BACKSET(ISLASTBAR&&X1<X2,X1); P2:=BACKSET(ISLASTBAR&&X1>=X2,X2); DRAWICON(P1>REF(P1,1),H,4); DRAWICON(P2>REF(P2,1),H,5); REF(A&&SUM(A,BARSLAST(AA))=1,1),SOUND(''; REF(AA&&SUM(AA,BARSLAST(A))=1,1),SOUND(''; DRAWLINE3(X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1)-6,0),COLORRED,DOT; DRAWLINE3(XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1)-6,0),COLORGREEN,DOT; LX1:=VALUEWHEN(X,LLV(L,BARSLAST(XX)+1)); LX2:=VALUEWHEN(X,REF(LX1,1)); HX1:=VALUEWHEN(XX,HHV(H,BARSLAST(X)+1)); HX2:=VALUEWHEN(XX,REF(HX1,1)); DRAWLINE3(X&&LX1>=LX2,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1),X,LLV(L,BARSLAST(XX)+1),LLVBARS(L,BARSLAST(XX)+1)-6,0),COLORRED; DRAWLINE3(XX&&HX1>=HX2,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1),XX,HHV(H,BARSLAST(X)+1),HHVBARS(H,BARSLAST(X)+1)-6,0),COLORGREEN; HH:=VALUEWHEN(XX,HHV(H,BARSLAST(X)+1)); LL:=VALUEWHEN(X, LLV(L,BARSLAST(XX)+1));
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容