请老师改成博易的代码 [博易POBO]
咨询内容:
请老师改成博易的代码
N:=20;
MA1:EMA(CLOSE,N),COLORBLACK,LINETHICK2;
AA:EVERY(C>MA1,2)||REF(EVERY(C>MA1,2),1)&&C<MA1||REF(EVERY(C>MA1,2),2)&&REF(C<MA1,1)&&C>MA1,NODRAW;
DRAWTEXT(COUNT(ISUP,BARSLAST(CROSS(AA,0.4))+1)=1&&ISUP&&EVERY(AA,BARSLAST(CROSS(AA,0.4))+1),H,'多'),COLORMAGENTA,FONTSIZE22;
BB:EVERY(C<MA1,2)||REF(EVERY(C<MA1,2),1)&&C>MA1||REF(EVERY(C<MA1,2),2)&&REF(C>MA1,1)&&C<MA1,NODRAW;
DRAWTEXT(COUNT(ISDOWN,BARSLAST(CROSS(BB,0.4))+1)=1&&ISDOWN&&EVERY(BB,BARSLAST(CROSS(BB,0.4))+1),H,'空'),COLORGREEN,FONTSIZE22;
IF(EVERY(C>MA1,2)||REF(EVERY(C>MA1,2),1)&&C<MA1||REF(EVERY(C>MA1,2),2)&&REF(C<MA1,1)&&C>MA1,MA1,NULL),COLORBLACK,LINETHICK2;
IF(EVERY(C<MA1,2)||REF(EVERY(C<MA1,2),1)&&C>MA1||REF(EVERY(C<MA1,2),2)&&REF(C>MA1,1)&&C<MA1,MA1,NULL),COLORBLACK,LINETHICK2;
MA1:EMA(CLOSE,N),COLORBLACK,LINETHICK2;
AA:COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C<MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C<MA1,1)&&C>MA1,NODRAW;
DRAWTEXT(COUNT(ISUP,BARSLAST(CROSS(AA,0.4))+1)=1&&ISUP&&COUNT(AA,BARSLAST(CROSS(AA,0.4))+1)=1,H,'多'),COLORMAGENTA,FONTSIZE22;
BB:COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C>MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C>MA1,1)&&C<MA1,NODRAW;
DRAWTEXT(COUNT(ISDOWN,BARSLAST(CROSS(BB,0.4))+1)=1&&ISDOWN&&COUNT(BB,BARSLAST(CROSS(BB,0.4))+1)=1,H,'空'),COLORGREEN,FONTSIZE22;
IF(COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C<MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C<MA1,1)&&C>MA1,MA1,DRAWNULL),COLORBLACK,LINETHICK2;
IF(COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C>MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C>MA1,1)&&C<MA1,MA1,DRAWNULL),COLORBLACK,LINETHICK2;
来源 程序化久久网
MA1:EMA(CLOSE,N),COLORBLACK,LINETHICK2;
AA:EVERY(C>MA1,2)||REF(EVERY(C>MA1,2),1)&&C<MA1||REF(EVERY(C>MA1,2),2)&&REF(C<MA1,1)&&C>MA1,NODRAW;
DRAWTEXT(COUNT(ISUP,BARSLAST(CROSS(AA,0.4))+1)=1&&ISUP&&EVERY(AA,BARSLAST(CROSS(AA,0.4))+1),H,'多'),COLORMAGENTA,FONTSIZE22;
BB:EVERY(C<MA1,2)||REF(EVERY(C<MA1,2),1)&&C>MA1||REF(EVERY(C<MA1,2),2)&&REF(C>MA1,1)&&C<MA1,NODRAW;
DRAWTEXT(COUNT(ISDOWN,BARSLAST(CROSS(BB,0.4))+1)=1&&ISDOWN&&EVERY(BB,BARSLAST(CROSS(BB,0.4))+1),H,'空'),COLORGREEN,FONTSIZE22;
IF(EVERY(C>MA1,2)||REF(EVERY(C>MA1,2),1)&&C<MA1||REF(EVERY(C>MA1,2),2)&&REF(C<MA1,1)&&C>MA1,MA1,NULL),COLORBLACK,LINETHICK2;
IF(EVERY(C<MA1,2)||REF(EVERY(C<MA1,2),1)&&C>MA1||REF(EVERY(C<MA1,2),2)&&REF(C>MA1,1)&&C<MA1,MA1,NULL),COLORBLACK,LINETHICK2;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: N:=20;MA1:EMA(CLOSE,N),COLORBLACK,LINETHICK2;
AA:COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C<MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C<MA1,1)&&C>MA1,NODRAW;
DRAWTEXT(COUNT(ISUP,BARSLAST(CROSS(AA,0.4))+1)=1&&ISUP&&COUNT(AA,BARSLAST(CROSS(AA,0.4))+1)=1,H,'多'),COLORMAGENTA,FONTSIZE22;
BB:COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C>MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C>MA1,1)&&C<MA1,NODRAW;
DRAWTEXT(COUNT(ISDOWN,BARSLAST(CROSS(BB,0.4))+1)=1&&ISDOWN&&COUNT(BB,BARSLAST(CROSS(BB,0.4))+1)=1,H,'空'),COLORGREEN,FONTSIZE22;
IF(COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C<MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C<MA1,1)&&C>MA1,MA1,DRAWNULL),COLORBLACK,LINETHICK2;
IF(COUNT(C>MA1,2)=1||REF(COUNT(C>MA1,2)=1,1)&&C>MA1||REF(COUNT(C>MA1,2)=1,2)&&REF(C>MA1,1)&&C<MA1,MA1,DRAWNULL),COLORBLACK,LINETHICK2;
来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容