老师,请修改一下! [博易POBO]
咨询内容:
TT_CLOSE:= STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:= INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN;
TT_CLOSE:= STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:= INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN; TT_CLOSE:=STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:=INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN;
DRAWNUMBER(ISLASTBAR,ZX1,ZX1,0),ALIGN0,COLORWHITE;
DRAWNUMBER(ISLASTBAR,R11,R11,0),ALIGN0,COLORRED;
DRAWNUMBER(ISLASTBAR,S11,S11,0),ALIGN0,COLORGREEN; 来源 程序化久久网
老师,请修改一下!
老师,你好!请在以下指标中的红、白、绿3色横线的最右边价格对应横线的价格,谢谢老师。TT_CLOSE:= STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:= INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 老师,你好!请在以下指标中的红、白、绿3色横线的最右边加上对应横线的价格,谢谢老师。TT_CLOSE:= STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:= INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN; TT_CLOSE:=STKDATA('',4,'CLOSE');//跨周期引用
A:="020405$CLOSE";//跨品种引用
TT:=TT_CLOSE;
REF_TT:=REF(CLOSE,1);
MM:=INTPART((MINUTE)/Y);
N:=BARSLAST(HOUR<>REF(HOUR,1))+1;
HH1:=REF(HHV(H,N),N);//昨天全天的最高价
LL1:=REF(LLV(L,N),N);//昨天全天的最低价
CC1:=REF(CLOSE,N);//昨天全天的收盘价
CO:=VALUEWHEN(DATE<>REF(DATE,1),OPEN),COLORBLUE;//今开盘
ZX:=(HH1+LL1+CC1)/3,COLORWHITE;
R1:=2*ZX-LL1,COLORRED;
S1:=2*ZX-HH1,COLORGREEN;
R2:=ZX+(R1-S1),COLORRED;
S2:=ZX-(R1-S1),COLORGREEN;
R3:=HH1-(2*(LL1-ZX)),COLORRED;
S3:=LL1-(2*(HH1-ZX)),COLORGREEN;
AH:=IF(DATE<1190620,HIGH,0);//跨品种引用有效期限制
N1:=BARSLAST(DATE<>REF(DATE,1))+1;
HH11:=REF(HHV(AH,N1),N1);//昨天全天的最高价
LL11:=REF(LLV(L,N1),N1);//昨天全天的最低价
CC11:=REF(CLOSE,N1);//昨天全天的收盘价
ZX1:(HH11+LL11+CC11)/3,COLORWHITE;
R11:2*ZX1-LL11,COLORRED;
S11:2*ZX1-HH11,COLORGREEN;
R21:=ZX1+(R11-S11),COLORRED;
S21:=ZX1-(R11-S11),COLORGREEN;
R31:=HH11-(2*(LL11-ZX1)),COLORRED;
S31:=LL11-(2*(HH11-ZX1)),COLORGREEN;
DRAWNUMBER(ISLASTBAR,ZX1,ZX1,0),ALIGN0,COLORWHITE;
DRAWNUMBER(ISLASTBAR,R11,R11,0),ALIGN0,COLORRED;
DRAWNUMBER(ISLASTBAR,S11,S11,0),ALIGN0,COLORGREEN; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容