可以添加到主图的 小公式:
DRAWGBK(2>1,RGB(3,3,3),RGB(3,3,3),0,'BJT',0);
CC1:=CODELIKE('A') OR CODELIKE('B') OR CODELIKE('C') OR CODELIKE('D') OR CODELIKE('E') OR CODELIKE('F') OR CODELIKE('G') OR CODELIKE('H') OR CODELIKE('I') OR CODELIKE('J') OR CODELIKE('K') OR CODELIKE('L') OR CODELIKE('M');
CC2:=CODELIKE('N') OR CODELIKE('O') OR CODELIKE('P') OR CODELIKE('Q') OR CODELIKE('R') OR CODELIKE('S') OR CODELIKE('T') OR CODELIKE('U') OR CODELIKE('V') OR CODELIKE('W') OR CODELIKE('X') OR CODELIKE('Y') OR CODELIKE('Z');
CC:=CC1 OR CC2 OR CODELIKE('11108') OR CODELIKE('11803') OR CODELIKE('119693');
VAR1:=IF(CC,(HIGH+LOW)/2,DRAWNULL);
M1:=IF(CC,VAR1,DRAWNULL),COLOR505050;
M3:=IF(CC,XMA(VAR1,3),DRAWNULL),COLOR505050;
M5:=IF(CC,XMA(VAR1,5),DRAWNULL),COLOR505050;
M10:=IF(CC,XMA(VAR1,10),DRAWNULL),COLOR505050;
M15:=IF(CC,XMA(VAR1,15),DRAWNULL),COLOR505050;
M20:=IF(CC,XMA(VAR1,20),DRAWNULL),COLOR505050;
M25:=IF(CC,XMA(VAR1,25),DRAWNULL),COLOR505050;
M30:=IF(CC,XMA(VAR1,30),DRAWNULL),COLOR505050;
M35:=IF(CC,XMA(VAR1,35),DRAWNULL),COLOR505050;
M40:=IF(CC,XMA(VAR1,40),DRAWNULL),COLOR505050;
M45:=IF(CC,XMA(VAR1,45),DRAWNULL),COLOR505050;
M50:=IF(CC,XMA(VAR1,50),DRAWNULL),COLOR505050;
M55:=IF(CC,XMA(VAR1,55),DRAWNULL),COLOR505050;
M60:=IF(CC,XMA(VAR1,60),DRAWNULL),COLORWHITE,LINETHICK1,DOTLINE;
M0:=IF(CC,(M3+M5+M10+M15+M20+M25+M30+M35+M40+M45+M50+M55+M60)/13,DRAWNULL),COLORYELLOW,DOTLINE,LINETHICK1;
N0:=IF(CC,(M1+M3+M5)/3,DRAWNULL),NODRAW;
NOTEXT_MX0:=PLOYLINE(CC,M0),COLORA9A9A9,LINETHICK2;
UAR1:=M1>M3 AND M1>M5 AND M1>M10 AND M1>M15 AND M1>M20 AND M1>M25 AND M1>M30 AND M1>M35 AND M1>M40 AND M1>M45 AND M1>M50 AND M1>M55 AND M1>M60 AND M3>M5 AND M3>M10 AND M3>M15 AND M3>M20 AND M3>M25 AND M3>M30;
UAR2:=M3>M35 AND M3>M40 AND M3>M45 AND M3>M50 AND M3>M55 AND M3>M60 AND M5>M10 AND M5>M15 AND M5>M20 AND M5>M25 AND M5>M30 AND M5>M35 AND M5>M40 AND M5>M45 AND M5>M50 AND M5>M55 AND M5>M60 AND M10>M15 AND M10>M20 AND M10>M25 AND M10>M30 AND M10>M35 AND M10>M40 AND M10>M45 AND M10>M50 AND M10>M55 AND M10>M60;
UAR3:=M15>M20 AND M15>M25 AND M15>M30 AND M15>M35 AND M15>M40 AND M15>M45 AND M15>M50 AND M15>M55 AND M15>M60 AND M20>M25 AND M20>M30 AND M20>M35 AND M20>M40 AND M20>M45 AND M20>M50 AND M20>M55 AND M20>M60 AND M25>M30 AND M25>M35 AND M25>M40 AND M25>M45 AND M25>M50 AND M25>M55 AND M25>M60 AND M30>M35 AND M30>M40;
UAR4:=M30>M45 AND M30>M50 AND M30>M55 AND M30>M60 AND M35>M40 AND M35>M45 AND M35>M50 AND M35>M55 AND M35>M60 AND M40>M45 AND M40>M50 AND M40>M55 AND M40>M60 AND M45>M50 AND M45>M55 AND M45>M60 AND M50>M55 AND M50>M60 AND M55>M60;
VAR2:=UAR1 AND UAR2 AND UAR3 AND UAR4;
UAR11:=M1<M3 AND M1<M5 AND M1<M10 AND M1<M15 AND M1<M20 AND M1<M25 AND M1<M30 AND M1<M35 AND M1<M40 AND M1<M45 AND M1<M50 AND M1<M55 AND M1<M60 AND M3<M5 AND M3<M10 AND M3<M15 AND M3<M20 AND M3<M25 AND M3<M30;
UAR22:=M3<M35 AND M3<M40 AND M3<M45 AND M3<M50 AND M3<M55 AND M3<M60 AND M5<M10 AND M5<M15 AND M5<M20 AND M5<M25 AND M5<M30 AND M5<M35 AND M5<M40 AND M5<M45 AND M5<M50 AND M5<M55 AND M5<M60 AND M10<M15 AND M10<M20;
UAR33:=M10<M25 AND M10<M30 AND M10<M35 AND M10<M40 AND M10<M45 AND M10<M50 AND M10<M55 AND M10<M60 AND M15<M20 AND M15<M25 AND M15<M30 AND M15<M35 AND M15<M40 AND M15<M45 AND M15<M50 AND M15<M55 AND M15<M60 AND M20<M25;
UAR44:=M20<M30 AND M20<M35 AND M20<M40 AND M20<M45 AND M20<M50 AND M20<M55 AND M20<M60 AND M25<M30 AND M25<M35 AND M25<M40 AND M25<M45 AND M25<M50 AND M25<M55 AND M25<M60 AND M30<M35 AND M30<M40 AND M30<M45 AND M30<M50;
UAR55:=M30<M55 AND M30<M60 AND M35<M40 AND M35<M45 AND M35<M50 AND M35<M55 AND M35<M60 AND M40<M45 AND M40<M50 AND M40<M55 AND M40<M60 AND M45<M50 AND M45<M55 AND M45<M60 AND M50<M55 AND M50<M60 AND M55<M60;
VAR3:=UAR11 AND UAR22 AND UAR33 AND UAR44 AND UAR55;
HH:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10)+XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30)+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,50)+XMA(HIGH,55)+XMA(HIGH,60))/14;
LL:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+XMA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XMA(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA(LOW,55)+XMA(LOW,60))/14;
XX:=M15>M20 AND M15>M25 AND M15>M30 AND M15>M35 AND M15>M40 AND M15>M45 AND M15>M50 AND M15>M55 AND M15>M60 AND M20>M25 AND M20>M30 AND M20>M35 AND M20>M40 AND M20>M45 AND M20>M50 AND M20>M55 AND M20>M60 AND M25>M30 AND M25>M35 AND M25>M40 AND M25>M45 AND M25>M50 AND M25>M55 AND M25>M60 AND M30>M35 AND M30>M40 AND M30>M45 AND M30>M50 AND M30>M55 AND M30>M60 AND M35>M40 AND M35>M45 AND M35>M50 AND M35>M55 AND M35>M60 AND M40>M45 AND M40>M50 AND M40>M55 AND M40>M60 AND M45>M50 AND M45>M55 AND M45>M60 AND M50>M55 AND M50>M60 AND M55>M60;
YY:=M15<M20 AND M15<M25 AND M15<M30 AND M15<M35 AND M15<M40 AND M15<M45 AND M15<M50 AND M15<M55 AND M15<M60 AND M20<M25 AND M20<M30 AND M20<M35 AND M20<M40 AND M20<M45 AND M20<M50 AND M20<M55 AND M20<M60 AND M25<M30 AND M25<M35 AND M25<M40 AND M25<M45 AND M25<M50 AND M25<M55 AND M25<M60 AND M30<M35 AND M30<M40 AND M30<M45 AND M30<M50 AND M30<M55 AND M30<M60 AND M35<M40 AND M35<M45 AND M35<M50 AND M35<M55 AND M35<M60 AND M40<M45 AND M40<M50 AND M40<M55 AND M40<M60 AND M45<M50 AND M45<M55 AND M45<M60 AND M50<M55 AND M50<M60 AND M55<M60;
UU0:=IF(CC,XMA((HH/LL)*M0+((HH/LL)*M0-M0),10),DRAWNULL);
DD0:=IF(CC,XMA((LL/HH)*M0-(M0-(LL/HH)*M0),10),DRAWNULL);
UU1:=IF(CC,XMA(((HH/LL)*M0)+((HH/LL)*M0-M0)/2,10),DRAWNULL);
DD1:=IF(CC,XMA((LL/HH)*M0-0.5*(M0-(LL/HH)*M0),10),DRAWNULL);
UU2:=IF(CC,XMA(((HH/LL)*M0)+((HH/LL)*M0-M0)*1.5,10),DRAWNULL),DOTLINE,COLOR616161;
DD2:=IF(CC,XMA((LL/HH)*M0-1.5*(M0-(LL/HH)*M0),10),DRAWNULL),DOTLINE,COLOR616161;
DRAWBAND(UU2,RGB(55,55,55),DD2,RGB(20,20,20));
NOTEXT_TOP:PLOYLINE(CC,UU2),COLOR616161,DOTLINE,LINETHICK0;
NOTEXT_BOT:PLOYLINE(CC,DD2),COLOR616161,DOTLINE,LINETHICK0;
NOTEXT_UP2:IF(CC AND REF(M0,1)<M0 AND XX,UU2,DRAWNULL),LINETHICK2,COLORMAGENTA;
NOTEXT_DOWN2:IF(CC AND REF(M0,1)>M0 AND YY,DD2,DRAWNULL),LINETHICK2,COLORFF8000;
NOTEXT_UP20:IF(CC AND VAR2,UU2,DRAWNULL),COLORGREEN,LINETHICK2;
NOTEXT_DOWN20:IF(CC AND VAR3,DD2,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT_UP1:IF(CC AND REF(M0,1)>M0,UU1,DRAWNULL),LINETHICK1,COLORYELLOW,COLOR808080;
NOTEXT_DOWN1:IF(CC AND REF(M0,1)<M0,DD1,DRAWNULL),LINETHICK1,COLORYELLOW,COLOR808080;
|