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

,老师帮忙指标修改 [博易POBO]

咨询内容: ,老师帮忙指标修改 TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
A1:=(REF(HDA,1) = (HHV(TYA,((2 * N) + 0))));
A2:=(REF(LDA,1) = (LLV(TYA,((2 * N) + 0))));
A:=(REF(HDA,BARSLAST(A1)));
B:=(REF(LDA,BARSLAST(A2)));
T1:=((BARSLAST(A1) < BARSLAST(A2)) AND (NOT(A1)));
T2:=((BARSLAST(A1) > BARSLAST(A2)) AND (NOT(A2)));
BF:=IF(T1,A,A);
HH:=MA(BF,1);
BG:=IF(T2,B,B);
LL:=MA(BG,1);
HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
PARTLINE((HH1 < LL1),LL,COLORRED);
PARTLINE((HH1 > LL1),HH,COLORGREEN);
DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;

 

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

博易技术人员: n=300
TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
A1:=(REF(HDA,1) = (HHV(TYA,((2 * N) + 0))));
A2:=(REF(LDA,1) = (LLV(TYA,((2 * N) + 0))));
A:=(REF(HDA,BARSLAST(A1)));
B:=(REF(LDA,BARSLAST(A2)));
T1:=((BARSLAST(A1) < BARSLAST(A2)) AND (NOT(A1)));
T2:=((BARSLAST(A1) > BARSLAST(A2)) AND (NOT(A2)));
BF:=IF(T1,A,A);
HH:=MA(BF,1);
BG:=IF(T2,B,B);
LL:=MA(BG,1);
HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
PARTLINE((HH1 < LL1),LL),COLORRED;
PARTLINE((HH1 > LL1),HH),COLORGREEN;
DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;
这个公式意义不大 谢谢 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容