通达信御龙冠军分时主图最新优化版 指标源码
{御龙冠军分时主图最新优化版,本分时为本人日常使用,托,压(对应B,S)点买卖即
可。高手即可根据B,S点和均线做T。出现庄进可抄底,分时扫盘,或者小红点
均是主力大单吃货,参考买入占比超过50%,60%以上最佳,可大胆追买,涨停概率极
大。}
H01:=MAX(DYNAINFO(3),DYNAINFO(5));
L01:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H01-L01;
阻力:L01+P1*8/9,COLORCYAN,LINETHICK1;
支撑:L01+P1*0.5/9,COLORFF66FF,LINETHICK1;
中:(H01+L01)/2,POINTDOT,COLORWHITE,LINETHICK1;
DRAWICON(LONGCROSS(支撑,C,2),C*0.995,44);
STICKLINE(LONGCROSS(支撑,C,2),C,阻力,0,-1),COLORRED;
DRAWICON(LONGCROSS(C,阻力,2),C*1.005,45);
STICKLINE(LONGCROSS(C,阻力,2),C,支撑,0,-1),COLORGREEN;
STICKLINE(C<支撑,支撑,C,1,0),COLORLIMAGENTA;
{机构出入}
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A44:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A55:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A44)+A55;
DD1:=1;
AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.8,0.20,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.8,0.25,0,AAA2),COLORCYAN;
{主力扫盘}
价:=C;
大盘:=EMA(INDEXC,500)/EMA(C,500);
大盘参考线:=INDEXC/大盘;
VAR20:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR21:=(20*VAR20+19*REF(VAR20,1)+18*REF(VAR20,2)+17*REF(VAR20,3)+16*REF(VAR20,4)+15*REF(VAR20,5)+14*REF(VAR20,6)+13*REF(VAR20,7)+12*REF(VAR20,8)+11*REF(VAR20,9)+10*REF(VAR20,10)+9*REF(VAR20,11)+8* REF(VAR20,12)+7*REF(VAR20,13)+6*REF(VAR20,14)+5*REF(VAR20,15)+4*REF(VAR20,16)+3*REF(VAR20,17)+2*REF(VAR20,18)+REF(VAR20,21))/210;
VAR22:=EMA(VAR21,15);
VAR23:=HHV(CLOSE,90);
VAR24:=LLV(CLOSE,90);
VAR25:=VAR23-VAR24;
VAR26:=EMA((CLOSE-VAR24)/VAR25-0.5,14);
ZLSP:=VAR26*20;
VAR27:=REF(HHV(CLOSE,66),2);
VAR28:=CROSS(CLOSE,VAR27) AND (HHV(CLOSE,110)/LLV(CLOSE,110)-1)*100<45 AND ZLSP<5.666;
VAR29:=LLV(ZLSP,35)<-8.9 AND CROSS(ZLSP,-7.815) AND ZLSP<-1.2;
VAR30:=10*FILTER(VAR29,41);
VAR31:=15*FILTER(VAR28,41)>10;
主力扫盘1:=VAR31*50,;
DRAWTEXT(VAR31,C,'●主力吸筹'),COLORRED;
{主力}
AX:=(VOL/C)/2;
A2X:=SUM(IF(AX>100 AND CLOSE>REF(CLOSE,1),AX,0),0);
A3X:=SUM(IF(AX>100 AND CLOSE<REF(CLOSE,1),AX,0),0);
A4X:=SUM(IF(AX<100 AND CLOSE>REF(CLOSE,1),AX,0),0);
A5X:=SUM(IF(AX<100 AND CLOSE<REF(CLOSE,1),AX,0),0);
A6X:=A2X+A3X+A4X+A5X;
机买:=(A2X/A6X)*100;
机卖:=(A3X/A6X)*100;
主力差:=机买-机卖;
AAA1X:=DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.85,'●机构')=1;
DRAWTEXT(AAA1X>0 ,CLOSE*1.0001,'●'),COLORRED;
{有庄控盘}
VAR18:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR18-REF(VAR18,1))/REF(VAR18,1)*1000;
JJ:=DYNAINFO(11);
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;
神:=EMA(财,M1);
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.03;
{控盘买卖条件}
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
DRAWTEXT(BTJ81,C,'●庄影'),COLORYELLOW;
{分时乾坤决策线}
星期:=WEEKDAY;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
MA1:=REF(C,本周第几天);
MA2:=REF(MA1,本周第几天);
MA3:=REF(MA2,本周第几天);
MA4:=REF(MA3,本周第几天);
MA5:=REF(MA4,本周第几天);
MA6:=REF(MA5,本周第几天);
MA7:=REF(MA6,本周第几天);
MA8:=REF(MA7,本周第几天);
MA9:=REF(MA8,本周第几天);
MA10:=REF(MA9,本周第几天);
MA11:=REF(MA10,本周第几天);
MA12:=REF(MA11,本周第几天);
十三周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9+MA10+MA11+MA12)/13;
决策:REFDATE(十三周价,DATE),POINTDOT,COLORMAGENTA;
DRAWICON(CROSS(C,决策),C,1);
现价:=C,COLORWHITE,LINETHICK2;
均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;
TT:=BARSCOUNT(C);
前高:=REF(HHV(H,TT),1);
突破:=CROSS(C,REF(HHV(H,TT),1)) AND C/均价11<1.09 AND TT>1 AND TT<240;
主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1));
已主力扫盘:=BARSLAST(主力扫盘)<13;
HJ_2:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)<1.25 AND REF(CLOSE,1)<LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85;
HJ_9:=EMA(CLOSE,2);
HJ_10:=EMA(CLOSE,3);
HJ_11:=MAX(HJ_9,HJ_10);
X2:=CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)<1.07;
NX:=MA(((SLOPE(C,20)*5)+C),10);
{中枢}
B1:=HOUR=09 AND MINUTE=45;
B20:=LLV(L,15);
B30:=BARSLAST(B1);
B4:=REF(B20,B30);
B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
C1:=HOUR=09 AND MINUTE=45;
C2:=HHV(H,15);
C3:=BARSLAST(C1);
C4:=REF(C2,C3);
C5:=CONST(C4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD10:=(DIF-DEA)*2;
AA0:=MACD10>00 AND DIF>0 AND DEA>0;
A100:=HOUR=10 AND MINUTE=0;
A20:=HHV(H,30);
A30:=BARSLAST(A100);
A40:=REF(A20,A30);
A50:=CONST(A40);
A80:=CLOSE>A50 AND REF(C<=A50,1) AND CLOSE>NX;
AB:=FILTER(A80,100);
A90:=DYNAINFO(3);
AC:=CLOSE<=A90*1.04 AND CLOSE>A90;
量比:=V/REF(MA(V,5),1);
XG:=AA0 AND AB AND AC AND A40>A90 AND 量比>=1;
HJ_4:=CLOSE;
HJ_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0);
HJ_6:=CLOSE/DYNAINFO(3);
HJ_7:=FILTER(HJ_5>0.015 AND HJ_5>REF(HJ_5,1)*2 AND VOL>REF(VOL,1)*2 AND CLOSE>REF(CLOSE,1) OR HJ_5>0.025,240);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
WA1:=V*C/100;
WA2:=SUM((IF(((WA1/8>20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA3:=SUM((IF(((WA1/8>20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
WA4:=SUM((IF(((WA1/8<20) AND (CLOSE>(REF(CLOSE,1)))),WA1,0)),0);
WA5:=SUM((IF(((WA1/8<20) AND (CLOSE<(REF(CLOSE,1)))),WA1,0)),0);
机构买盘:=(WA2);
机构卖盘:=(WA3);
散户买盘:=(WA4);
散户卖盘:=(WA5);
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
DRAWICON(FILTER(CROSS(KK1,KK2) AND DYNAINFO(7)>REF(C,1)*1.03,60),OPEN*1,11);
DRAWTEXT(FILTER(CROSS(KK1,KK2)AND DYNAINFO(7)>REF(C,1)*1.03,60) ,OPEN*0.990,'抓'),COLORMAGENTA;
TT1:=BARSCOUNT(C);
均价黄:=SUM(C*V,TT1)/SUM(V,TT1);
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
流通盘:=CAPITAL*100/100000000,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
DRAWICON(每日一点,C,25);
DRAWTEXT(每日一点,L-0.01,'←分时起爆'),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.5,0,起爆收益),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.45,0,'起爆收益'),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.5,0,'%'),COLORMAGENTA;
ACX:=FILTER(CROSS(KK1,KK2) AND DYNAINFO(7)>REF(C,1)*1.03,60);
ACX1:=BARSSINCE(ACX)+1;
首次抓板价:=REF(C,ACX1-1),NODRAW;
抓板收益:(DYNAINFO(7)-首次抓板价)/首次抓板价*100,NODRAW;
DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.35,0,抓板收益),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.3,0,'抓板收益'),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.35,0,'%'),COLORMAGENTA;
开盘量:DYNAINFO(15)/DYNAINFO(4)/100,NODRAW;
开换手:DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100,NODRAW;
GF:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(GF,3);
ZJLL:=REF(LLJX,1);
QZJJ:=((LLJX-ZJLL)/ZJLL)*1;
DRAWTEXT_FIX(DYNAINFO(15)>0,0.25,0.7,0,STRCAT(STRCAT('【开盘换手】',CON2STR(开换手,2)),'')),COLORMAGENTA;
开盘:=(DYNAINFO(4)/DYNAINFO(3)-1)*100;
SJ:=BARSCOUNT(V);
今开量:DYNAINFO(15)/DYNAINFO(4)/100/10000,NODRAW;
昨大量:IF(SJ>238,REF(HHV(V,239),SJ-238),0)/10000,NODRAW;
BZ:=今开量/昨大量;
DRAWTEXT_FIX(SJ>239 AND BZ>0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),COLORRED;
DRAWTEXT_FIX(SJ>239 AND BZ<0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),COLORGREEN;
DRAWTEXT_FIX(SJ>239 AND BETWEEN(BZ,0.5,2),0.42,0.2,0,''),COLORYELLOW;
DRAWTEXT_FIX(SJ>239,0,0,0,'昨暴拉板量,一字除外,今比值0.60左右可考虑介入')COLORCYAN;
DRAWTEXT_FIX(SJ>239,0,0.2,0,'比值不达标,须开盘后补量, 过大,出货嫌疑')COLORCYAN;
DRAWTEXT_FIX(SJ>239,0,0.1,0,STRCAT(STRCAT('【昨拉板量】',CON2STR(昨大量*10000,2)),'')),COLORRED;
标准量:=昨大量*0.63*10000;
DRAWTEXT_FIX(SJ>239,0.25,0.3,0,STRCAT(STRCAT('【标准量】',CON2STR(标准量,2)),''))COLORRED;
DRAWTEXT_FIX(O>0,0,0.7,0,STRCAT(STRCAT('【开盘金额】',CON2STR(DYNAINFO(15)/10000,2)),'万')),COLORCYAN;
DD:=ZJBY.大单#DAY;
CDD:=ZJBY.超大单#DAY;
DRAWTEXT_FIX(DD>0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),COLORRED;
DRAWTEXT_FIX(CDD>0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),COLORRED;
DRAWTEXT_FIX(DD<0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),COLORGREEN;
DRAWTEXT_FIX(CDD<0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),COLORGREEN;
DRAWTEXT_FIX(DD=0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),COLORWHITE;
DRAWTEXT_FIX(CDD=0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),COLORWHITE;
DRAWTEXT_FIX(DYNAINFO(15)>0,0.25,0.8,0,STRCAT(STRCAT('【开盘量】',CON2STR(开盘量,2)),'')),COLORGREEN;
ZTJ:=DYNAINFO(3)*1.1-0.01;
WZ:=BARSLAST(C<ZTJ);
拉板量:=IF(C>=ZTJ AND C=DYNAINFO(5),REF(V,WZ-1),DRAWNULL);
DRAWTEXT_FIX(DYNAINFO(15)>0,0.5,0.7,0,STRCAT(STRCAT('【拉板量】',CON2STR(拉板量,2)),'')),COLORMAGENTA;
ZL:=DYNAINFO(93)/DYNAINFO(3);
KZB:=开盘量/ZL*100;
前5量:=IF(SJ>4,REF(SUM(V,0),SJ-4),DRAWNULL);
BZ5:=前5量/ZL*100;
DRAWTEXT_FIX(O>0,0.25,0.9,0,STRCAT(STRCAT('【开昨比】:',CON2STR(KZB,2)),'%')),COLORCYAN;
WTG:=IF(INBLOCK('拟减持') OR INBLOCK('近期解禁') OR INBLOCK('本月解禁')
OR INBLOCK('连续亏损') OR INBLOCK('风险提示'),1,0);
DRAWTEXT_FIX(WTG,0.5,0.5,0,'●㎞● 问题股'),COLORYELLOW;
尾量:=IF(SJ>238,REF(SUM(V,60),SJ-239),0);
昨日量:=IF(SJ>238,REF(SUM(V,0),SJ-239),0);
昨尾比:=尾量/昨日量*100;
DRAWTEXT_FIX(SJ>239,0.8,0.67,0,STRCAT(STRCAT('【昨尾比】',CON2STR(昨尾比,2)),'%')),COLORMAGENTA;
DRAWTEXT_FIX(SJ>239 AND BZ>0.68,0.67,0.52,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{御龙冠军分时主图最新优化版,本分时为本人日常使用,托,压(对应B,S)点买卖即
可。高手即可根据B,S点和均线做T。出现庄进可抄底,分时扫盘,或者小红点
均是主力大单吃货,参考买入占比超过50%,60%以上最佳,可大胆追买,涨停概率极
大。}
H01赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L01赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H01-L01
输出阻力:L01+P1*8/9,画青色,LINETHICK1
输出支撑:L01+P1*0.5/9,COLORFF66FF,LINETHICK1
输出中:(H01+L01)/2,POINTDOT,画白色,LINETHICK1
DRAWICON(LONGCROSS(支撑,C,2),C*0.995,44)
STICKLINE(LONGCROSS(支撑,C,2),C,阻力,0,-1),画红色
DRAWICON(LONGCROSS(C,阻力,2),C*1.005,45)
STICKLINE(LONGCROSS(C,阻力,2),C,支撑,0,-1),画绿色
当满足条件C<支撑时,在支撑和C之间画柱状线
{机构出入}
成交额赋值:V*C/100,NODRAW
A2赋值:SUM((IF(((成交额/8>20) AND (CLOSE>(1日前的CLOSE))),成交额,0)),0)
A3赋值:SUM((IF(((成交额/8>20) AND (CLOSE<(1日前的CLOSE))),成交额,0)),0)
A44赋值:SUM((IF(((成交额/8<20) AND (CLOSE>(1日前的CLOSE))),成交额,0)),0)
A55赋值:SUM((IF(((成交额/8<20) AND (CLOSE<(1日前的CLOSE))),成交额,0)),0)
A6赋值:((A2+A3)+A44)+A55
DD1赋值:1
AAA1赋值:STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%')
AAA2赋值:STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%')
当满足条件DD1=1时,在横轴0.8纵轴0.20位置书写文字
当满足条件DD1=1时,在横轴0.8纵轴0.25位置书写文字
{主力扫盘}
价赋值:C
大盘赋值:INDEXC的500日指数移动平均/C的500日指数移动平均
大盘参考线:=INDEXC/大盘
VAR20赋值:(3*CLOSE+最低价+OPEN+最高价)/6
VAR21赋值:(20*VAR20+19*1日前的VAR20+18*2日前的VAR20+17*3日前的VAR20+16*4日前的VAR20+15*5日前的VAR20+14*6日前的VAR20+13*7日前的VAR20+12*8日前的VAR20+11*9日前的VAR20+10*10日前的VAR20+9*11日前的VAR20+8* 12日前的VAR20+7*13日前的VAR20+6*14日前的VAR20+5*15日前的VAR20+4*16日前的VAR20+3*17日前的VAR20+2*18日前的VAR20+21日前的VAR20)/210
VAR22赋值:VAR21的15日指数移动平均
VAR23赋值:90日内CLOSE最高值
VAR24赋值:90日内CLOSE最低值
VAR25赋值:VAR23-VAR24
VAR26赋值:EMA((CLOSE-VAR24)/VAR25-0.5,14)
ZLSP赋值:VAR26*20
VAR27赋值:REF(66日内CLOSE最高值,2)
VAR28赋值:CLOSE上穿VAR27 AND (110日内CLOSE最高值/110日内CLOSE最低值-1)*100<45 AND ZLSP<5.666
VAR29赋值:35日内ZLSP最低值<-8.9 AND ZLSP上穿-7.815 AND ZLSP<-1.2
VAR30赋值:10*VAR29的41过滤
VAR31赋值:15*VAR28的41过滤>10
主力扫盘1赋值:VAR31*50,
当满足条件VAR31时,在C和'●主力吸筹'位置书写文字
{主力}
AX赋值:(成交量/C)/2
A2X:=SUM(IF(AX>100 AND CLOSE>1日前的CLOSE,AX,0),0)
A3X:=SUM(IF(AX>100 AND CLOSE<1日前的CLOSE,AX,0),0)
A4X赋值:SUM(IF(AX<100 AND CLOSE>1日前的CLOSE,AX,0),0)
A5X赋值:SUM(IF(AX<100 AND CLOSE<1日前的CLOSE,AX,0),0)
A6X:=A2X+A3X+A4X+A5X
机买赋值:(A2X/A6X)*100
机卖赋值:(A3X/A6X)*100
主力差赋值:机买-机卖
AAA1X:=DRAWTEXT(主力差>0 AND 1日前的主力差<=0,C*0.85,'●机构')=1
当满足条件AAA1X>0 时,在CLOSE*1.0001和'●'位置书写文字
{有庄控盘}
VAR18赋值:CLOSE的13日指数移动平均,13)
控盘赋值:(VAR18-1日前的VAR18)/1日前的VAR18*1000
JJ赋值:均价
P赋值:55
S赋值:8
M1赋值:3
财赋值:(CLOSE的S日指数移动平均-CLOSE的P日指数移动平均)*10
神赋值:财的M1日指数移动平均
{股价与均线偏离买卖条件}
BTJ1赋值:(C-JJ)/JJ<-0.03
{控盘买卖条件}
BTJ2:=控盘>1日前的控盘 AND 控盘<-0.2
{波段买卖条件}
BTJ3赋值:财上穿神 AND 财<-0.3
{以下为信号}
BTJ81赋值:BTJ1 AND BTJ2 AND BTJ3的13过滤
当满足条件BTJ81时,在C和'●庄影'位置书写文字
{分时乾坤决策线}
星期赋值:WEEKDAY
日1赋值:DATETODAY(DATE)
上市日赋值:TOTALBARSCOUNT-CURRBARSCOUNT日前的DATE
自然日赋值:日1-DATETODAY(上市日)+1
ZB赋值:(自然日-1日前的自然日)!=星期-1日前的星期OR TOTALBARSCOUNT-CURRBARSCOUNT=0
本周第几天赋值:上次ZB距今天数+1
MA1赋值:本周第几天日前的C
MA2赋值:本周第几天日前的MA1
MA3赋值:本周第几天日前的MA2
MA4赋值:本周第几天日前的MA3
MA5赋值:本周第几天日前的MA4
MA6赋值:本周第几天日前的MA5
MA7赋值:本周第几天日前的MA6
MA8赋值:本周第几天日前的MA7
MA9赋值:本周第几天日前的MA8
MA10:=本周第几天日前的MA9
MA11:=本周第几天日前的MA10
MA12:=本周第几天日前的MA11
十三周价赋值:(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9+MA10+MA11+MA12)/13
输出决策:REFDATE(十三周价,DATE),POINTDOT,画洋红色
DRAWICON(C上穿决策,C,1)
现价赋值:C,画白色, 线宽为2
均价11赋值:240的C*V日累和/240的V日累和,画红色, 线宽为2
TT赋值:C的有效数据周期数
前高赋值:REF(TT日内H最高值,1)
突破赋值:CROSS(C,REF(TT日内H最高值,1)) AND C/均价11<1.09 AND TT>1 AND TT<240
主力扫盘赋值:统计13日满足突破的天数>=3 AND CROSS(C,REF(TT日内H最高值,1))
已主力扫盘赋值:上次主力扫盘距今天数<13
HJ_2赋值:开盘价>0 AND 2日内最高价最高值/2日内最低价最低值<1.25 AND 1日前的CLOSE<3日内最低价最低值+(3日内最高价最高值-3日内最低价最低值)*0.85
HJ_9赋值:CLOSE的2日指数移动平均
HJ_10赋值:CLOSE的3日指数移动平均
HJ_11赋值:HJ_9和HJ_10较大值
X2赋值:CLOSE>HJ_11 AND HJ_2 AND (CLOSE>REF(2日内最高价最高值,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)<1.07
NX赋值:MA(((SLOPE(C,20)*5)+C),10)
{中枢}
B1:=HOUR=09 AND MINUTE=45
B20赋值:15日内L最低值
B30赋值:上次B1距今天数
B4赋值:B30日前的B20
B5赋值:CONST(B4),COLORFF80FF,CIRCLEDOT, 线宽为2
C1赋值:HOUR=09 AND MINUTE=45
C2赋值:15日内H最高值
C3赋值:上次C1距今天数
C4赋值:C3日前的C2
C5赋值:CONST(C4),COLORFF80FF,CIRCLEDOT, 线宽为2
DIF赋值:CLOSE的12日指数移动平均-CLOSE的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
MACD10赋值:(DIF-DEA)*2
AA0赋值:MACD10>00 AND DIF>0 AND DEA>0
A100赋值:HOUR=10 AND MINUTE=0
A20:=30日内H最高值
A30:=上次A100距今天数
A40赋值:A30日前的A20
A50赋值:CONST(A40)
A80赋值:CLOSE>A50 AND 1日前的C<=A50 AND CLOSE>NX
AB赋值:A80的100过滤
A90赋值:DYNAINFO(3)
AC赋值:CLOSE<=A90*1.04 AND CLOSE>A90
量比赋值:V/REF(V的5日简单移动平均,1)
XG赋值:AA0 AND AB AND AC AND A40>A90 AND 量比>=1
HJ_4赋值:CLOSE
HJ_5赋值:(CLOSE-5日前的CLOSE)/5日前的CLOSE
BAB1:=STICKLINE(HJ_5>0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0)
BAB2:=STICKLINE(HJ_5<0,DYNAINFO(3),DYNAINFO(3)*(1+HJ_5),0.1,0)
HJ_6赋值:CLOSE/DYNAINFO(3)
HJ_7赋值:FILTER(HJ_5>0.015 AND HJ_5>1日前的HJ_5*2 AND 成交量>1日前的成交量*2 AND CLOSE>1日前的CLOSE OR HJ_5>0.025,240)
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
WA1赋值:V*C/100
WA2赋值:SUM((IF(((WA1/8>20) AND (CLOSE>(1日前的CLOSE))),WA1,0)),0)
WA3赋值:SUM((IF(((WA1/8>20) AND (CLOSE<(1日前的CLOSE))),WA1,0)),0)
WA4赋值:SUM((IF(((WA1/8<20) AND (CLOSE>(1日前的CLOSE))),WA1,0)),0)
WA5赋值:SUM((IF(((WA1/8<20) AND (CLOSE<(1日前的CLOSE))),WA1,0)),0)
机构买盘赋值:(WA2)
机构卖盘赋值:(WA3)
散户买盘赋值:(WA4)
散户卖盘赋值:(WA5)
BU赋值:上次CLOSE=60日内CLOSE最高值距今天数
SE:=上次CLOSE=60日内CLOSE最低值距今天数
KK1赋值:SE
KK2赋值:BU
LM1赋值:SE
LM2赋值:BU
OK赋值:KK1>KK2 AND LM1>LM2
OK1:=KK1>KK2 AND LM1
NOK赋值:KK2>KK1 AND LM2>LM1
NOK1:=KK2>KK1 AND LM2
DRAWICON(FILTER(KK1上穿KK2 AND 现价>1日前的C*1.03,60),OPEN*1,11)
DRAWTEXT(FILTER(KK1上穿KK2AND 现价>1日前的C*1.03,60) ,OPEN*0.990,'抓'),画洋红色
TT1:=C的有效数据周期数
均价黄赋值:TT1的C*V日累和/TT1的V日累和
量两步赋值:V的5日简单移动平均>REF(V的5日简单移动平均,1) AND REF(V的5日简单移动平均,1)>REF(V的5日简单移动平均,2)
价两步赋值: C>=1日前的C AND 1日前的C>2日前的C
价上岗量破5赋值:C>均价黄 AND V>V的5日简单移动平均
量起爆赋值:V>=1日前的V*1
价创新高赋值:C>=0日内C最高值
量创新高赋值:V>=0日内V最高值
对昨日涨幅赋值:(C/DYNAINFO(3)-1)*100<=2.50
{涨幅控制2个点以内}
每日一点赋值:量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅
VV赋值:BARSSINCE(每日一点)+1
首次起爆价赋值:VV-1日前的C,NODRAW
输出起爆收益:(现价-首次起爆价)/首次起爆价*100,NODRAW
流通盘赋值:CAPITAL*100/100000000,NODRAW
起爆时间赋值:VV日前的TIME/10000,NODRAW
已爆分钟赋值:VV-1,NODRAW
当满足条件每日一点时,在C和25之间画图标
当满足条件每日一点时,在L-0.01和'←分时起爆'位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.5位置书写数字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.45位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.85纵轴0.5位置书写文字
ACX:=FILTER(KK1上穿KK2 AND 现价>1日前的C*1.03,60)
ACX1:=BARSSINCE(ACX)+1
首次抓板价赋值:ACX1-1日前的C,NODRAW
输出抓板收益:(现价-首次抓板价)/首次抓板价*100,NODRAW
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.35位置书写数字
当满足条件ISLASTBAR AND C>1时,在横轴0.8纵轴0.3位置书写文字
当满足条件ISLASTBAR AND C>1时,在横轴0.85纵轴0.35位置书写文字
输出开盘量:开盘金额/开盘价/100,NODRAW
输出开换手:开盘金额/开盘价/FINANCE(46)*100,NODRAW
GF赋值:((HSL*0.55+(1日前的HSL*0.33))+(2日前的HSL*0.22))
LLJX赋值:GF的3日指数移动平均
ZJLL赋值:1日前的LLJX
QZJJ赋值:((LLJX-ZJLL)/ZJLL)*1
DRAWTEXT_FIX(开盘金额>0,0.25,0.7,0,STRCAT(STRCAT('【开盘换手】',CON2STR(开换手,2)),'')),画洋红色
开盘赋值:(开盘价/DYNAINFO(3)-1)*100
SJ:=V的有效数据周期数
输出今开量:开盘金额/开盘价/100/10000,NODRAW
输出昨大量:IF(SJ>238,REF(239日内V最高值,SJ-238),0)/10000,NODRAW
BZ赋值:今开量/昨大量
DRAWTEXT_FIX(SJ>239 AND BZ>0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),画红色
DRAWTEXT_FIX(SJ>239 AND BZ<0.6,0.25,0.1,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),画绿色
DRAWTEXT_FIX(SJ>239 AND BETWEEN(BZ,0.5,2),0.42,0.2,0,''),画黄色
当满足条件SJ>239时,在横轴0纵轴0位置书写文字
当满足条件SJ>239时,在横轴0纵轴0.2位置书写文字
DRAWTEXT_FIX(SJ>239,0,0.1,0,STRCAT(STRCAT('【昨拉板量】',CON2STR(昨大量*10000,2)),'')),画红色
标准量赋值:昨大量*0.63*10000
DRAWTEXT_FIX(SJ>239,0.25,0.3,0,STRCAT(STRCAT('【标准量】',CON2STR(标准量,2)),''))画红色
DRAWTEXT_FIX(O>0,0,0.7,0,STRCAT(STRCAT('【开盘金额】',CON2STR(开盘金额/10000,2)),'万')),画青色
DD赋值:ZJBY.大单#DAY
CDD赋值:ZJBY.超大单#DAY
DRAWTEXT_FIX(DD>0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),画红色
DRAWTEXT_FIX(CDD>0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),画红色
DRAWTEXT_FIX(DD<0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),画绿色
DRAWTEXT_FIX(CDD<0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),画绿色
DRAWTEXT_FIX(DD=0,0.8,0.85,0,STRCAT(STRCAT('【大单】',CON2STR(DD,2)),'万')),画白色
DRAWTEXT_FIX(CDD=0,0.8,0.75,0,STRCAT(STRCAT('【超单】',CON2STR(CDD,2)),'万')),画白色
DRAWTEXT_FIX(开盘金额>0,0.25,0.8,0,STRCAT(STRCAT('【开盘量】',CON2STR(开盘量,2)),'')),画绿色
ZTJ赋值:DYNAINFO(3)*1.1-0.01
WZ赋值:上次C
拉板量赋值:IF(C>=ZTJ AND C=DYNAINFO(5),WZ-1日前的V,DRAWNULL)
DRAWTEXT_FIX(开盘金额>0,0.5,0.7,0,STRCAT(STRCAT('【拉板量】',CON2STR(拉板量,2)),'')),画洋红色
ZL赋值:DYNAINFO(93)/DYNAINFO(3)
KZB赋值:开盘量/ZL*100
前5量赋值:IF(SJ>4,REF(0的V日累和,SJ-4),DRAWNULL)
BZ5:=前5量/ZL*100
DRAWTEXT_FIX(O>0,0.25,0.9,0,STRCAT(STRCAT('【开昨比】:',CON2STR(KZB,2)),'%')),画青色
WTG赋值:IF(INBLOCK('拟减持') OR INBLOCK('近期解禁') OR INBLOCK('本月解禁')
OR INBLOCK('连续亏损') OR INBLOCK('风险提示'),1,0)
当满足条件WTG时,在横轴0.5纵轴0.5位置书写文字
尾量赋值:IF(SJ>238,REF(60的V日累和,SJ-239),0)
昨日量赋值:IF(SJ>238,REF(0的V日累和,SJ-239),0)
昨尾比赋值:尾量/昨日量*100
DRAWTEXT_FIX(SJ>239,0.8,0.67,0,STRCAT(STRCAT('【昨尾比】',CON2STR(昨尾比,2)),'%')),画洋红色
DRAWTEXT_FIX(SJ>239 AND BZ>0.68,0.67,0.52,0,STRCAT(STRCAT('【昨爆今开比】',CON2STR(BZ,2)),'')),画红色