请老师帮修改下副图指标 [博易POBO]
咨询内容:
Y:=(HIGH+LOW)/2;
AO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AO,1);
STICKLINE(AO>AO1,0,AO,COLORRED,0);
STICKLINE(AO<AO1,0,AO,COLORYELLOW,0);
S1:=CROSS(0,AO); //
DRAWICON(S1,AO,5),ALIGN0;
DRAWTEXT(S1,AO,'S'),COLORWHITE;
S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);
DRAWTEXT(S2,AO,'S'),COLORWHITE;
SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;
SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;
SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;
S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件;
S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;
DRAWTEXT(S31>=2 AND S3,AO,'S'),COLORWHITE;
B1:=CROSS(AO,0);
DRAWTEXT(B1,AO,'B'),COLORWHITE;
B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;
DRAWTEXT(B2,AO,'B'),COLORWHITE;
BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;
BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;
BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;
B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件;
B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数;
DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE;
AO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AO,1);
STICKLINE(AO>AO1,0,AO,10,0),COLORRED;
STICKLINE(AO<AO1,0,AO,10,0),COLORYELLOW;
S1:=CROSS(0,AO); //
DRAWICON(S1,AO,5),ALIGN0;
DRAWTEXT(S1,AO,'S'),COLORWHITE;
S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);
DRAWTEXT(S2,AO,'S'),COLORWHITE;
SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;
SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;
SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;
S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件;
S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;
DRAWTEXT(S31>=2 AND S3,AO,'S'),COLORWHITE;
B1:=CROSS(AO,0);
DRAWTEXT(B1,AO,'B'),COLORWHITE;
B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;
DRAWTEXT(B2,AO,'B'),COLORWHITE;
BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;
BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;
BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;
B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件;
B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数;
DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE; 来源 程序化久久网
请老师帮修改下副图指标
Y:=(HIGH+LOW)/2;
AO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AO,1);
STICKLINE(AO>AO1,0,AO,COLORRED,0);
STICKLINE(AO<AO1,0,AO,COLORYELLOW,0);
S1:=CROSS(0,AO); //
DRAWICON(S1,AO,5),ALIGN0;
DRAWTEXT(S1,AO,'S'),COLORWHITE;
S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);
DRAWTEXT(S2,AO,'S'),COLORWHITE;
SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;
SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;
SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;
S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件;
S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;
DRAWTEXT(S31>=2 AND S3,AO,'S'),COLORWHITE;
B1:=CROSS(AO,0);
DRAWTEXT(B1,AO,'B'),COLORWHITE;
B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;
DRAWTEXT(B2,AO,'B'),COLORWHITE;
BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;
BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;
BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;
B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件;
B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数;
DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: Y:=(HIGH+LOW)/2;AO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AO,1);
STICKLINE(AO>AO1,0,AO,10,0),COLORRED;
STICKLINE(AO<AO1,0,AO,10,0),COLORYELLOW;
S1:=CROSS(0,AO); //
DRAWICON(S1,AO,5),ALIGN0;
DRAWTEXT(S1,AO,'S'),COLORWHITE;
S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);
DRAWTEXT(S2,AO,'S'),COLORWHITE;
SCOUNT:=BARSLAST(AO<0);//上一次AO>0后到现在的周期数;
SD:=HHV(AO,SCOUNT);//求上面周期的最大AO;
SCOUNTD:=HHVBARS(AO,SCOUNT);//求最大值到现在的周期数;
S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);//满足峰的条件;
S31:=COUNT(S3,SCOUNTD);//满足上面条件的次数;
DRAWTEXT(S31>=2 AND S3,AO,'S'),COLORWHITE;
B1:=CROSS(AO,0);
DRAWTEXT(B1,AO,'B'),COLORWHITE;
B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;
DRAWTEXT(B2,AO,'B'),COLORWHITE;
BCOUNT:=BARSLAST(AO>0);//上一次AO>0后到现在的周期数;
BD:=LLV(AO,BCOUNT);//求上面周期的最小AO;
BCOUNTD:=LLVBARS(AO,BCOUNT);//求最小值到现在的周期数;
B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);//满足峰的条件;
B31:=COUNT(B3,BCOUNTD);//满足上面条件的次数;
DRAWTEXT(B31>=2 AND B3,AO,'B'),COLORWHITE; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容