主图
参数
{背景}
DRAWGBK(O>C,RGB(110,35,120),RGB(0,25,50),0,'0',0);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWKLINE(H,O,L,C);
{主题概念}
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,STRCAT(Z3,GNBLOCK)),COLORCYAN;
{带状线}
DRAWBAND(MA(CLOSE,3),RGB(155,50,50),MA(CLOSE,5),RGB(0,91,0));
DRAWBAND(MA(CLOSE,13),RGB(100,50,100),MA(CLOSE,15),RGB(0,0,180));
DRAWKLINE(H,O,L,C);
{}
红:MA(CLOSE,3),COLORBBBBBB{MA3};
绿:MA(CLOSE,5),COLORYELLOW{MA5};
AA:=红>绿;
紫:MA(CLOSE,13),COLORFF00CC{MA13};
蓝:MA(CLOSE,15),COLORABFF46{MA15};
BB:=紫>蓝;
军号:=MA(CLOSE,20)COLOR3399CC,NODRAW;
台阶线:MA(CLOSE,30),NODRAW;
台阶线1:STICKLINE(C>台阶线,台阶线,台阶线-0.01,3,0)COLOR3399CC;
台阶线2:STICKLINE(C<台阶线,台阶线,台阶线-0.01,3,0)COLOR3399CC;
{}
N1:=6;
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;
DRAWICON(FILTER(卖1=1,1),H*1.06,15),COLOR00FF00;
STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(注意 AND 卖1<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3;
STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;
{13天内}
板后13天内:=COUNT(C/REF(C,1)>1.099,13)>1;
XG:=FILTER(买1=1,5);
钱袋:=板后13天内 AND XG;
DRAWICON(钱袋,LOW*0.99,9),COLORRED;
DRAWTEXT(钱袋,L-0.35,'回&家&吃&饭'),COLORLIMAGENTA;
{注册制涨停变色}
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
XA_1:=IF(DATE<=1200823,1,0);
STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,2.7,0),COLORFF00FF;
STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,2.7,0),COLORBLUE;
STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),O,C,1,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),O,C,1,0),COLORBLUE;
STICKLINE((H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1),H,MAX(C,O),0.5,0),COLORMAGENTA;{涨停后回落}
STICKLINE((L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1),L,MIN(C,O),0.5,0),COLORBLUE;
副图1
{}
N1:=6;
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
{13天内}
板后13天内:=COUNT(C/REF(C,1)>1.099,13)>1;
XG:=FILTER(买1=1,5);
钱袋:=板后13天内 AND XG;
回家吃饭:=(REF(BARSLAST(钱袋),0)+1);
STICKLINE(IF(钱袋,120,0),10,0,1,0),COLORRED;
DRAWTEXT(钱袋,9.0,'回')COLORYELLOW;
副图2
GUP1:=CLOSE>REF(CLOSE,1)*1.099;
小阴小阳:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,BARSLAST(GUP1))<9;
时间:=COUNT(GUP1,30)=1 AND BARSLAST(GUP1)>5;
双响炮:IF(REF(小阴小阳 AND 时间,1) AND GUP1,120,100),COLORRED,LINETHICK1;
DRAWTEXT(REF(小阴小阳 AND 时间,1) AND GUP1,双响炮*0.92,'双响炮'),COLORRED;
涨幅:=(C-REF(C,1))/REF(C,1)>0.055;
均线条件:=MA(C,10)>MA(C,20);
非科创板:=NOT(CODELIKE('688'));
中小盘股:=FINANCE(40)<23520000000;
均5:=MA(C,5);
均10:=MA(C,10);
均20:=MA(C,20);
均30:=MA(C,30);
最大值:=MAX(MAX(均5,均10),MAX(均20,均30));
最小值:=MIN(MIN(均5,均10),MIN(均20,均30));
一阳四线:=O<=最小值 AND C>=最大值;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ条件:=CROSS(J,K) AND J<90;
打板:IF(涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1
AND 非科创板=1 AND C<50,100,80),COLORRED,LINETHICK1;
DRAWTEXT((涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1
AND 非科创板=1 AND C<50),打板*0.9,'打板'),COLORRED;
GUA1:=C/O>1.08,COLORRED;
主升浪:IF(GUA1,80,60),COLORMAGENTA,LINETHICK1;
DRAWTEXT(GUA1=1 ,GUA1*70,'主升浪'),COLORMAGENTA;
GUB1:=REF(CLOSE,1);
GUB2:=SMA(MAX(CLOSE-GUB1,0),3,1)/SMA(ABS(CLOSE-GUB1),3,1)*100;
止跌:IF(CROSS(GUB2,7),20,0),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(GUB2,7),止跌*0.5,'止跌'),COLORGREEN;
选股
N1:=6;
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
{13天内}
板后13天内:=COUNT(C/REF(C,1)>1.099,13)>1;
XG:=FILTER(买1=1,5);
钱袋:板后13天内 AND XG;