请老师帮忙修改 [博易POBO]
咨询内容:
T:=10;
M1:MA(C,N);
DRAWCOLORLINE(C>M1,M1,COLORRED,COLORGREEN),LINETHICK3;
HPB:=REF(HHV(H,N),1);
LPB:=REF(LLV(L,T),1);
{多头交易}
BUYIN:=H>HPB AND C>M1;
BUYEXIT:=L<LPB;
SINGAL: =IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN: =REF(SINGAL ,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,NULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,NULL),COLORRED,LINETHICK2;
信 号 持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COL ORMAGENTA;
DRAWICON(BARSL AST(DWTREND)=1,多止,1);
DRAWICON(BARSL AST(UPTREND)=1,空平,2);
DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);
T:=10;
M1:MA(C,N);
PARTLINE2(M1,C>M1,COLORRED,C<M1,COLORGREEN),LINETHICK3;
HPB:=REF(HHV(H,N),1);
LPB:=REF(LLV(L,T),1);
{多头交易}
BUYIN:=H>HPB AND C>M1;
BUYEXIT:=L<LPB;
SINGAL:=IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN:=REF(SINGAL ,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,DRAWNULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,DRAWNULL),COLORRED,LINETHICK2;
信号持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COLORMAGENTA;
DRAWICON(BARSLAST(DWTREND)=1,多止,1);
DRAWICON(BARSLAST(UPTREND)=1,空平,2);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 来源 程序化久久网
请老师帮忙修改
N:=20;T:=10;
M1:MA(C,N);
DRAWCOLORLINE(C>M1,M1,COLORRED,COLORGREEN),LINETHICK3;
HPB:=REF(HHV(H,N),1);
LPB:=REF(LLV(L,T),1);
{多头交易}
BUYIN:=H>HPB AND C>M1;
BUYEXIT:=L<LPB;
SINGAL: =IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN: =REF(SINGAL ,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,NULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,NULL),COLORRED,LINETHICK2;
信 号 持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COL ORMAGENTA;
DRAWICON(BARSL AST(DWTREND)=1,多止,1);
DRAWICON(BARSL AST(UPTREND)=1,空平,2);
DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: N:=20;T:=10;
M1:MA(C,N);
PARTLINE2(M1,C>M1,COLORRED,C<M1,COLORGREEN),LINETHICK3;
HPB:=REF(HHV(H,N),1);
LPB:=REF(LLV(L,T),1);
{多头交易}
BUYIN:=H>HPB AND C>M1;
BUYEXIT:=L<LPB;
SINGAL:=IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN:=REF(SINGAL ,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,DRAWNULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,DRAWNULL),COLORRED,LINETHICK2;
信号持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COLORMAGENTA;
DRAWICON(BARSLAST(DWTREND)=1,多止,1);
DRAWICON(BARSLAST(UPTREND)=1,空平,2);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容