字母还能往右侧靠吗 [文华财经]
-
咨询内容:
N:=BARSLAST(CROSS(TIME>=0900&&TIME<1500,0.5)||DAYBARPOS=1)+1;
HH:=REF(HHV(H,N),N);
LL:=REF(LLV(L,N),N);
CC:=REF(C,N);
AA:PERIOD<>8&&PERIOD<>9&&PERIOD<>10&&PERIOD<>11&&PERIOD<>15;
PP:IF(DATE=REFX1(DATE,10000)&&AA,(HH+LL+CC)/3,NULL),LINETHICK4,COLORGRAY;
S2:IF(AA,(PP-(HH-LL)),NULL),COLORLIGHTGREEN,LINETHICK4;
R2:IF(AA,(PP+(HH-LL)),NULL),COLORMAGENTA,LINETHICK4;
SS:IF(AA,(2*PP-HH),NULL),COLORBLUE,LINETHICK4;
RR:IF(AA,(2*PP-LL),NULL),COLORBLUE,LINETHICK4;
PB:IF(AA,(PP+(RR-PP)/2),NULL),DASH,RGB(0,240,0);
QB:IF(AA,(PP-(PP-SS)/2),NULL),DASH,RGB(0,240,0);
SB:IF(AA,(RR+(R2-RR)/2),NULL),COLORLIGHTRED,DASH;
XB:IF(AA,(SS-(SS-S2)/2),NULL),COLORLIGHTRED,DASH;
R3:IF(AA,RR+(HH-LL),NULL),COLORRED,LINETHICK5;
S3:IF(AA,SS-(HH-LL),NULL),COLORRED,LINETHICK5;
HB:IF(AA,(R2+(R3-R2)/2),NULL),COLORLIGHTRED,DASH;
LB:IF(AA,(S2-(S2-S3)/2),NULL),COLORLIGHTRED,DASH;
DRAWSL(ISLASTBAR&&AA,PP,0,100,0,COLORGRAY),LINETHICK4;
DRAWSL(ISLASTBAR&&AA,S2,0,100,0,COLORLIGHTGREEN),LINETHICK4;
DRAWSL(ISLASTBAR&&AA,R2,0,100,0,COLORMAGENTA),LINETHICK4;
DRAWSL(ISLASTBAR&&AA,SS,0,100,0,COLORBLUE),LINETHICK4;
DRAWSL(ISLASTBAR&&AA,RR,0,100,0,COLORBLUE),LINETHICK4;
DRAWSL(ISLASTBAR&&AA,PB,0,100,0,RGB(0,240,0)),DASH;
DRAWSL(ISLASTBAR&&AA,QB,0,100,0,RGB(0,240,0)),DASH;
DRAWSL(ISLASTBAR&&AA,SB,0,100,0,COLORLIGHTRED),DASH;
DRAWSL(ISLASTBAR&&AA,XB,0,100,0,COLORLIGHTRED),DASH;
DRAWSL(ISLASTBAR&&AA,R3,0,100,0,COLORRED),LINETHICK5;
DRAWSL(ISLASTBAR&&AA,S3,0,100,0,COLORRED),LINETHICK5;
DRAWSL(ISLASTBAR&&AA,HB,0,100,0,COLORLIGHTRED),DASH;
DRAWSL(ISLASTBAR&&AA,LB,0,100,0,COLORLIGHTRED),DASH;
DRAWTEXT(ISLASTBAR&&AA,PP,'P',ALIGN0,COLORGREEN;
DRAWTEXT(ISLASTBAR&&AA,QB,'B',ALIGN0;
DRAWTEXT(ISLASTBAR&&AA,PB,'B',ALIGN0;
DRAWTEXT(ISLASTBAR&&AA,SS,'S',ALIGN0,COLORBLUE;
DRAWTEXT(ISLASTBAR&&AA,RR,'R',ALIGN0,COLORBLUE;
DRAWTEXT(ISLASTBAR&&AA,XB,'B',ALIGN0;
DRAWTEXT(ISLASTBAR&&AA,S2,'2',ALIGN0,RGB(0,120,0);
DRAWTEXT(ISLASTBAR&&AA,R2,'2',ALIGN0,COLORLIGHTRED;
DRAWTEXT(ISLASTBAR&&AA,S3,'3',ALIGN0,COLORRED;
DRAWTEXT(ISLASTBAR&&AA,R3,'3',ALIGN0,COLORRED;
DRAWTEXT(ISLASTBAR&&AA,HB,'B',ALIGN0;
DRAWTEXT(ISLASTBAR&&AA,LB,'B',ALIGN0;
DRAWTEXT(ISLASTBAR&&AA,SB,'B',ALIGN0;
来源:程序化99
-
文华技术人员:
这里您可以加入空格,如
DRAWTEXT(ISLASTBAR&&AA,PP,'nbsp; PP',ALIGN0,COLORGREEN;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容