ZCZDATE:=1200824;
注册板:=INBLOCK('创业板') OR INBLOCK('科创板');
总收入同比:=FINANCE(44);
净利润同比:=FINANCE(43);
主力攻击线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,9))/3;
主力控盘线:(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/6;
主力攻击线_变色:=IF(主力攻击线>REF(主力攻击线,1) AND 主力攻击线>主力控盘线,主力攻击线,DRAWNULL);
主力攻击线_变色,COLORRED;
涨幅:=(CLOSE/REF(CLOSE,1)-1);
涨停:=涨幅>=0.09 AND CLOSE=HIGH;
实体:=CLOSE>LOW;
成交额:=AMOUNT>=REF(HHV(AMOUNT,10),1);
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K:=SMA(RSV,3,1);
乖离率:=(CLOSE/主力攻击线-1)*100;
连板:=COUNT(涨停,2)=2;
A2ZQ:=BARSLAST(连板);
{以下按常规STICKLINE绘制,原STICKLINE3D暂替换,可根据需求调整样式}
STICKLINE(A2ZQ=0,OPEN,HIGH,0.8,0),COLORRED;
STICKLINE(A2ZQ=0,LOW,OPEN,0.1,0),COLORRED;
均线金叉:=BARSLAST(CROSS(主力攻击线,主力控盘线))<=8 AND 乖离率<=10 AND 主力攻击线>主力控盘线 AND C>主力攻击线 ;
持续放量:=10000*SUM(VOL,3)/FINANCE(7)>=10 AND COUNT(AMOUNT>REF(AMOUNT,1),3)=3;
超跌板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND REF(K,1)<=20 AND 成交额=1;
趋势板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND 均线金叉=1 AND 成交额=1;
放量板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND 持续放量=1 AND 成交额=1;
XG:=放量板 OR 趋势板 OR 超跌板;
{以下绘制黄K线相关部分}
STICKLINE(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND XG=1,OPEN,HIGH,0.8,0),COLORYELLOW;
STICKLINE(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND XG=1,LOW,OPEN,0.1,0),COLORYELLOW;
STICKLINE(DATE>=ZCZDATE AND 注册板=0 AND XG=1,OPEN,HIGH,0.8,0),COLORYELLOW;
STICKLINE(DATE>=ZCZDATE AND 注册板=0 AND XG=1,LOW,OPEN,0.1,0),COLORYELLOW;
{DRAWICON部分}
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND 超跌板=1,LOW,110);
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND 趋势板=1,LOW,112);
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND 放量板=1,LOW,111);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND 超跌板=1,LOW,110);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND 趋势板=1,LOW,112);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND 放量板=1,LOW,111);
A2:=COUNT(涨停,2)=2;
A3:=COUNT(涨停,3)=2;
A4:=COUNT(涨停,4)=3;
A2ZQ1:=BARSLAST(A2);
{以下绘制红色K线相关部分}
STICKLINE(A2ZQ1=0,OPEN,HIGH,0.8,0),COLORRED;
STICKLINE(A2ZQ1=0,LOW,OPEN,0.1,0),COLORRED;
成交额1:=AMOUNT>=REF(HHV(AMOUNT,10),1);
实体1:=CLOSE>LOW;
B1:=A2ZQ1=0 AND A3=1 AND 成交额1=1 AND 实体1=1;
{DRAWICON部分}
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND B1,LOW,113);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND B1,LOW,113);
B2:=A2ZQ1=0 AND A4=1 AND 成交额1=1 AND 实体1=1 AND (REF(CLOSE,1)=REF(LOW,1) OR REF(成交额1,1)=0);
{DRAWICON部分}
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND B2,LOW,113);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND B2,LOW,113);
实体板:=(CLOSE/REF(CLOSE,1)>=1.097) AND (CLOSE=HIGH) AND (CLOSE>OPEN);
主力操盘线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
主力决策线:=MA(CLOSE,45);
涨停1:=CLOSE/REF(CLOSE,1)>=1.090 AND HIGH=CLOSE;
连板数:=COUNT(涨停1,6) ;
双龙周期:=BARSLAST(COUNT(涨停1,2)=2)<=12;
回踩:=HIGH>主力操盘线 AND LOW<=主力操盘线;
当日涨幅:=(CLOSE/REF(CLOSE,1)>=0.91 AND CLOSE/REF(CLOSE,1)<=1.05);
十字星实体:=ABS(CLOSE-OPEN)/CLOSE<=0.03;
双龙:=双龙周期 AND 回踩 AND 当日涨幅 AND 十字星实体 AND 连板数<=6;
上影线:=HIGH-MAX(CLOSE,OPEN);
下影线:=MIN(CLOSE,OPEN)-LOW;
实体部分:=ABS(CLOSE-OPEN);
买1:=下影线/CLOSE>=0.02 AND 实体部分/CLOSE<=0.03 AND 下影线>上影线;
买2:=下影线/CLOSE>=0.01 AND 上影线/CLOSE>=0.01 AND 十字星实体<=0.015;
买3:=上影线/CLOSE>=0.02 AND 实体部分/CLOSE<=0.02;
买4:=LOW=OPEN AND 实体部分/CLOSE>=0.02;
买5:=OPEN<REF(CLOSE,1) AND CLOSE>OPEN AND 实体部分/CLOSE>=0.03;
买6:=CLOSE>OPEN AND CLOSE>REF(MAX(CLOSE,OPEN),1);
双龙狙击1:=双龙 AND (买1 OR 买2 OR 买3 OR 买4 OR 买5 OR 买6) AND (CLOSE>主力操盘线);
双龙狙击2:=双龙 AND (买1 OR 买2 OR 买3 OR 买4 OR 买5 OR 买6) AND (CLOSE<=主力操盘线);
A1:=FILTER(双龙狙击1=1,5);
A21:=FILTER(双龙狙击2=1,5);
{DRAWICON部分}
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND A1=1 AND COUNT(A21,5)=0,LOW,114);
DRAWICON(DATE<ZCZDATE AND INBLOCK('科创板')=0 AND A21=1 AND COUNT(A1,5)=0,LOW,108);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND A1=1 AND COUNT(A21,5)=0,LOW,114);
DRAWICON(DATE>=ZCZDATE AND 注册板=0 AND A21=1 AND COUNT(A1,5)=0,LOW,108);
M1:=4;
M2:=6;
M3:=9;
M4:=13;
M5:=18;
M6:=24;
PBX1:=(EMA(CLOSE,M1)+EMA(CLOSE,M1*2)+EMA(CLOSE,M1*4))/3;
PBX2:=(EMA(CLOSE,M2)+EMA(CLOSE,M2*2)+EMA(CLOSE,M2*4))/3;
PBX3:=(EMA(CLOSE,M3)+EMA(CLOSE,M3*2)+EMA(CLOSE,M3*4))/3;
PBX4:=(EMA(CLOSE,M4)+EMA(CLOSE,M4*2)+EMA(CLOSE,M4*4))/3;
PBX5:=(EMA(CLOSE,M5)+EMA(CLOSE,M5*2)+EMA(CLOSE,M5*4))/3;
PBX6:=(EMA(CLOSE,M6)+EMA(CLOSE,M6*2)+EMA(CLOSE,M6*4))/3;
多头形态:=C>PBX1 AND PBX1>REF(PBX1,1) AND PBX1>PBX2 AND PBX2>PBX3 AND PBX3>PBX4 AND PBX5>REF(PBX5,1);
综合价格:=(2*C+H+L+O)/5;
现价新高:=综合价格>=REF(HHV(综合价格,20),1);
当日涨幅1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=5.00 AND NOT(H=L) AND O/REF(C,1)<1.10;
低点幅度:=C/LLV(L,120)>=1.20;
高点幅度:=C/HHV(H,60)>=0.80;
上影线1:=C/H>=0.95;
爆量:=EMA(VOL,3)/EMA(VOL,60)>=1.5 OR VOL>REF(HHV(VOL,5),1);
XG1:=FILTER(多头形态 AND 现价新高 AND 当日涨幅1 AND 低点幅度 AND 高点幅度 AND 爆量 AND 上影线1,20);
{DRAWICON部分}
DRAWICON(INBLOCK('科创板')=1 AND XG1=1,LOW,109);
DRAWICON(DATE>=ZCZDATE AND INBLOCK('创业板')=1 AND XG1=1,LOW,109);