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

麻烦给加下买卖提示图标提示 [博易POBO]

咨询内容:

麻烦给加下买卖提示图标提示

麻烦给加下一下指标红色率K线的时候加入背景输出\cfg\bmp买卖图片比如:A.BMP和B.BMP
 A:HHV(HIGH,20),NODRAW;
B:LLV(LOW,20),NODRAW;
T11:REF(A,1),NODRAW;
T22:REF(B,1),NODRAW;

RED1:CROSS(C,REF(A,1)),NODRAW;
GREEN1:CROSS(C,REF(B,1)),NODRAW;
T1:BARSLAST(RED1),NODRAW;
T2:BARSLAST(GREEN1),NODRAW;
T33:RED1=1 AND NOT(GREEN1=1),NODRAW;
T44:GREEN1=1 AND NOT(RED1=1),NODRAW;
T3:COUNT(RED1=1 ,T1+1)=1 AND COUNT(GREEN1=1 ,T1+1)=0 ,NODRAW;
T4:COUNT(GREEN1=1 ,T2+1)=1 AND COUNT(RED1=1 ,T2+1)=0 ,NODRAW;


STICKLINE(T3 AND C>=O,O,C,6,1),COLORRED;
STICKLINE(T3 AND C<O,O,C,6,0),COLORRED;
STICKLINE(T3,HIGH,MAX(C,O),0,0),COLORRED;
STICKLINE(T3,LOW,MIN(C,O),0,0),COLORRED;

STICKLINE(T4 AND C>=O ,O,C,6,1),COLORGREEN;
STICKLINE(T4 AND C<O ,O,C,6,0),COLORGREEN;
STICKLINE(T4,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(T4,LOW,MIN(C,O),0,0),COLORGREEN;

DRAWICON(RED1,LOW,4),VALIGN0;
 
_______________________________________________________________________
 
以下指标吧买卖文字提示换成背景输出\cfg\bmp买卖图片比如:A.BMP和B.BMP
 
H1:=HHV(C,N);
L1:=LLV(C,N);
HH1:=IFELSE(CLOSE=L1,H1,0);
LL1:=IFELSE(CLOSE=H1,L1,0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-1,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
DH:IFELSE(K2=1,HH2,LL2),COLORYELLOW;
DRAWTEXT(CROSS(C,DH),L*0.998,'买'),COLOR00FFFF;
DRAWTEXT(CROSS(DH,C),H*1.002,'卖'),COLOR00FF00;
G1:=VALUEWHEN(ISLASTBAR,DH);
DRAWNUMBER(L>0,G1,G1,0),COLORCYAN;
STICKLINE(C>DH AND C>=O,C,O,10,61),COLORRED;
STICKLINE(C>DH ,MAX(C,O),H,0,61),COLORRED;
STICKLINE(C>DH ,MIN(C,O),L,0,61),COLORRED;
STICKLINE(C>DH AND C<O,C,O,10,60),COLORRED;


STICKLINE(C<DH AND C>=O,C,O,10,61),COLORGREEN;
STICKLINE(C<DH AND C<O,C,O,10,60),COLORGREEN;

STICKLINE(C<DH,MAX(C,O),H,0,61),COLORGREEN;
STICKLINE(C<DH ,MIN(C,O),L,0,61),COLORGREEN;
 

 

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

博易技术人员: A:HHV(HIGH,20),NODRAW;
B:LLV(LOW,20),NODRAW;
T11:REF(A,1),NODRAW;
T22:REF(B,1),NODRAW;

RED1:CROSS(C,REF(A,1)),NODRAW;
GREEN1:CROSS(C,REF(B,1)),NODRAW;
T1:BARSLAST(RED1),NODRAW;
T2:BARSLAST(GREEN1),NODRAW;
T33:RED1=1 AND NOT(GREEN1=1),NODRAW;
T44:GREEN1=1 AND NOT(RED1=1),NODRAW;
T3:COUNT(RED1=1 ,T1+1)=1 AND COUNT(GREEN1=1 ,T1+1)=0 ,NODRAW;
T4:COUNT(GREEN1=1 ,T2+1)=1 AND COUNT(RED1=1 ,T2+1)=0 ,NODRAW;


STICKLINE(T3 AND C>=O,O,C,6,1),COLORRED;
STICKLINE(T3 AND C<O,O,C,6,0),COLORRED;
STICKLINE(T3,HIGH,MAX(C,O),0,0),COLORRED;
STICKLINE(T3,LOW,MIN(C,O),0,0),COLORRED;

STICKLINE(T4 AND C>=O ,O,C,6,1),COLORGREEN;
STICKLINE(T4 AND C<O ,O,C,6,0),COLORGREEN;
STICKLINE(T4,HIGH,MAX(C,O),0,0),COLORGREEN;
STICKLINE(T4,LOW,MIN(C,O),0,0),COLORGREEN;
DRAWBMP(RED1,LOW,'A');
DRAWBMP(green1,H,'b'); H1:=HHV(C,N);
L1:=LLV(C,N);
HH1:=IFELSE(CLOSE=L1,H1,0);
LL1:=IFELSE(CLOSE=H1,L1,0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-1,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
DH:IFELSE(K2=1,HH2,LL2),COLORYELLOW;
DRAWBMP(CROSS(C,DH),L*0.998,'A');
DRAWBMP(CROSS(DH,C),H*1.002,'B');

G1:=VALUEWHEN(ISLASTBAR,DH);
DRAWNUMBER(L>0,G1,G1,0),COLORCYAN;
STICKLINE(C>DHANDC>=O,C,O,10,61),COLORRED;
STICKLINE(C>DH,MAX(C,O),H,0,61),COLORRED;
STICKLINE(C>DH,MIN(C,O),L,0,61),COLORRED;
STICKLINE(C>DHANDC<O,C,O,10,60),COLORRED;


STICKLINE(C<DHANDC>=O,C,O,10,61),COLORGREEN;
STICKLINE(C<DHANDC<O,C,O,10,60),COLORGREEN;

STICKLINE(C<DH,MAX(C,O),H,0,61),COLORGREEN;
STICKLINE(C<DH,MIN(C,O),L,0,61),COLORGREEN; 来源 程序化久久网

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  有需要帮忙请点击这里留言!!!或微信:cxhjy888 进行 有偿 编写!

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容