您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

请老师调整一下 [博易POBO]

咨询内容:

请老师调整一下

N1:=5;
N2:=10;

LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;

VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);

JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
SCJL:=BARSLAST(CROSS(MA13,MA5))+1;

JCZGJL:=HHVBARS(H,JCJL)+1;
SCZDJL:=LLVBARS(L,SCJL)+1;

JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);

JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
SCZDFH:=SCZDFZ>REF(SCZDFZ,1);



//DRAWLINE(SCZDFH,L,JCZGFH,H,0);
//DRAWLINE(JCZGFH,H,SCZDFH,L,0);

ZGFHJL:=BARSLAST(JCZGFH);
ZDFHJL:=BARSLAST(SCZDFH);

BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);

STICKLINE(ZDFHJL<ZGFHJL,0,1.5,9,0),COLORRED;
STICKLINE(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,1.5,9,0),COLORGREEN;
STICKLINE(BT,0,6,2,0),COLORRED;
STICKLINE(BT,0,6,1,0),COLORRED;
STICKLINE(BT,0,6,0.22,0),COLORRED;
DRAWTEXT(BT,6,'短牛'),COLORYELLOW,FONTSIZE10;

TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,0,6,3,0),COLORF20079;
STICKLINE(TJ1,0,6,1.5,0),COLORMAGENTA;
STICKLINE(TJ1,0,6,0.8,0),COLORMAGENTA;
STICKLINE(TJ1,0,6,0.2,0),COLORFF59AC;
DRAWTEXT(TJ1,6,'中牛'),COLORFF00FF,FONTSIZE10;

HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(SCZDFH,1) AND C<HRY33;
STICKLINE(TJ2,20,6,5,0),COLOR00CACA;
STICKLINE(TJ2,20,6,2,0),COLOR00E8E8;
STICKLINE(TJ2,20,6,1,0),COLORYELLOW;
STICKLINE(TJ2,20,6,9,0),COLORYELLOW;
DRAWTEXT(TJ2,16,'大牛'),COLORYELLOW,FONTSIZE10;

ST:=REF(JCZGFH,1);
STICKLINE(ST,20,9,5,0),COLOR008800;
STICKLINE(ST,20,9,2,0),COLOR00AA00;
STICKLINE(ST,20,9,1,0),COLOR00CC00;
STICKLINE(ST,20,9,9,0),COLORFFFFFF;
DRAWTEXT(ST,100,'卖'),COLORFFFFFF,FONTSIZE10,VALIGN0;



尖顶做多: ZIG(3,0.1)>REF(ZIG(3,0.1),1) AND REF(ZIG(3,0.1),1)<REF(ZIG
(3,0.1),2), COLORRED,LINETHICK2;
尖顶做空: ZIG(3,0.1)<REF(ZIG(3,0.1),1) AND REF(ZIG(3,0.1),1)>REF(ZIG
(3,0.1),2),COLORGREEN,LINETHICK2;
DRAWTEXT(尖顶做多=1,0.8,'做多'),COLORRED;
DRAWTEXT(尖顶做空=1,0.8,'做空'),COLORGREEN;

做多做空咋压缩了

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: N1:=5;
 N2:=10;

 LC:=REF(CLOSE,1);
 RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
 RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;

 VAR1:=C-REF(C,1);
 VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
 MA5:=EMA(C,5);
 MA13:=EMA(C,13);

 JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
 SCJL:=BARSLAST(CROSS(MA13,MA5))+1;

 JCZGJL:=HHVBARS(H,JCJL)+1;
 SCZDJL:=LLVBARS(L,SCJL)+1;

 JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
 SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);

 JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
 SCZDFH:=SCZDFZ>REF(SCZDFZ,1);




 //DRAWLINE(SCZDFH,L,JCZGFH,H,0);
 //DRAWLINE(JCZGFH,H,SCZDFH,L,0);

 ZGFHJL:=BARSLAST(JCZGFH);
 ZDFHJL:=BARSLAST(SCZDFH);

 BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);

 STICKLINE(ZDFHJL<ZGFHJL,0,1.5,9,0),COLORRED;
 STICKLINE(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,1.5,9,0),COLORGREEN;
 STICKLINE(BT,0,16,8,0),COLORRED;
 STICKLINE(BT,0,16,8,0),COLORRED;
 STICKLINE(BT,0,16,5,0),COLORRED;
 DRAWTEXT(BT,6,'短牛'),COLORYELLOW,FONTSIZE10;

 TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
 STICKLINE(TJ1,0,16,8,0),COLORF20079;
 STICKLINE(TJ1,0,16,5,0),COLORMAGENTA;
 STICKLINE(TJ1,0,16,3,0),COLORMAGENTA;
 STICKLINE(TJ1,0,16,3,0),COLORFF59AC;
 DRAWTEXT(TJ1,6,'中牛'),COLORFF00FF,FONTSIZE10;

 HR:=HHV(HIGH,55);
 HRY:=LLV(LOW,55);
 HRY11:=HR*HRY;
 HRY33:=SQRT(HRY11);
 TJ2:=REF(SCZDFH,1) AND C<HRY33;
 STICKLINE(TJ2,20,6,5,0),COLOR00CACA;
 STICKLINE(TJ2,20,6,2,0),COLOR00E8E8;
 STICKLINE(TJ2,20,6,1,0),COLORYELLOW;
 STICKLINE(TJ2,20,6,9,0),COLORYELLOW;
 DRAWTEXT(TJ2,16,'大牛'),COLORYELLOW,FONTSIZE10;

 ST:=REF(JCZGFH,1);
 STICKLINE(ST,20,9,5,0),COLOR008800;
 STICKLINE(ST,20,9,2,0),COLOR00AA00;
 STICKLINE(ST,20,9,1,0),COLOR00CC00;
 STICKLINE(ST,20,9,9,0),COLORFFFFFF;
 DRAWTEXT(ST,50,'卖'),COLORFFFFFF,FONTSIZE10,VALIGN0;




尖顶做多:= ZIG(3,0.1)>REF(ZIG(3,0.1),1) AND REF(ZIG(3,0.1),1)<REF(ZIG
 (3,0.1),2), COLORRED,LINETHICK2;
尖顶做空:= ZIG(3,0.1)<REF(ZIG(3,0.1),1) AND REF(ZIG(3,0.1),1)>REF(ZIG
 (3,0.1),2),COLORGREEN,LINETHICK2;
 DRAWTEXT(尖顶做多=1,10,'做多'),COLORRED;
 DRAWTEXT(尖顶做空=1,10,'做空'),COLORGREEN; 谢谢老师,图中咋没有显示三角
来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容