请老师帮助修改指标 [博易POBO]
咨询内容:
今高低:HHV(H,DAYBARPOS)-LLV(L,DAYBARPOS),NODRAW;
昨高低:REF(今高低,DAYBARPOS),NODRAW;
TS:=IF(DAYBARPOS=1,REF(今高低,1),0);
天5幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,4))+今高低)/5,NODRAW;
天10幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,9))+今高低)/10,NODRAW;
天20幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,19))+今高低)/20,NODRAW;
操盘线:MA(CLOSE,N);
PARTLINE(操盘线>REF(操盘线,1),操盘线),COLORFF00FF,LINETHICK2;
PARTLINE(操盘线<REF(操盘线,1),操盘线),COLOR008000,LINETHICK2;
//M12:EMA(CLOSE,42),COLORYELLOW;
//PARTLINE(M12>REF(M12,1),M12,COLORRED),COLORYELLOW,LINETHICK2;
//PARTLINE(M12<REF(M12,1),M12,COLORRED),COLORBLUE,LINETHICK2;
生命线:EMA(CLOSE,144),COLORRED,COLOR00F000,LINETHICK1;
PARTLINE(生命线>REF(生命线,1),生命线),COLOR0000FF,LINETHICK2;
PARTLINE(生命线<REF(生命线,1),生命线),COLOR00FF00,LINETHICK2;
//M169:EMA(CLOSE,169),COLORRED,RGB(255,0,0),LINETHICK1;
//PARTLINE(M169>REF(M169,1),M169,COLORRED),COLORLIGHTRED,LINETHICK1;
//PARTLINE(M169<REF(M169,1),M169,COLORRED),COLORCYAN,LINETHICK1;
无穷成本:EMA(CLOSE,720);
PARTLINE(无穷成本>REF(无穷成本,1),无穷成本),COLOR000080,LINETHICK1;
PARTLINE(无穷成本<REF(无穷成本,1),无穷成本),COLORFFFF00,LINETHICK1;
//DRAWNUMBER(ISLASTBAR,HHV(H,300),操盘线,3),COLORRED,FONTSIZE22;
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),COLORBD0000,NODRAW;
DEA :=EMA(DIFF,9),COLOR0080FF,LINETHICK1,NODRAW;
MACD :=2*(DIFF-DEA), COLORSTICK,LINETHICK1,NODRAW;
A11:=REF(DIFF,N1)=HHV(DIFF,2*N1+1),NODRAW;
B21:=FILTER(A11,N1);
C11:=BACKSET(B21,N1+1);
D11:=FILTER(C11,N1);
T线:=REF(DIFF,BARSLAST(D11)),COLORFF00FF,NODRAW;
STICKLINE(C<0,T线,T线,6,0),COLOR00FF00,NODRAW;
STICKLINE(C>0,T线,T线,6,0),COLOR00FF00,NODRAW;
A12:=REF(DIFF,N1)=LLV(DIFF,2*N1+1);
B22:=FILTER(A12,N1);
C12:=BACKSET(B22,N1+1);
D12:=FILTER(C12,N1);
T1线:=REF(DIFF,BARSLAST(D12)),COLORFF00FF,NODRAW;
STICKLINE(C<0,T1线,T1线,6,0),COLOR00FFFF,NODRAW;
STICKLINE(C>0,T1线,T1线,6,0),COLOR00FFFF,NODRAW;
DRAWKLINEEX(CROSS(DIFF,T线),H,O,L,C),COLORFF00FF;
DRAWKLINEEX(CROSS(T1线,DIFF),H,O,L,C),COLORGREEN;
DRAWTEXT(CROSS(DIFF,T线),L,'3'),COLORYELLOW, FONTSIZE16;
DRAWTEXT(CROSS(T1线,DIFF), H,'3'),COLORGREEN,FONTSIZE16;
STICKLINE(CROSS(DIFF,0),O,C,8,0),COLOR00FFFF;
STICKLINE(CROSS(0,DIFF),O,C,8,0),COLOR008000;
STICKLINE(CROSS(MACD,0),O,C,8,0),COLORFF00FF;
STICKLINE(CROSS(0,MACD),O,C,8,0),COLORFF0000;
DRAWTEXT( CROSS(DIFF,0), H,'2'),COLOR00FFFF,FONTSIZE16;
DRAWTEXT(CROSS(0,DIFF),L,'2'),COLORGREEN, FONTSIZE16;
DRAWTEXT(CROSS(MACD,0),H,'1') ,COLORFF00FF, FONTSIZE16;
DRAWSL(CROSS(MACD,0),L,0,10,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(0,MACD),L,'1'),COLOR00FF00, FONTSIZE16;
DRAWSL(CROSS(0,MACD),H,0,10,0),COLOR00FF00,LINETHICK2;
DRAWNUMBER(ISLASTBAR,HHV(H,300),C,2),COLORRED,FONTSIZE22;
我使用软件版本号为:5.2.12
请老师帮助修改指标
DAYBARPOS:=DATACOUNT-BARPOS-1;今高低:HHV(H,DAYBARPOS)-LLV(L,DAYBARPOS),NODRAW;
昨高低:REF(今高低,DAYBARPOS),NODRAW;
TS:=IF(DAYBARPOS=1,REF(今高低,1),0);
天5幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,4))+今高低)/5,NODRAW;
天10幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,9))+今高低)/10,NODRAW;
天20幅度:(SUM(TS,SUMBARS(DAYBARPOS=1,19))+今高低)/20,NODRAW;
操盘线:MA(CLOSE,N);
PARTLINE(操盘线>REF(操盘线,1),操盘线),COLORFF00FF,LINETHICK2;
PARTLINE(操盘线<REF(操盘线,1),操盘线),COLOR008000,LINETHICK2;
//M12:EMA(CLOSE,42),COLORYELLOW;
//PARTLINE(M12>REF(M12,1),M12,COLORRED),COLORYELLOW,LINETHICK2;
//PARTLINE(M12<REF(M12,1),M12,COLORRED),COLORBLUE,LINETHICK2;
生命线:EMA(CLOSE,144),COLORRED,COLOR00F000,LINETHICK1;
PARTLINE(生命线>REF(生命线,1),生命线),COLOR0000FF,LINETHICK2;
PARTLINE(生命线<REF(生命线,1),生命线),COLOR00FF00,LINETHICK2;
//M169:EMA(CLOSE,169),COLORRED,RGB(255,0,0),LINETHICK1;
//PARTLINE(M169>REF(M169,1),M169,COLORRED),COLORLIGHTRED,LINETHICK1;
//PARTLINE(M169<REF(M169,1),M169,COLORRED),COLORCYAN,LINETHICK1;
无穷成本:EMA(CLOSE,720);
PARTLINE(无穷成本>REF(无穷成本,1),无穷成本),COLOR000080,LINETHICK1;
PARTLINE(无穷成本<REF(无穷成本,1),无穷成本),COLORFFFF00,LINETHICK1;
//DRAWNUMBER(ISLASTBAR,HHV(H,300),操盘线,3),COLORRED,FONTSIZE22;
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),COLORBD0000,NODRAW;
DEA :=EMA(DIFF,9),COLOR0080FF,LINETHICK1,NODRAW;
MACD :=2*(DIFF-DEA), COLORSTICK,LINETHICK1,NODRAW;
A11:=REF(DIFF,N1)=HHV(DIFF,2*N1+1),NODRAW;
B21:=FILTER(A11,N1);
C11:=BACKSET(B21,N1+1);
D11:=FILTER(C11,N1);
T线:=REF(DIFF,BARSLAST(D11)),COLORFF00FF,NODRAW;
STICKLINE(C<0,T线,T线,6,0),COLOR00FF00,NODRAW;
STICKLINE(C>0,T线,T线,6,0),COLOR00FF00,NODRAW;
A12:=REF(DIFF,N1)=LLV(DIFF,2*N1+1);
B22:=FILTER(A12,N1);
C12:=BACKSET(B22,N1+1);
D12:=FILTER(C12,N1);
T1线:=REF(DIFF,BARSLAST(D12)),COLORFF00FF,NODRAW;
STICKLINE(C<0,T1线,T1线,6,0),COLOR00FFFF,NODRAW;
STICKLINE(C>0,T1线,T1线,6,0),COLOR00FFFF,NODRAW;
DRAWKLINEEX(CROSS(DIFF,T线),H,O,L,C),COLORFF00FF;
DRAWKLINEEX(CROSS(T1线,DIFF),H,O,L,C),COLORGREEN;
DRAWTEXT(CROSS(DIFF,T线),L,'3'),COLORYELLOW, FONTSIZE16;
DRAWTEXT(CROSS(T1线,DIFF), H,'3'),COLORGREEN,FONTSIZE16;
STICKLINE(CROSS(DIFF,0),O,C,8,0),COLOR00FFFF;
STICKLINE(CROSS(0,DIFF),O,C,8,0),COLOR008000;
STICKLINE(CROSS(MACD,0),O,C,8,0),COLORFF00FF;
STICKLINE(CROSS(0,MACD),O,C,8,0),COLORFF0000;
DRAWTEXT( CROSS(DIFF,0), H,'2'),COLOR00FFFF,FONTSIZE16;
DRAWTEXT(CROSS(0,DIFF),L,'2'),COLORGREEN, FONTSIZE16;
DRAWTEXT(CROSS(MACD,0),H,'1') ,COLORFF00FF, FONTSIZE16;
DRAWSL(CROSS(MACD,0),L,0,10,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(0,MACD),L,'1'),COLOR00FF00, FONTSIZE16;
DRAWSL(CROSS(0,MACD),H,0,10,0),COLOR00FF00,LINETHICK2;
DRAWNUMBER(ISLASTBAR,HHV(H,300),C,2),COLORRED,FONTSIZE22;
我使用软件版本号为:5.2.12
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,5.2版本已经停止维护,请使用新版本,以上指标在新版本上是正常的。 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容